4.0.0
- Update module to use ES modules. Export
defaultstorage object, utility classes, and a fallback storage object under storage. Thanks to @philipvonbargen for the PR.
Example:
// ES Modules
import storage, { CookieStorage, isSupported } from 'local-storage-fallback'
// require
const {storage} = require('local-storage-fallback')- Added a quick test to make sure that the browser build works as intended.