Skip to content

4.0.0

Choose a tag to compare

@tamagokun tamagokun released this 27 Jul 19:55
· 21 commits to master since this release
  • Update module to use ES modules. Export default storage 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.