UNPKG

persistent-storage

Version:

Abstracts access to any storage object implementing the webstorage Storage interface, offering optional compression using lz-string and optional encryption using crypto

57 lines (33 loc) 1.44 kB
### 3.0.1 (2017-05-13) - Updated dependencies - Removed superfluous @types/lodash / @types/lz-string dependencies - Added missing @types/node peerDependency ### 3.0.0 (2017-05-11) #### Breaking Changes - Removed dts-bundle / persistent-storage.d.ts in favour of specifying a types property in package.json #### Other changes - Updated dependencies - Removed typings in favour of @types - Increased strictness of typescript compiler options ### 2.0.4 (2016-02-14) - Clone values when adding to cache or reading from cache to provide consistent behaviour whether the cache is in use or not ### 2.0.3 (2016-02-14) - Ignored more files from published package ### 2.0.2 (2016-02-14) - Fixed files included in published package - Add clean build step ### 2.0.1 (2016-02-02) - Package json keywords update ### 2.0.0 (2016-02-02) #### Breaking Changes - Must provide a storageBackend when constructing (no longer defaults to localStorage if available) #### Other changes - Support for encryption of stored values, and optionally keys - Rewritten in typescript, and generated definition file provided - In memory cache made optional - Bug fixes, improved test coverage ### 1.2.0 (2015-08-29) - Added support for scoped stores ### 1.1.0 (2015-08-01) - Add missing methods from storage interface. - Fix exception thrown when getting an item that does not exist.