28 Commits

Author SHA1 Message Date
Arthur Fiorette
cc8c8b0b04
feat: update biome config 2025-07-01 21:52:19 -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
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
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
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
286b2c0296
fix: rejected response deadlocks (#685) 2023-09-30 15:44:37 -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
2cc948d531
feat: moved tests to node:test (#628) 2023-09-03 15:53:58 -03:00
arthurfiorette
929054e83f
feat: handle non axios errors rejections (#609) 2023-07-28 01:25:53 -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
360ba57348 feat: handle response interceptor errors 2023-03-19 17:30:02 -03:00
Dimitris-Rafail Katsampas
7ea3023e95
fix: prevent response storage calls if method is not supported (#464)
* fix: Prevent response storage calls if method is not supported

* fix: Added missing import

* chore: File formatting

* fix: Ensure updateCache gets called before method check

* chore: Removed unnecessary optional chaining

* fix: Added methods check for reject callback

* test: Added tests that cover cache.methods cases

* test: Added assertions to axios rejecting tests

* chore: Added more details to debugging logs
2023-01-18 08:33:28 -03:00
Arthur Fiorette
88c9655ba3
Axios cache interceptor v1 roadmap (#368)
* chore(deps-dev): bump axios from 0.27.2 to 1.0.0

Bumps [axios](https://github.com/axios/axios) from 0.27.2 to 1.0.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.27.2...v1.0.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* feat: initial changes

* feat: more docs

* docs: global config

* feat: comparison

* chore: more docs

* docs: migrate docs generator to vitepress (#403)

* chore(vitepress): add basic files

* chore(vitepress): add dev deps & scripts for use

* chore(vitepress config): change to ts for type checks

* chore(vitepress config): remove js file

* chore(vitepress theme): add custom theme css

* chore(vitepress docs): add simple home page

* chore(gitignore): ignore doc dist

* chore(favicon): add icon to head

* feat(doc-features): add features spotlight

* chore(doc footer): made with ❤️

* chore(structure): move md files into `./src`

* chore(config): re-organise

* chore: custom dev port

* feat: documentation pages

* refactor: modified config

* feat: social links

* style: formatted code

* feat: removed code groups temporarily

* fix: fixed bundlephobia svg

* docs: general documentation remake

* docs: more rewritting

Co-authored-by: arthurfiorette <arthur.fiorette@gmail.com>

* fix: change headers usage

* fix: adapters exporting changes

* fix: request doesnt execute after abortion

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Cain <75994858+cainthebest@users.noreply.github.com>
2022-12-05 22:36:31 -03:00
arthurfiorette
491fb011a3
test: added #317 test 2022-08-17 23:03:22 -03:00
arthurfiorette
d87307ae93
feat: remove remnant x-axios-headers from server response 2022-06-05 09:50:02 -03:00
arthurfiorette
d14750ee63
refactor: moved header file 2022-01-19 07:48:33 -03:00
arthurfiorette
66f29c92c7
deps: updated axios to v0.25 2022-01-18 12:25:31 -03:00
Arthur Fiorette
25b34e5d11
docs: documentation at axios-cache-interceptor.js.org (#108) 2022-01-06 18:44:36 -03:00
arthurfiorette
1e87549eb6
feat: allow ttl to be defined based on the response 2022-01-03 10:00:39 -03:00
Arthur Fiorette
92b9ed7abf
feat: more headers supports, tests and must-revalidate fix (#51)
* feat: must-revalidate and headers enum
* test: added more tests
* test: test and code fixes
* test: more tests
2021-11-11 14:16:37 -03:00
Hazork
75deccf57d feat: preserve response status codes and use response.cached 2021-10-12 12:12:32 -03:00
Hazork
5b6d14f314 refactor: removed symbol support and more tests 2021-09-20 12:20:35 -03:00
Hazork
70e5c07ff3 refactor: concurreny fixes and refactored deferred
Also changed format settings,
fixed AxiosResponse types
and coded more tests
2021-09-20 12:04:40 -03:00
Hazork
84dc522b87 refactor: init request and response tests 2021-09-13 19:20:31 -03:00