Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Releases: lisaogren/axios-cache-adapter

Better TypeScript support

23 May 07:11
Compare
Choose a tag to compare
  • Add .d.ts file to npm package (#93 @charjac)

Fix bugs

21 May 07:41
Compare
Choose a tag to compare
  • Fix cache-control transpilation problem (#91)
  • Fix config.expires setup in case maxAge equal 0 (#83 @vovk1805)

Parsing `cache-control` headers and some fixes

04 Mar 13:11
Compare
Choose a tag to compare
  • Handle cache-control and expires http response headers (#62)
  • Per request cache bypass (#69 @jahead)
  • Make serializeQuery publicly available (#73)
  • Stop messing with axios request params when serializing query (#76)
  • Fix doc about custom invalidate method. (#77)

Re-build

23 Jan 07:09
Compare
Choose a tag to compare

Actually forgot to rebuild dist folder in 2.2.0 tag 😞

Better cache control

22 Jan 07:51
Compare
Choose a tag to compare

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

23 Jul 12:13
Compare
Choose a tag to compare

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

24 Jun 18:41
Compare
Choose a tag to compare
  • Allow debug to be set on a per-request basis. @FMCorz #26
  • Allow config to be set on a per-request basis. @FMCorz #25
  • Updated dependencies

Complete rewrite \o/

04 Nov 17:18
Compare
Choose a tag to compare

The library has been rewritten completely, removing dead code, re-implementing tests, code coverage and dependency checks.