Copilot
6bda1baae0
Add enabled flag for opt-in cache control ( #1141 )
...
* Initial plan
* Add enabled flag to CacheProperties with full implementation and tests
Co-authored-by: arthurfiorette <47537704+arthurfiorette@users.noreply.github.com>
* Fix deprecated annotation to only apply to cache: false, add documentation for enabled flag
Co-authored-by: arthurfiorette <47537704+arthurfiorette@users.noreply.github.com>
* Improve JSDoc comment for DeprecatedFalse type
Co-authored-by: arthurfiorette <47537704+arthurfiorette@users.noreply.github.com>
* Remove deprecation warnings from docs, keep cache: false for backward compatibility
Co-authored-by: arthurfiorette <47537704+arthurfiorette@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: arthurfiorette <47537704+arthurfiorette@users.noreply.github.com>
2025-12-08 12:34:00 -03:00
Copilot
47bb5b0c6a
Fix: Skip conditional headers when cache.override is true ( #1137 )
...
* Initial plan
* Fix: Prevent If-None-Match and If-Modified-Since headers when override is true
Co-authored-by: arthurfiorette <47537704+arthurfiorette@users.noreply.github.com>
* docs: Add comment explaining why conditional headers are skipped when override is true
Co-authored-by: arthurfiorette <47537704+arthurfiorette@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: arthurfiorette <47537704+arthurfiorette@users.noreply.github.com>
2025-12-08 13:41:47 +00:00
Copilot
9ad2ce4f79
Add max-age=0 to Cache-Control header for Safari compatibility ( #1138 )
...
* Initial plan
* Add max-age=0 to Cache-Control header for Safari compatibility
Co-authored-by: arthurfiorette <47537704+arthurfiorette@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: arthurfiorette <47537704+arthurfiorette@users.noreply.github.com>
2025-12-08 10:34:37 -03:00
Arthur Fiorette
55da840f7b
refactor: remove Object.freeze
2025-09-15 12:39:16 -03:00
Arthur Fiorette
2c8910b848
Update Cache-Control header to prevent caching ( #1091 )
2025-09-15 12:36:51 -03:00
Arthur Fiorette
cc8c8b0b04
feat: update biome config
2025-07-01 21:52:19 -03:00
Thomas Kam
6ca387efd9
Feature: whitelist paths ( #1008 )
...
Co-authored-by: thomassth <8331853+thomassth@users.noreply.github.com>
2025-04-27 13:58:35 -03:00
Arthur Fiorette
29988aa771
fix: linting
2025-03-17 23:54:29 -03:00
Arthur Fiorette
1178d334dc
feat: location and Cache-Control: private
2025-03-17 23:21:18 -03:00
Guillaume de Jabrun
12af673402
fix: aborted requests should not clear its cache afterwards if previous request was cached ( #923 )
2024-10-22 10:58:42 -03:00
Arthur Fiorette
a7a4e31e57
fix: cloneData for concurrent requests ( #921 )
...
* code
* code
* reuse my biome config
* fix breaking change on 1.6.0
* lint
2024-10-18 11:09:15 -03:00
dependabot[bot]
19690d95e5
build(deps-dev): bump @biomejs/biome from 1.5.3 to 1.9.0 ( #895 )
...
* build(deps-dev): bump @biomejs/biome from 1.5.3 to 1.9.0
Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome ) from 1.5.3 to 1.9.0.
- [Release notes](https://github.com/biomejs/biome/releases )
- [Changelog](https://github.com/biomejs/biome/blob/main/CHANGELOG.md )
- [Commits](https://github.com/biomejs/biome/commits/cli/v1.9.0/packages/@biomejs/biome )
---
updated-dependencies:
- dependency-name: "@biomejs/biome"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* code
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Arthur Fiorette <me@arthur.place>
2024-09-13 10:11:17 -03:00
Kevin Foniciello
75aa9cfefd
feat: add stale flag in request return object ( #843 )
...
* feature: added stale flag in request return object
* feature: added stale flag in request return object
* feat: added stale flag in request return object
* feat: added stale flag in request return object
* chore: fixed lint issues
2024-08-03 20:52:56 -03:00
Denis
2425b4dc9b
feat: clear storage method ( #848 )
2024-06-04 22:47:10 -03:00
Arthur Fiorette
d72f8d00d3
refactor: better tests
2024-05-21 13:03:39 -03:00
Edwin Veldhuizen
6cba59cc1c
[must-revalidate] properly revalidate based on eTag ( #824 )
...
* [must-revalidate] implement logic to properly revalidate requests with must-revalidate cache-control header
* [lint] fix sorting of imports
* [pull 824] apply feedback
---------
Co-authored-by: Edwin Veldhuizen <edwin@pxr.nl>
2024-04-23 13:06:04 -03:00
Amrendra Kumar
0214ec682c
fix: transformResponse running twice on cached requests ( #775 )
2024-01-18 23:54:44 -03:00
Arthur Fiorette
ed99d775bb
feat: correct ESM and CJS support, move to microbundle. ( #764 )
2024-01-18 23:48:33 -03:00
Sujeet Kc
05712980df
Ådd feature to blacklist some paths ( #754 )
...
* add feature to blacklist some paths
* format with biome
* update exclude attr definition
* improvements
* style: formatted code
* fix: lint
---------
Co-authored-by: Arthur Fiorette <me@arthur.place>
2023-12-23 17:40:05 -03:00
Arthur Fiorette
a890fc2a8c
fix: support for URLSearchParams
2023-12-13 12:19:06 -03:00
Arthur Fiorette
db00789433
style: linted code
2023-11-16 03:34:03 -03:00
Arthur Fiorette
eefc98c6c0
perf: faster tests
2023-11-16 03:33:24 -03:00
Arthur Fiorette
ecbc27e466
style: linted code
2023-11-16 03:26:37 -03:00
Arthur Fiorette
892649c92f
fix: override and hydrate globally ( #694 )
2023-10-23 12:51:23 -03:00
Arthur Fiorette
356ec36e4a
tests: removed console debug
2023-10-23 12:44:26 -03:00
Arthur Fiorette
277ffa6233
tests: removed .only in tests
2023-10-23 12:33:30 -03:00
Arthur Fiorette
286b2c0296
fix: rejected response deadlocks ( #685 )
2023-09-30 15:44:37 -03:00
Arthur Fiorette
dd8f634d75
feat: testing with tsx and c8
2023-09-30 14:57:22 -03:00
arthurfiorette
130ef0d306
fix: infinite loading states when a restart occurs in the middle of a request. ( #612 )
2023-09-03 18:53:26 -03:00
arthurfiorette
4dbfea2a03
fix: moved to native source map support
2023-09-03 16:00:43 -03:00
arthurfiorette
2cc948d531
feat: moved tests to node:test ( #628 )
2023-09-03 15:53:58 -03:00
José
e2b73e1c3a
fix: avoid RangeError: Maximum call stack size exceeded on streams and other objects ( #616 )
...
* refactor: change id generation location
* fix: lint
* refactor: ensures id will be created only if cache is not false
* chore(deps-dev): bump vitepress from 1.0.0-beta.5 to 1.0.0-beta.6 (#618 )
* chore(deps-dev): bump @types/node from 18.16.19 to 18.17.0 (#617 )
* chore(deps-dev): bump tslib from 2.6.0 to 2.6.1 (#619 )
* chore(deps-dev): bump @types/node from 18.17.0 to 18.17.1 (#620 )
* chore: dependabot
* ci: dependabot
* feat: handle non axios errors rejections (#609 )
* fix: correct config re throw
* chore(deps-dev): bump eslint-config-prettier from 8.8.0 to 8.9.0 (#624 )
* chore(deps-dev): bump jest from 29.6.1 to 29.6.2 (#622 )
* feat: turn most types into interfaces (#615 )
* Turn most types into interfaces
* Turn 'CacheAxiosResponse' into a interface
* Update docs
* Change docs to be more didactic
* chore(deps-dev): bump jest-environment-jsdom from 29.6.1 to 29.6.2 (#623 )
* chore: removed unused eslint comment
* feat: handle errors on object-code
* feat: bring back ids
* chore: lint
---------
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Arthur Fiorette <arthur.fiorette@gmail.com>
Co-authored-by: Denis Rossati <denis.rossatiramos@gmail.com>
2023-07-30 03:39:36 -03:00
arthurfiorette
ddcac5f58f
fix: correct config re throw
2023-07-30 00:05:15 -03:00
arthurfiorette
929054e83f
feat: handle non axios errors rejections ( #609 )
2023-07-28 01:25:53 -03:00
Benjamin Hallion
6407cadb0f
feat: 'cloneData' option to buildMemoryStorage ( #581 )
...
* Add 'storeClone' option to buildMemoryStorage function
* fix lint issue
* fix lint issue
* add test for new storeClone option
* fix linter issue
* update comment
* update code according to review
* fix test
* Update src/storage/memory.ts
Add this comment to code coverage skip the structuredClone test
Co-authored-by: Arthur Fiorette <github@arthur.place>
* Update test/storage/memory.test.ts
Co-authored-by: Arthur Fiorette <github@arthur.place>
* fix test
* fix indent
* Update src/storage/memory.ts
* Update test/storage/memory.test.ts
* Update test/storage/memory.test.ts
* Update test/storage/memory.test.ts
* Update test/storage/memory.test.ts
* refactor: docs and more
---------
Co-authored-by: Arthur Fiorette <github@arthur.place>
Co-authored-by: arthurfiorette <arthur.fiorette@gmail.com>
2023-07-01 19:35:53 -03:00
arthurfiorette
c7dab4fa57
chore: updated dependencies
2023-06-09 13:22:44 -03:00
arthurfiorette
a5f071dbd9
style: formatted code
2023-06-09 13:14:47 -03:00
arthurfiorette
683dbe0f22
fix: support max-stale on header interpreter ( #543 )
2023-06-09 13:10:06 -03:00
arthurfiorette
82182bf7f8
fix: correct canStale checks ( #543 )
2023-06-09 13:10:06 -03:00
arthurfiorette
7e5ca7e68a
fix: correct lowercase test
2023-06-08 13:21:29 -03:00
arthurfiorette
ebd400bfa4
feat: max entries on memory storage #539
2023-05-25 13:14:11 -03:00
arthurfiorette
ee9a7deeae
fix: flaky network test and improved redis documentation
2023-05-25 12:23:35 -03:00
arthurfiorette
22870d7d72
fix: canStale should return false if Cache-Control: must-revalidate is present #507
2023-04-09 12:51:52 -03:00
arthurfiorette
9bb2918607
fix: lint again
2023-04-09 12:37:05 -03:00
arthurfiorette
a2dbb5f100
test: transform response test
2023-04-09 12:21:53 -03:00
arthurfiorette
7731d7e52b
fix: lint
2023-04-09 12:09:28 -03:00
arthurfiorette
083f4b7f4d
fix: test open handles
2023-03-27 19:31:42 -03:00
arthurfiorette
72de39c4d3
feat: memory storage cleanup
2023-03-19 19:30:19 -03:00
arthurfiorette
360ba57348
feat: handle response interceptor errors
2023-03-19 17:30:02 -03:00
Richard Garnier
2ae4d28878
fix: Support stale-while-revalidate ( #514 )
...
* implement stale-while-revalidate
* Backward compatibility
* Fix review comments
* chore: isExpired check comment
---------
Co-authored-by: Arthur Fiorette <github@arthur.place>
2023-03-19 16:54:24 -03:00