Skip to content

Releases: arthurfiorette/axios-cache-interceptor

v1.2.0

09 Jun 16:42
Compare
Choose a tag to compare

Important Changes

  • Updated cachePredicate documentation. (Thanks @subhradeepnag).
  • Updated axios version to 1.4.0 and other dependencies (7e5ca7e)
  • Fixed cachePredicate tests (7e5ca7e)
  • 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: v1.1.1...v1.1.2

v1.1.1

25 May 16:23
Compare
Choose a tag to compare

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: v1.1.0...v1.1.1

v1.1.0

18 May 01:12
Compare
Choose a tag to compare

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)

v1.0.1

02 Feb 23:37
Compare
Choose a tag to compare

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

  • chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.47.0 to 5.47.1 by @dependabot in #439
  • chore(deps-dev): bump @typescript-eslint/parser from 5.47.0 to 5.47.1 by @dependabot in #438
  • chore(deps-dev): bump @types/jest from 29.2.4 to 29.2.5 by @dependabot in #442
  • chore(deps-dev): bump eslint from 8.30.0 to 8.31.0 by @dependabot in #444
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.47.1 to 5.48.0 by @dependabot in #447
  • chore(deps-dev): bump @typescript-eslint/parser from 5.47.1 to 5.48.0 by @dependabot in #448
  • typo by @pvinis in #446
  • chore(deps-dev): bump vitepress from 1.0.0-alpha.33 to 1.0.0-alpha.34 by @dependabot in #443
  • chore(deps): bump json5 from 2.2.1 to 2.2.3 by @dependabot in #445
  • chore(deps-dev): bump vitepress from 1.0.0-alpha.34 to 1.0.0-alpha.35 by @dependabot in #450
  • chore(deps-dev): bump eslint-config-prettier from 8.5.0 to 8.6.0 by @dependabot in #451
  • chore(deps-dev): bump @typescript-eslint/parser from 5.48.0 to 5.48.1 by @dependabot in #455
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.48.0 to 5.48.1 by @dependabot in #454
  • chore(deps-dev): bump ts-jest from 29.0.3 to 29.0.4 by @dependabot in #458
  • chore(deps-dev): bump vitepress from 1.0.0-alpha.35 to 1.0.0-alpha.36 by @dependabot in #457
  • chore(deps-dev): bump ts-jest from 29.0.4 to 29.0.5 by @dependabot in #461
  • chore(deps-dev): bump prettier-plugin-organize-imports from 3.2.1 to 3.2.2 by @dependabot in #462
  • chore(deps-dev): bump @typescript-eslint/parser from 5.48.1 to 5.48.2 by @dependabot in #465
  • chore(deps-dev): bump eslint from 8.31.0 to 8.32.0 by @dependabot in #463
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.48.1 to 5.48.2 by @dependabot in #466
  • chore(deps-dev): bump prettier from 2.8.1 to 2.8.3 by @dependabot in #460
  • chore(deps-dev): bump vitepress from 1.0.0-alpha.36 to 1.0.0-alpha.38 by @dependabot in #467
  • fix: Prevent response storage calls if method is not supported by @CatchABus in #464
  • chore(deps-dev): bump @types/jest from 29.2.5 to 29.2.6 by @dependabot in #468
  • chore(deps-dev): bump vitepress from 1.0.0-alpha.38 to 1.0.0-alpha.40 by @dependabot in #470
  • chore(deps-dev): bump @typescript-eslint/parser from 5.48.2 to 5.49.0 by @dependabot in #472
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.48.2 to 5.49.0 by @dependabot in #473
  • chore(deps-dev): bump jest-environment-jsdom from 29.3.1 to 29.4.0 by @dependabot in #474
  • chore(deps-dev): bump jest from 29.3.1 to 29.4.0 by @dependabot in #475
  • chore(deps-dev): bump es-check from 7.0.1 to 7.1.0 by @dependabot in #476
  • chore(deps-dev): bump jest-environment-jsdom from 29.4.0 to 29.4.1 by @dependabot in #478
  • chore(deps-dev): bump jest from 29.4.0 to 29.4.1 by @dependabot in #479
  • chore(deps-dev): bump tslib from 2.4.1 to 2.5.0 by @dependabot in #477
  • chore(deps-dev): bump vitepress from 1.0.0-alpha.40 to 1.0.0-alpha.43 by @dependabot in #481
  • chore(deps-dev): bump eslint from 8.32.0 to 8.33.0 by @dependabot in #482
  • Update getting-started.md - typo by @jordan-schnur in #483
  • chore(deps-dev): bump vitepress from 1.0.0-alpha.43 to 1.0.0-alpha.44 by @dependabot in #484
  • chore(deps-dev): bump typescript from 4.9.4 to 4.9.5 by @dependabot in #485
  • chore(deps-dev): bump vitepress from 1.0.0-alpha.44 to 1.0.0-alpha.45 by @dependabot in #489
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin from 5.49.0 to 5.50.0 by @dependabot in #486
  • chore(deps-dev): bump @typescript-eslint/parser from 5.49.0 to 5.50.0 by @dependabot in #488

New Contributors

Full Changelog: v1.0.0...v1.0.1

v1.0.0

26 Dec 14:53
Compare
Choose a tag to compare

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

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: v0.10.7...v1.0.0

v0.10.7

29 Jul 12:58
Compare
Choose a tag to compare

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: v0.10.6...v0.10.7

v0.10.6

30 Jun 01:13
Compare
Choose a tag to compare

Important Changes

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: v0.10.5...v0.10.6

v0.10.5

11 Jun 11:20
Compare
Choose a tag to compare

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: v0.10.4...v0.10.5

v0.10.4

03 Jun 11:40
Compare
Choose a tag to compare

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: v0.10.3...v0.10.4

v0.10.3

02 May 22:34
Compare
Choose a tag to compare

Important Changes

  • Updated axios to 0.27 (#227)
  • Pass currentRequest on each access to storages (#220) (Thanks @Warxcell)

Merged

  • chore(deps-dev): bump ts-loader from 9.2.9 to 9.3.0 #228
  • chore(deps-dev): bump express from 4.18.0 to 4.18.1 in /docs #229
  • feat: updated axios to 0.27 #227
  • Pass currentRequest on each access to storages (#220) #226
  • chore(deps-dev): bump typescript from 4.6.3 to 4.6.4 #225
  • chore(deps-dev): bump ts-loader from 9.2.8 to 9.2.9 #222
  • chore(deps-dev): bump @typescript-eslint/parser from 5.20.0 to 5.21.0 #215
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #217
  • chore(deps-dev): bump express from 4.17.3 to 4.18.0 in /docs #218
  • chore(deps): bump github/codeql-action from 1 to 2 #214
  • chore(deps-dev): bump eslint from 8.13.0 to 8.14.0 #213
  • chore(deps-dev): bump tslib from 2.3.1 to 2.4.0 #212
  • chore(deps): bump async from 2.6.3 to 2.6.4 #211
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #209
  • chore(deps-dev): bump @typescript-eslint/parser from 5.19.0 to 5.20.0 #210
  • chore(deps-dev): bump prettier-plugin-jsdoc from 0.3.36 to 0.3.38 #208
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #207
  • chore(deps-dev): bump @typescript-eslint/parser from 5.18.0 to 5.19.0 #206
  • chore(deps-dev): bump eslint from 8.12.0 to 8.13.0 #205
  • chore(deps-dev): bump webpack from 5.71.0 to 5.72.0 #204
  • chore(deps): bump codecov/codecov-action from 2.1.0 to 3 #203
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #202
  • chore(deps-dev): bump @typescript-eslint/parser from 5.17.0 to 5.18.0 #201
  • chore(deps-dev): bump prettier from 2.6.1 to 2.6.2 #197
  • chore(deps-dev): bump prettier-plugin-jsdoc from 0.3.35 to 0.3.36 #199
  • chore(deps-dev): bump webpack from 5.70.0 to 5.71.0 #198
  • chore(deps-dev): bump prettier-plugin-jsdoc from 0.3.34 to 0.3.35 #196
  • chore(deps-dev): bump prettier-plugin-jsdoc from 0.3.33 to 0.3.34 #195
  • chore(deps): bump ansi-regex from 3.0.0 to 3.0.1 #194
  • chore(deps-dev): bump @typescript-eslint/eslint-plugin #192
  • chore(deps-dev): bump @typescript-eslint/parser from 5.16.0 to 5.17.0 #193
  • chore(deps-dev): bump eslint from 8.11.0 to 8.12.0 #191

Commits

  • docs: updated benchmark 9e23648
  • docs: updated docs theme 7a1ff7b
  • docs: updated download urls 8297fe2
  • docs: updated issue template 639b284
  • refactor: simpler config.cache check 55f9599

Full Changelog: v0.10.2...v0.10.3