173 Commits

Author SHA1 Message Date
arthurfiorette
d14750ee63
refactor: moved header file 2022-01-19 07:48:33 -03:00
arthurfiorette
7217eaff02
fix: removed breaking behaviour 2022-01-18 12:48:49 -03:00
arthurfiorette
66f29c92c7
deps: updated axios to v0.25 2022-01-18 12:25:31 -03:00
arthurfiorette
edb32bdea3
feat: add staleIfError support 2022-01-18 12:06:20 -03:00
arthurfiorette
0aed72f309
docs: updated rukit example 2022-01-17 17:15:13 -03:00
arthurfiorette
0e2508c020
refactor: use Object.freeze at Header enum 2022-01-15 21:42:46 -03:00
arthurfiorette
6d9683a410
build: optimize umd builds with tslib 2022-01-15 13:02:57 -03:00
arthurfiorette
e391f5664c
refactor: Header as const and renaming... 2022-01-15 12:22:12 -03:00
arthurfiorette
9379fce100
feat: buildKeyGenerator and ids with req.data by default 2022-01-14 18:46:20 -03:00
arthurfiorette
fa2c6e3204
perf: only execute one generateKey per request 2022-01-13 21:23:36 -03:00
arthurfiorette
6f9ef36e75
fix: include data at keyGenerator (#116) 2022-01-13 20:48:21 -03:00
Arthur Fiorette
4734c5f7a8
build: Yarn v2 and ESM & CJS bundles (#114) 2022-01-13 18:57:50 -03:00
arthurfiorette
93df4fd93b
chore: eslint no-explicit-any 2022-01-10 13:40:55 -03:00
arthurfiorette
ff73ad5c69
fix: await unawaited promises and eslint more severe 2022-01-10 13:30:31 -03:00
arthurfiorette
c3661a64e9
refactor: removed return await 2022-01-10 13:10:59 -03:00
arthurfiorette
88d45cc0fb
feat: cache predicate now supports async functions 2022-01-10 13:00:35 -03:00
arthurfiorette
d0b0e2fb6c
refactor: prefer unknown instead of any 2022-01-09 17:31:28 -03:00
arthurfiorette
38a5ecd365
refactor: simplified cachePredicate 2022-01-09 17:27:51 -03:00
arthurfiorette
e11e3466f1
fix: removed deprecated code 2022-01-09 13:35:11 -03:00
arthurfiorette
1b93070db4
refactor: used triple equal sign 2022-01-09 13:33:44 -03:00
arthurfiorette
37431a9d34
refactor!: removed isAxiosCacheInterceptor function 2022-01-08 12:57:19 -03:00
arthurfiorette
f30e2622dd
refactor: removed "abstract" buildInterceptor function 2022-01-08 12:56:55 -03:00
arthurfiorette
cd2f14c446
refactor: removed classes to decrease bundle size 2022-01-08 12:27:52 -03:00
arthurfiorette
733a47606f
fix: code scanning alert 2022-01-07 16:05:27 -03:00
arthurfiorette
ed1e163472
chore: bundles exports everything and webpack bundles everything 2022-01-07 15:45:06 -03:00
arthurfiorette
79ce1926d2
refactor: prefer unknown over any and removed find method from storages 2022-01-07 15:24:41 -03:00
Arthur Fiorette
25b34e5d11
docs: documentation at axios-cache-interceptor.js.org (#108) 2022-01-06 18:44:36 -03:00
arthurfiorette
3c38985113
style: prettified code 2022-01-04 15:38:32 -03:00
arthurfiorette
cfbd601b98
feat: suupport for async CacheUpdater 2022-01-04 15:28:38 -03:00
arthurfiorette
ce2f5976bc
fix: proper generic usage to type deep properties 2022-01-04 15:27:30 -03:00
arthurfiorette
8d5a90e2fd
fix: include default storages in cjs bundle 2022-01-04 15:16:40 -03:00
arthurfiorette
567c1b2477
refactor: allow storages not return promises 2022-01-04 15:15:27 -03:00
arthurfiorette
1e87549eb6
feat: allow ttl to be defined based on the response 2022-01-03 10:00:39 -03:00
arthurfiorette
c15598241a
refactor: simplified defaultKeyGenerator function 2022-01-03 09:21:47 -03:00
arthurfiorette
a7751fd1cb
tests: 100% coverage again 2022-01-03 09:21:16 -03:00
arthurfiorette
c57916fd67
refactor: extracted static functions to a single file 2022-01-03 09:14:47 -03:00
arthurfiorette
4c1e0ec3fc
docs: fixed tsdocs and added storages section 2022-01-03 09:13:43 -03:00
arthurfiorette
500ac71523
refactor: added data property in memory storages 2022-01-03 09:13:02 -03:00
arthurfiorette
e776f01c98
refactor: simplified header interpreter 2022-01-02 20:32:29 -03:00
arthurfiorette
bafe1de98c
refactor: modified and simplified storages 2022-01-02 20:30:00 -03:00
arthurfiorette
c32c452190
feat: added isAxiosCacheInterceptor function 2021-12-31 10:05:21 -03:00
arthurfiorette
232e9c51fa
feat: added many build options 2021-12-30 15:50:26 -03:00
arthurfiorette
4a0a99ff28
refactor: prevent confusion by renaming createCache to useCache 2021-12-30 13:54:23 -03:00
arthurfiorette
27de6292be
style: formatted code 2021-12-27 18:48:26 -03:00
arthurfiorette
8cad8030af
perf: minified code bundled as ES6 because axios itself needs ES6 2021-12-27 18:46:09 -03:00
arthurfiorette
065b6eff74
refactor: deprecated useCache in favor of createCache (#95) 2021-12-27 14:25:55 -03:00
arthurfiorette
fec63a84a7
test: added one simple test 2021-12-27 09:05:53 -03:00
arthurfiorette
6e25ba6f97
perf: reduce bundle size and replaced babel by ts-loader 2021-12-26 20:24:14 -03:00
arthurfiorette
6ce658b053
deps: use cache-parser 2021-12-13 15:32:38 -03:00
arthurfiorette
a77cde7e22
refactor: better cache predicate function 2021-12-11 12:27:37 -03:00