This repository has been archived by the owner on Feb 28, 2023. It is now read-only.
Releases: lisaogren/axios-cache-adapter
Releases · lisaogren/axios-cache-adapter
Better TypeScript support
- Add .d.ts file to npm package (#93 @charjac)
Fix bugs
Parsing `cache-control` headers and some fixes
Re-build
Better cache control
Note: Use the 2.2.1 tag, forgot to rebuild the dist
folder in this version
- Read stale cache when offline on client-side (#51 @acidbiscuit)
- Customize cache invalidation through
invalidate
option (#54 @jahead) - Read stale cache when a network error occurs using
readOnError
option (#21) - Serialize query parameters into cache key by default (#59)
- Fix
transformResponse
behavior (#40) - Update babel (#48)
- Add more tests!
Thanks to @acidbiscuit, @jahead, @FMCorz for contributing to this release 🚀
Fix node
Since migrating to webpack 4 the build using the 'web'
target did not work in node.
This was fixed by generating two separate builds, one for node and one for the browser.
In package.json
, the node version is pointed by the "main"
field and the browser version by the "browser"
field. The latter is interpreted by most dependency bundlers.
Small update
Complete rewrite \o/
The library has been rewritten completely, removing dead code, re-implementing tests, code coverage and dependency checks.