Skip to content

v2.0.0

Compare
Choose a tag to compare
@hindmost hindmost released this 26 Mar 09:56
· 22 commits to master since this release

2.0.0 (2021-03-26)

Reduxed Chrome Storage v2 is here!

The major changes are around TypeScript. All source code and tests were rewritten in TypeScript with all needed TypeScript definitions provided. So now this library may be used in TypeScript projects (as well as in regular JavaScript ones).

Potentially Breaking Change

storageArea option of the factory function now defaults to 'local', unlike v1.x where it was defaulted to 'sync'. So if you called the factory without the above option in v1.x, now with v2.x you have to explicitly pass this option set to 'sync' if you still want to use sync area. Note however that sync area usage is not recommended now.

Other Changes

  • dropped Lodash dependency, so now it has no dependencies except Redux which is a peer one though
  • added extra options to the factory function signature that give more control over what APIs namespace to use

Migration from 1.x to 2.x

Aside from the above potentially breaking change, 2.x is fully compatible with 1.x.