- Interceptors now interact with the values in the API methods
setItem
andgetItem
. Read more about interceptors.
- Fixed #2: Getting an error when retrieving nonexistent item from
cookieStorage
WebStorage
instances are singletons by storage mechanism, in order to keep consistency of the data stored.
- Fixed #1: Storages have no existing elements when they are instantiated the first time
- Added keys and
length
to theWebStorage
instances.
The method setItem
has changed its signature when the storage mechanism is set to "cookieStorage"
See more documentation here.
New signature
setItem (key {string}, value {any}, options {object});
Old signature
setItem (key {string}, value {any}, expires {number}, path {string});
- Added the static method
WebStorage.interceptors()
- Added
eslint-config-google
- Added
eslint-loader
to webpack - Added
clean-webpack-plugin
to webpack
- Added webpack as module bundler
- Webpack outputs the library as UMD module (global:
proxyStorage
)