axios-cache-interceptor

📬 Small and efficient cache interceptor for axios. Etag, Cache-Control, TTL, HTTP headers and more!

MIT License

Downloads
528.7K
Stars
686
Committers
35

Bot releases are visible (Hide)

axios-cache-interceptor - v1.6.0 Latest Release

Published by arthurfiorette about 1 month ago

What's Changed

New Contributors

Full Changelog: https://github.com/arthurfiorette/axios-cache-interceptor/compare/v1.5.3...v1.6.0

axios-cache-interceptor - v1.5.3

Published by arthurfiorette 5 months ago

What's Changed

Full Changelog: https://github.com/arthurfiorette/axios-cache-interceptor/compare/v1.5.2...v1.5.3

axios-cache-interceptor - v1.5.2

Published by arthurfiorette 6 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/arthurfiorette/axios-cache-interceptor/compare/v1.5.1...v1.5.2

axios-cache-interceptor - v1.5.1

Published by arthurfiorette 9 months ago

What's Changed

  • Avoid minifying esm, cjs and modern bundles. Only cdn's bundle.js will be minified from now on.

Full Changelog: https://github.com/arthurfiorette/axios-cache-interceptor/compare/v1.5.0...v1.5.1

axios-cache-interceptor - v1.5.0

Published by arthurfiorette 9 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/arthurfiorette/axios-cache-interceptor/compare/v1.4.1...v1.5.0

axios-cache-interceptor - v1.4.1

Published by arthurfiorette 10 months ago

Important Changes

  • Fixed type incompatibility with setupCache (#746).

Full Changelog: https://github.com/arthurfiorette/axios-cache-interceptor/compare/v1.4.0...v1.4.1

axios-cache-interceptor - v1.4.0

Published by arthurfiorette 10 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/arthurfiorette/axios-cache-interceptor/compare/v1.3.3...v1.4.0

axios-cache-interceptor - v1.3.3

Published by arthurfiorette 10 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/arthurfiorette/axios-cache-interceptor/compare/v1.3.2...v1.3.3

axios-cache-interceptor - v1.3.2

Published by arthurfiorette 12 months ago

Important Changes

  • Updated dependencies
  • Fixed override and hydrate when applied globally (#694)
  • Fixed flaky tests

Full Changelog: https://github.com/arthurfiorette/axios-cache-interceptor/compare/v1.3.1...v1.3.2

axios-cache-interceptor - v1.3.1

Published by arthurfiorette about 1 year ago

Important Changes

  • Fixed deadlocks when concurrent rejections happens for the same id in #685.
  • Support for AxiosErrors without config property
  • Debug option is now required and defaults to a noop function.
  • Updated documentation
  • JSDoc compliant bundle license

New Contributors

Full Changelog: https://github.com/arthurfiorette/axios-cache-interceptor/compare/v1.3.0...v1.3.1

axios-cache-interceptor - v1.3.0

Published by arthurfiorette about 1 year ago

Important Changes

  • Updated documentation in many ways.
  • Added cloneData: 'double' to prevent property changes before cloning the result. Thanks @bhallionOhbibi (#581)
  • Correct handle non Axios response/config to avoid breaking cache when other interceptors break (#609)
  • Turned most types into interfaces. Thanks @denis-rossati (#615)
  • Handle broken/recursive object serializations. Thanks @joseiedo (#616)
  • Fixed infinite loading states when a restart occurs in the middle of a request. Thanks @xml (#612)

New Contributors

Full Changelog: https://github.com/arthurfiorette/axios-cache-interceptor/compare/v1.2.0...v1.3.0

axios-cache-interceptor - v1.2.0

Published by arthurfiorette over 1 year ago

Important Changes

  • Updated cachePredicate documentation. (Thanks @subhradeepnag).
  • Updated axios version to 1.4.0 and other dependencies (7e5ca7e6)
  • Fixed cachePredicate tests (7e5ca7e6)
  • Added support for max-stale on defaultHeaderInterpreter (683dbe0)
  • ⚠️ Fixed canStale check for ttl and staleTtl (82182bf), previously a lot of cache was being evicted wrongly and more network requests were being made.

New Contributors

Full Changelog: https://github.com/arthurfiorette/axios-cache-interceptor/compare/v1.1.1...v1.1.2

axios-cache-interceptor - v1.1.1

Published by arthurfiorette over 1 year ago

Important Changes

  • Fixed only allow pnpm (#541)
  • Improved docs on others storages implementation (#540)
  • Fixed flaky network test
  • Updated headerInterpreter documentation, thanks @afurculita (#542)
  • Added maxEntries for web storage (#539)

New Contributors

Full Changelog: https://github.com/arthurfiorette/axios-cache-interceptor/compare/v1.1.0...v1.1.1

axios-cache-interceptor - v1.1.0

Published by arthurfiorette over 1 year ago

Important Changes

  • Added hydrate option. (384c6b5)
  • staleIfError using stale-if-error directive (#506) (Thanks @gmazoni)
  • Moved to pnpm. (34842d4)
  • Support stale-while-revalidate (#514) (Suuuper thanks @richardgarnier)
  • cachePredicate following RFC 7231 (174ea35)
  • cleanupInterval on memory storage to avoid memory leaks (72de39c)
  • Updated to typescript@5 (f29dc40)
axios-cache-interceptor - v1.0.1

Published by arthurfiorette over 1 year ago

Important Changes

  • Documentation improved & added Algolia search.
  • Avoid storage calls if method is not supported by #464 (Thanks @CatchABus).
  • Axios headers problem fixed.
  • Double registration check.
  • Working for axios ^v1.3.1

What's Changed

New Contributors

Full Changelog: https://github.com/arthurfiorette/axios-cache-interceptor/compare/v1.0.0...v1.0.1

axios-cache-interceptor - v1.0.0

Published by arthurfiorette almost 2 years ago

Important Changes

  • Official axios v1 support (#368)
  • Documentation ported to vitepress (#403)
  • Default prefix parameter for web storages (#425)
  • Added cacheTakeover option to prevent browser cache layers (#437)
  • Fixed ESM typings (#430)
  • Minimum node version is now 12.0.0 (#397)
  • Fixed request abortion (#317)

This release was only made possible by

  • Cain @cainthebest
  • Dimitris-Rafail Katsampas @CatchABus
  • Dale Ryan @lnfel
  • Yannick Laubscher @Snotax
  • Mike Raistrick @raistrick
  • Samuele Caprioli @SamueleCaprioli97

Merged

  • docs: Fix request-id.md docs #429
  • chore: default prefix parameter for web storage #425
  • Axios cache interceptor v1 roadmap #368

Commits

  • chore: automerge dependabot prs 9c90644
  • chore: avoid github activity 0e97446
  • chore: axios as a peer dependency 9683de5
  • chore: docs versioning nav 13529b9
  • chore: fixed dependabot automerge 1c024f4
  • chore: re-added dev web bundle 9780d13
  • docs: improved features 79ac027
  • docs: spelling db41b7c
  • docs: update navbar again b6b9fc9
  • docs: updated version 232bb7d
  • docs: version selector b4ab156
  • feat: add ecompatible node version to engines 5562819
  • feat: cache takeover #437 7d82c5a
  • feat: MIT copyright notice on bundle f842c36
  • fix: action to deploy docs 64222ec
  • fix: correct skypack download url c7b6604
  • fix: docs versioning 09a0082
  • fix: removed check for non existent file 04d95f4
  • fix: types not available on esm packaging #430 00fdff0
  • refactor: dependencies, lint and null assertions 67819a3
  • test: added #317 test 491fb01

Full Changelog: https://github.com/arthurfiorette/axios-cache-interceptor/compare/v0.10.7...v1.0.0

axios-cache-interceptor - v0.10.7

Published by arthurfiorette about 2 years ago

Important Changes

  • You can now use a custom function instead of having to use a cache updater function for each request id. (Thanks @nolde) (#304).

Merged

  • feat: cache updater function for multiple keys. #304
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #307
  • chore(deps-dev): bump @typescript-eslint/parser from 5.30.7 to 5.31.0 #306
  • chore(deps-dev): bump webpack from 5.73.0 to 5.74.0 #305
  • chore(deps): bump terser from 5.12.1 to 5.14.2 #302
  • chore(deps-dev): bump es-check from 6.2.1 to 7.0.0 #303
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #300
  • chore(deps-dev): bump @typescript-eslint/parser from 5.30.6 to 5.30.7 #301
  • chore(deps-dev): bump @types/jest from 28.1.5 to 28.1.6 #298
  • chore(deps-dev): bump eslint from 8.19.0 to 8.20.0 #297
  • chore(deps-dev): bump ts-jest from 28.0.5 to 28.0.7 #299
  • chore(deps-dev): bump jest-environment-jsdom from 28.1.2 to 28.1.3 #295
  • chore(deps-dev): bump jest from 28.1.2 to 28.1.3 #294
  • chore(deps-dev): bump @types/jest from 28.1.4 to 28.1.5 #293
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #292
  • chore(deps-dev): bump @typescript-eslint/parser from 5.30.5 to 5.30.6 #291
  • chore(deps-dev): bump @typescript-eslint/parser from 5.30.4 to 5.30.5 #289
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #290
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #288
  • chore(deps-dev): bump eslint from 8.18.0 to 8.19.0 #287
  • chore(deps-dev): bump @typescript-eslint/parser from 5.30.0 to 5.30.4 #286
  • chore(deps-dev): bump @types/jest from 28.1.3 to 28.1.4 #285
  • chore(deps-dev): bump eslint-plugin-prettier from 4.1.0 to 4.2.1 #284

Commits

Full Changelog: https://github.com/arthurfiorette/axios-cache-interceptor/compare/v0.10.6...v0.10.7

axios-cache-interceptor - v0.10.6

Published by arthurfiorette over 2 years ago

Important Changes

  • Fixed cache.update function not executing on ignored requests. (#279) (Thanks @ParsonsProjects)

Merged

  • fix: cache update not being executed correctly #283
  • chore(deps-dev): bump @typescript-eslint/parser from 5.29.0 to 5.30.0 #282
  • chore(deps-dev): bump eslint-plugin-prettier from 4.0.0 to 4.1.0 #280
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #281
  • chore(deps-dev): bump ts-loader from 9.3.0 to 9.3.1 #278
  • chore(deps-dev): bump @types/jest from 28.1.2 to 28.1.3 #276
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #275
  • chore(deps-dev): bump @typescript-eslint/parser from 5.28.0 to 5.29.0 #274
  • chore(deps-dev): bump eslint from 8.17.0 to 8.18.0 #271
  • chore(deps-dev): bump typescript from 4.7.3 to 4.7.4 #272
  • chore(deps-dev): bump @types/jest from 28.1.1 to 28.1.2 #273
  • chore(deps-dev): bump prettier-plugin-organize-imports #270
  • chore(deps-dev): bump prettier from 2.7.0 to 2.7.1 #269
  • chore(deps-dev): bump @typescript-eslint/parser from 5.27.1 to 5.28.0 #266
  • chore(deps-dev): bump ts-jest from 28.0.4 to 28.0.5 #265
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #268
  • chore(deps-dev): bump prettier from 2.6.2 to 2.7.0 #267
  • chore(deps-dev): bump webpack-cli from 4.9.2 to 4.10.0 #264

Commits

Full Changelog: https://github.com/arthurfiorette/axios-cache-interceptor/compare/v0.10.5...v0.10.6

axios-cache-interceptor - v0.10.5

Published by arthurfiorette over 2 years ago

Important Changes

  • Added cache.override option to ignore cache checks and force a new request (#256). (Thanks @domdomegg)
  • Correclty remove X-Axios-Cache... server sent headers.

Merged

  • chore(deps-dev): bump jest-environment-jsdom from 28.1.0 to 28.1.1 #261
  • chore(deps-dev): bump @typescript-eslint/parser from 5.27.0 to 5.27.1 #263
  • chore(deps-dev): bump jest from 28.1.0 to 28.1.1 #260
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #262
  • chore(deps-dev): bump @types/jest from 28.1.0 to 28.1.1 #257
  • chore(deps-dev): bump typescript from 4.7.2 to 4.7.3 #258
  • chore(deps-dev): bump eslint from 8.16.0 to 8.17.0 #259

Commits

  • chore: fixed debug configuration 33398ce
  • chore: updated sponsors e8cb692
  • docs: improved override docs dfe1595
  • docs: typos 67bad37
  • docs: updated version 8c94ef9
  • feat: better override documentation 338c9a6
  • feat: override cache option 268fccb
  • feat: remove remnant x-axios-headers from server response d87307a

Full Changelog: https://github.com/arthurfiorette/axios-cache-interceptor/compare/v0.10.4...v0.10.5

axios-cache-interceptor - v0.10.4

Published by arthurfiorette over 2 years ago

Axios v1.0 is still in beta, I'll wait for it's first stable release to make axios-cache-interceptor v1 compatible.

Important Changes

  • max-age=0 Cache-Control header is now correctly interpreted (#253). (Thanks @heiko-r).
  • Removed symbol to preserve sideEffect free status (#233). (Thanks @KevinFreistroffe).
  • Updated object-code and jest.

Merged

  • chore(deps-dev): bump webpack from 5.72.1 to 5.73.0 #255
  • chore(deps-dev): bump ts-jest from 28.0.3 to 28.0.4 #254
  • chore(deps-dev): bump @types/jest from 27.5.1 to 28.1.0 #252
  • fix: Interpret max-age=0 as a valid cache-control header #253
  • chore(deps-dev): bump @typescript-eslint/parser from 5.26.0 to 5.27.0 #250
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #251
  • chore(deps-dev): bump typescript from 4.6.4 to 4.7.2 #249
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #246
  • chore(deps-dev): bump ts-jest from 28.0.2 to 28.0.3 #247
  • chore(deps-dev): bump @typescript-eslint/parser from 5.25.0 to 5.26.0 #248
  • chore(deps-dev): bump eslint from 8.15.0 to 8.16.0 #245
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #243
  • chore(deps-dev): bump @typescript-eslint/parser from 5.23.0 to 5.25.0 #242
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #241
  • chore(deps-dev): bump @types/jest from 27.5.0 to 27.5.1 #238
  • chore(deps-dev): bump ts-jest from 28.0.1 to 28.0.2 #234
  • chore(deps-dev): bump webpack from 5.72.0 to 5.72.1 #237
  • chore(deps-dev): bump @typescript-eslint/parser from 5.22.0 to 5.23.0 #235
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #236
  • chore(deps-dev): bump @typescript-eslint/parser from 5.21.0 to 5.22.0 #231
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #230
  • chore(deps-dev): bump @types/jest from 27.4.1 to 27.5.0 #232

Commits

  • chore(deps): update jest to 28 f4f4be1
  • deps: updated object-code 6b1a1c5
  • deps: updated object-code 77adcaf
  • docs: fixed variable name (#239) e97a515
  • docs: help this repo grow 2fc2c17
  • docs: improved documentation 6bcd7dc
  • docs: updated version 5cb76aa
  • fix: removed symbol to preserve sideEffect free status (#233) b6302ef
  • refactor: updated some minor things 623ae22

Full Changelog: https://github.com/arthurfiorette/axios-cache-interceptor/compare/v0.10.3...v0.10.4