diff --git a/CHANGELOG.md b/CHANGELOG.md index be4b532..a487151 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -251,7 +251,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - feat: improved config [`2cae539`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/2cae539aebf2c6b1b2d1608cb2b7dddeae4e135e) - feat: improved docs again [`913b1e1`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/913b1e166a771faf3ad5b6a155d96eb991827439) - feat: improved og tags [`fa418d4`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/fa418d48f0117556a293e126869e97b245e110b2) -- feat: incresed tsdoc documentation a lot [`d6b41e8`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/d6b41e802fe6ac31d5c7619e7a7a69560e417029) +- feat: increased tsdoc documentation a lot [`d6b41e8`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/d6b41e802fe6ac31d5c7619e7a7a69560e417029) - feat: memory storage cleanup [`72de39c`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/72de39c4d3f5407cc342e5a09bc25c8133e38685) - feat: migrated to pnpm [`34842d4`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/34842d47f86665bc609b38502d76c958e78bf15c) - feat: removed react example [`d72b122`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/d72b122ede6c8e583cd9fd059c5736f2277a6ff8) @@ -876,7 +876,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - docs: updated download urls [`c5629be`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/c5629be9e55d44fcf1ee293e324dfb3eb879a847) - docs: updated rukit example [`0aed72f`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/0aed72f3096fd5de3bcd509e76c966fdfbdd3c32) - feat: add `staleIfError` support [`edb32bd`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/edb32bdea3a5df8daabf4d4a92eca70b15a00afd) -- fix: removed breaking behaviour [`7217eaf`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/7217eaff024a08bd52047728c9b21c6c9c568ea2) +- fix: removed breaking behavior [`7217eaf`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/7217eaff024a08bd52047728c9b21c6c9c568ea2) - refactor: use `Object.freeze` at `Header` enum [`0e2508c`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/0e2508c020dcb165cb070fd59168c63c9ac65dd6) - style: format code [`1e8ca38`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/1e8ca383ac0a6d7a91c7e1070573480c305ca47d) - tag: v0.8.4 [`e356386`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/e356386d0239c76a8b681577be68680e21ab025e) @@ -947,7 +947,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - refactor!: removed `isAxiosCacheInterceptor` function [`37431a9`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/37431a9d34409d868aca25c74029b351165909ee) - tag: v0.8.0 [`46a4ee5`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/46a4ee595716a4fe70dbc4019d644d6b33dc934e) - tests: fixed coverage by enabling `sourceMaps` again [`17408aa`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/17408aac85da6ad08eb5cd2c32dca5569c2e3f23) -- tests: splited header interpreter tests into multiple files [`4f938a4`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/4f938a47935d15f096d4d50ff6e969462b994c48) +- tests: spited header interpreter tests into multiple files [`4f938a4`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/4f938a47935d15f096d4d50ff6e969462b994c48) ## [v0.8.0-beta1](https://github.com/arthurfiorette/axios-cache-interceptor/compare/v0.7.9...v0.8.0-beta1) - 2022-01-07 @@ -985,7 +985,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - examples: updated runkit example [`4cfa8d0`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/4cfa8d005e6ec33ba56e09d26c21ad8a50c28bad) - feat: added isAxiosCacheInterceptor function [`c32c452`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/c32c452190737f9baa1426dad8ae588a2dad4feb) - feat: allow ttl to be defined based on the response [`1e87549`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/1e87549eb663f5e43d57edc2a85559db14695d09) -- feat: suupport for async `CacheUpdater` [`cfbd601`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/cfbd601b981d4ae509165a7df0ba0ec30b7e7ba5) +- feat: support for async `CacheUpdater` [`cfbd601`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/cfbd601b981d4ae509165a7df0ba0ec30b7e7ba5) - fix: include default storages in cjs bundle [`8d5a90e`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/8d5a90e2fdbff90eea6cd63d2ef0b8a3faa2870f) - fix: proper generic usage to type deep properties [`ce2f597`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/ce2f5976bc9a1ab87dec0c7cb47a8a36abd36af2) - merge: merge yarn.lock [`b66ee1e`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/b66ee1e00eafb8def0a892f4010257656283fd98) @@ -1284,7 +1284,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). ### Commits -- docs: correct suported axios version [`6b790af`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/6b790af2ff83e0495e6e746358680c1d9cf069b8) +- docs: correct supported axios version [`6b790af`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/6b790af2ff83e0495e6e746358680c1d9cf069b8) - docs: updated documentation [`9b9827c`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/9b9827cae1dd82d9417a48cbadc9aba1f26f3107) - docs: updated minimal example [`dd1fa41`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/dd1fa41aa6ee499e1244fbc78e1d3b7b0f485b0b) - docs: updated readme [`4c757d3`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/4c757d36153fdb68477c6a551a0214bd16d939dc) @@ -1317,7 +1317,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - docs: correct tag names [`d961485`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/d9614853da508d80177574e962bbb51e19f3c98e) - docs: table of contents [`6fa0e7b`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/6fa0e7b602ae1eb7a1b7b631f85d4ef864364295) - fix: axios package also as dev deps [`12c207d`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/12c207daedae2cdcc0569d31e4cfc1d21512441f) -- fix: removed implict never [`52689e2`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/52689e24f449508eace07bdc0b9c0ebaed64e519) +- fix: removed implicit never [`52689e2`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/52689e24f449508eace07bdc0b9c0ebaed64e519) - style: prettified code [`50de35d`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/50de35d3baa099d237fc980c3510472a3d67b29d) - tag: v0.3.0 [`ca491d8`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/ca491d873e80d6f75f1a61194a0082fe2dc1b5a8) @@ -1411,7 +1411,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - chore: prettify script with plugins [`c917f36`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/c917f369a88c79e8bd9f4b2e4bd31c8a1bef03eb) - chore: push git tag on `yarn version` [`ec01751`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/ec0175125b178832b5a9ac89f440687f2d7e6dd3) - chore: removed filename in launch.json [`eb868d4`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/eb868d4b3e6e21e6b88c55b23611bdd4cbd505bf) -- refactor: concurreny fixes and refactored deferred [`70e5c07`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/70e5c07ff38f64d093675c67055f459b7da6fcea) +- refactor: concurrency fixes and refactored deferred [`70e5c07`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/70e5c07ff38f64d093675c67055f459b7da6fcea) - refactor: removed symbol support and more tests [`5b6d14f`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/5b6d14f31424db01cc181bfce599edfedde2cffd) - tag: v0.2.1 [`1099942`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/10999425d779dd3cc0e85e0c3f3f368081d647a8) @@ -1429,7 +1429,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - feat: enable cache by creating or applying [`f4bbd8b`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/f4bbd8b83210eb95156975562dab99459e87c2e4) - fix: a bunch of tests [`6075a0a`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/6075a0a960912d70775442bf01ae80de1b4f3d9d) - fix: axios headers are lowercased [`1f88779`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/1f88779e4617f58a86d9bb143eea842f927cf9b5) -- fix: concurrent requests not beeing cached [`1490bfc`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/1490bfc30b966b24d4ceaf51f168cf8f13e77a7c) +- fix: concurrent requests not being cached [`1490bfc`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/1490bfc30b966b24d4ceaf51f168cf8f13e77a7c) - refactor: interceptors in classes [`f1033a5`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/f1033a59596d210cf14d227b198f068791c6322c) - refactor: renamed status constants [`6e61c0d`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/6e61c0d5dbdf87c8fda08fe916ae2704e0f59ae0) - refactor: requests ids can also be `symbol` [`38133a7`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/38133a7624f2089de08314f761476419b0046dfe) diff --git a/docs/src/guide/comparison.md b/docs/src/guide/comparison.md index 5b830a9..991590a 100644 --- a/docs/src/guide/comparison.md +++ b/docs/src/guide/comparison.md @@ -30,7 +30,7 @@ | Built-in redis storage | 🔶 | ✅ | 🟡 | | Handles storage quota errors | ✅ | ✅ | ✅ | | Node & Web compatible | ✅ | ✅ | 🛑 | -| Invalidade cache based on response | ✅ | ✅ | 🛑 | +| Invalidate cache based on response | ✅ | ✅ | 🛑 | | Update cache based on response | ✅ | 🟡 | 🟡 | | Predicate to test if request should be cached | ✅ | ✅ | 🛑 | | Concurrent requests | ✅ | 🔶[#231](https://github.com/RasCarlito/axios-cache-adapter/issues/231) | 🛑 | diff --git a/docs/src/others/changelog.md b/docs/src/others/changelog.md index be4b532..dad89d0 100644 --- a/docs/src/others/changelog.md +++ b/docs/src/others/changelog.md @@ -251,7 +251,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - feat: improved config [`2cae539`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/2cae539aebf2c6b1b2d1608cb2b7dddeae4e135e) - feat: improved docs again [`913b1e1`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/913b1e166a771faf3ad5b6a155d96eb991827439) - feat: improved og tags [`fa418d4`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/fa418d48f0117556a293e126869e97b245e110b2) -- feat: incresed tsdoc documentation a lot [`d6b41e8`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/d6b41e802fe6ac31d5c7619e7a7a69560e417029) +- feat: increased tsdoc documentation a lot [`d6b41e8`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/d6b41e802fe6ac31d5c7619e7a7a69560e417029) - feat: memory storage cleanup [`72de39c`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/72de39c4d3f5407cc342e5a09bc25c8133e38685) - feat: migrated to pnpm [`34842d4`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/34842d47f86665bc609b38502d76c958e78bf15c) - feat: removed react example [`d72b122`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/d72b122ede6c8e583cd9fd059c5736f2277a6ff8) @@ -876,7 +876,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - docs: updated download urls [`c5629be`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/c5629be9e55d44fcf1ee293e324dfb3eb879a847) - docs: updated rukit example [`0aed72f`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/0aed72f3096fd5de3bcd509e76c966fdfbdd3c32) - feat: add `staleIfError` support [`edb32bd`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/edb32bdea3a5df8daabf4d4a92eca70b15a00afd) -- fix: removed breaking behaviour [`7217eaf`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/7217eaff024a08bd52047728c9b21c6c9c568ea2) +- fix: removed breaking behavior [`7217eaf`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/7217eaff024a08bd52047728c9b21c6c9c568ea2) - refactor: use `Object.freeze` at `Header` enum [`0e2508c`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/0e2508c020dcb165cb070fd59168c63c9ac65dd6) - style: format code [`1e8ca38`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/1e8ca383ac0a6d7a91c7e1070573480c305ca47d) - tag: v0.8.4 [`e356386`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/e356386d0239c76a8b681577be68680e21ab025e) @@ -985,7 +985,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - examples: updated runkit example [`4cfa8d0`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/4cfa8d005e6ec33ba56e09d26c21ad8a50c28bad) - feat: added isAxiosCacheInterceptor function [`c32c452`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/c32c452190737f9baa1426dad8ae588a2dad4feb) - feat: allow ttl to be defined based on the response [`1e87549`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/1e87549eb663f5e43d57edc2a85559db14695d09) -- feat: suupport for async `CacheUpdater` [`cfbd601`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/cfbd601b981d4ae509165a7df0ba0ec30b7e7ba5) +- feat: support for async `CacheUpdater` [`cfbd601`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/cfbd601b981d4ae509165a7df0ba0ec30b7e7ba5) - fix: include default storages in cjs bundle [`8d5a90e`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/8d5a90e2fdbff90eea6cd63d2ef0b8a3faa2870f) - fix: proper generic usage to type deep properties [`ce2f597`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/ce2f5976bc9a1ab87dec0c7cb47a8a36abd36af2) - merge: merge yarn.lock [`b66ee1e`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/b66ee1e00eafb8def0a892f4010257656283fd98) @@ -1284,7 +1284,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). ### Commits -- docs: correct suported axios version [`6b790af`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/6b790af2ff83e0495e6e746358680c1d9cf069b8) +- docs: correct supported axios version [`6b790af`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/6b790af2ff83e0495e6e746358680c1d9cf069b8) - docs: updated documentation [`9b9827c`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/9b9827cae1dd82d9417a48cbadc9aba1f26f3107) - docs: updated minimal example [`dd1fa41`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/dd1fa41aa6ee499e1244fbc78e1d3b7b0f485b0b) - docs: updated readme [`4c757d3`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/4c757d36153fdb68477c6a551a0214bd16d939dc) @@ -1317,7 +1317,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - docs: correct tag names [`d961485`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/d9614853da508d80177574e962bbb51e19f3c98e) - docs: table of contents [`6fa0e7b`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/6fa0e7b602ae1eb7a1b7b631f85d4ef864364295) - fix: axios package also as dev deps [`12c207d`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/12c207daedae2cdcc0569d31e4cfc1d21512441f) -- fix: removed implict never [`52689e2`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/52689e24f449508eace07bdc0b9c0ebaed64e519) +- fix: removed implicit never [`52689e2`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/52689e24f449508eace07bdc0b9c0ebaed64e519) - style: prettified code [`50de35d`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/50de35d3baa099d237fc980c3510472a3d67b29d) - tag: v0.3.0 [`ca491d8`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/ca491d873e80d6f75f1a61194a0082fe2dc1b5a8) @@ -1411,7 +1411,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - chore: prettify script with plugins [`c917f36`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/c917f369a88c79e8bd9f4b2e4bd31c8a1bef03eb) - chore: push git tag on `yarn version` [`ec01751`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/ec0175125b178832b5a9ac89f440687f2d7e6dd3) - chore: removed filename in launch.json [`eb868d4`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/eb868d4b3e6e21e6b88c55b23611bdd4cbd505bf) -- refactor: concurreny fixes and refactored deferred [`70e5c07`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/70e5c07ff38f64d093675c67055f459b7da6fcea) +- refactor: concurrency fixes and refactored deferred [`70e5c07`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/70e5c07ff38f64d093675c67055f459b7da6fcea) - refactor: removed symbol support and more tests [`5b6d14f`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/5b6d14f31424db01cc181bfce599edfedde2cffd) - tag: v0.2.1 [`1099942`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/10999425d779dd3cc0e85e0c3f3f368081d647a8) @@ -1429,7 +1429,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - feat: enable cache by creating or applying [`f4bbd8b`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/f4bbd8b83210eb95156975562dab99459e87c2e4) - fix: a bunch of tests [`6075a0a`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/6075a0a960912d70775442bf01ae80de1b4f3d9d) - fix: axios headers are lowercased [`1f88779`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/1f88779e4617f58a86d9bb143eea842f927cf9b5) -- fix: concurrent requests not beeing cached [`1490bfc`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/1490bfc30b966b24d4ceaf51f168cf8f13e77a7c) +- fix: concurrent requests not being cached [`1490bfc`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/1490bfc30b966b24d4ceaf51f168cf8f13e77a7c) - refactor: interceptors in classes [`f1033a5`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/f1033a59596d210cf14d227b198f068791c6322c) - refactor: renamed status constants [`6e61c0d`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/6e61c0d5dbdf87c8fda08fe916ae2704e0f59ae0) - refactor: requests ids can also be `symbol` [`38133a7`](https://github.com/arthurfiorette/axios-cache-interceptor/commit/38133a7624f2089de08314f761476419b0046dfe)