Skip to content

3.0.0 Release

Latest
Compare
Choose a tag to compare
@maple3142 maple3142 released this 06 Jul 12:49
· 37 commits to master since this release

Please read README.md again to migrate to 3.0.0

Breaking Changes

storage,parse,stringify option removal

FAQ

Does it means I cannot use custom storage or parse/stringify function?

No, you could create your own driver and use your own storage and functions.

But why?

Sometimes if you need to add some extra feature on default storage, which already did parsing and stringifying internally.
But you forget to prevent default parse and stringify works by setting x=>x might led to double serialization.
So I decided to use a driver as an abstration layer of storage to prevent this from happened.
Example storage: https://github.com/maple3142/WynnStats/blob/aad20737ad6aae063c874fdf13b3c1ad37cc8f1f/src/cacheStorage.js