@keq-request/cache 5.0.0-alpha.7 → 5.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +377 -0
- package/dist/index.d.mts +354 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +353 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1271 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1237 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +14 -22
- package/tsdown.config.ts +12 -0
- package/jest.config.cts +0 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,382 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.0.0-beta.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [95908fd]
|
|
8
|
+
- keq@5.0.0-beta.10
|
|
9
|
+
|
|
10
|
+
## 5.0.0-beta.9
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- keq@5.0.0-beta.9
|
|
15
|
+
|
|
16
|
+
## 5.0.0-beta.8
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- keq@5.0.0-beta.8
|
|
21
|
+
|
|
22
|
+
## 5.0.0-beta.7
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- keq@5.0.0-beta.7
|
|
27
|
+
|
|
28
|
+
## 5.0.0-beta.6
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- keq@5.0.0-beta.6
|
|
33
|
+
|
|
34
|
+
## 5.0.0-beta.5
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- keq@5.0.0-beta.5
|
|
39
|
+
|
|
40
|
+
## 5.0.0-beta.4
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- keq@5.0.0-beta.4
|
|
45
|
+
|
|
46
|
+
## 5.0.0-beta.3
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- keq@5.0.0-beta.3
|
|
51
|
+
|
|
52
|
+
## 5.0.0-beta.2
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- keq@5.0.0-beta.2
|
|
57
|
+
|
|
58
|
+
## 5.0.0-beta.1
|
|
59
|
+
|
|
60
|
+
### Major Changes
|
|
61
|
+
|
|
62
|
+
- 5f5bdd9: **BREAKING CHANGE:** Simplified KeqCacheStrategy interface.
|
|
63
|
+
- 5175097: **BREAKING CHANGE:** group all packages under the @keq-request scope
|
|
64
|
+
|
|
65
|
+
- keq-cache => @keq-request/cache
|
|
66
|
+
- keq-headers => @keq-request/headers
|
|
67
|
+
- keq-cli => @keq-request/cli
|
|
68
|
+
- keq-url => @keq-request/url
|
|
69
|
+
- keq-exception => @keq-request/exception
|
|
70
|
+
|
|
71
|
+
- 153244f: **BREAKING CHANGE:** `onNetworkResponse` has been removed, please use `.on('cache:update', callback)` instead.
|
|
72
|
+
- 0a04864: **Fix:** fix: update browser targets to chrome91/firefox90/safari15/edge91 to resolve esbuild 0.27 destructuring build errors.
|
|
73
|
+
|
|
74
|
+
### Minor Changes
|
|
75
|
+
|
|
76
|
+
- 153244f: **Feat:** Add `onCacheGet`, `onCacheSet`, `onCacheRemove`, `onCacheEvict` and `onCacheExpired` hook for `MemoryStorage` and `IndexedDBStorage`.
|
|
77
|
+
- 54520a9: **Feat:** using `.option('cache', false)` can disable caching for request that are cached by default
|
|
78
|
+
- 153244f: **Feat:** Add `cache:hit`, `cache:miss` and `cache:update` to keq events.
|
|
79
|
+
- 25414cb: add print method to display MemoryStorage entries
|
|
80
|
+
- 89274bd: **Feat:** add a Size enum make it easier to set the size
|
|
81
|
+
- d1090d3: **Feat:** add debug logs and Server-Timing header.
|
|
82
|
+
- 9ab2c64: Convert non-essential cli tasks into plugins.
|
|
83
|
+
|
|
84
|
+
### Patch Changes
|
|
85
|
+
|
|
86
|
+
- b8d68c7: **Fix:** IndexedDBStorage cannot evict ttl cache
|
|
87
|
+
- bbfda6b: Fix the error throw when set server-timing header.
|
|
88
|
+
- 20c7067: **Fix:** Failed to automatically clean up expired cache data when get immediately after initialization.
|
|
89
|
+
- 153244f: **Feat:** `pattern` accept boolean and defaults to true
|
|
90
|
+
- 5d2ce07: **Perf:** add blocking for concurrent requests with same cache key.
|
|
91
|
+
- 2686b8d: build with turbo
|
|
92
|
+
- 153244f: **Fix:** unable to cache modified `ctx.res`.
|
|
93
|
+
- 2686b8d: remove private dependencies
|
|
94
|
+
- 9a9caa4: Cannot call CacheEntry.response.json multiple times.
|
|
95
|
+
- e7eb9dc: Don't publish .turbo and jest.config.cts to npm
|
|
96
|
+
- 0873c7e: Incorrect build before release.
|
|
97
|
+
- ff5464b: Prevent other middlewares from inadvertently modifying the cache key.
|
|
98
|
+
- 581815a: ensure compatibility
|
|
99
|
+
- 7343445: Incorrect build before release
|
|
100
|
+
- Updated dependencies [cbc5d17]
|
|
101
|
+
- Updated dependencies [153244f]
|
|
102
|
+
- Updated dependencies [153244f]
|
|
103
|
+
- Updated dependencies [153244f]
|
|
104
|
+
- Updated dependencies [0a2eb2f]
|
|
105
|
+
- Updated dependencies [153244f]
|
|
106
|
+
- Updated dependencies [214ae66]
|
|
107
|
+
- Updated dependencies [c7ffd1f]
|
|
108
|
+
- Updated dependencies [90311b3]
|
|
109
|
+
- Updated dependencies [1f367c0]
|
|
110
|
+
- Updated dependencies [0c7db81]
|
|
111
|
+
- Updated dependencies [df114d1]
|
|
112
|
+
- Updated dependencies [2686b8d]
|
|
113
|
+
- Updated dependencies [842e555]
|
|
114
|
+
- Updated dependencies [153244f]
|
|
115
|
+
- Updated dependencies [2686b8d]
|
|
116
|
+
- Updated dependencies [9290139]
|
|
117
|
+
- Updated dependencies [7873a0a]
|
|
118
|
+
- Updated dependencies [e7eb9dc]
|
|
119
|
+
- Updated dependencies [7ff2162]
|
|
120
|
+
- Updated dependencies [22ce01a]
|
|
121
|
+
- Updated dependencies [0873c7e]
|
|
122
|
+
- Updated dependencies [153244f]
|
|
123
|
+
- Updated dependencies [a7a83da]
|
|
124
|
+
- Updated dependencies [f194c41]
|
|
125
|
+
- Updated dependencies [153244f]
|
|
126
|
+
- Updated dependencies [153244f]
|
|
127
|
+
- Updated dependencies [d076b76]
|
|
128
|
+
- Updated dependencies [f8abc63]
|
|
129
|
+
- Updated dependencies [153244f]
|
|
130
|
+
- Updated dependencies [ca6c879]
|
|
131
|
+
- Updated dependencies [63161c4]
|
|
132
|
+
- Updated dependencies [d472648]
|
|
133
|
+
- Updated dependencies [b8d02ca]
|
|
134
|
+
- Updated dependencies [0a04864]
|
|
135
|
+
- Updated dependencies [581815a]
|
|
136
|
+
- Updated dependencies [7343445]
|
|
137
|
+
- Updated dependencies [153244f]
|
|
138
|
+
- Updated dependencies [eed26f9]
|
|
139
|
+
- keq@5.0.0-beta.1
|
|
140
|
+
|
|
141
|
+
## 5.0.0-alpha.36
|
|
142
|
+
|
|
143
|
+
### Patch Changes
|
|
144
|
+
|
|
145
|
+
- keq@5.0.0-alpha.36
|
|
146
|
+
|
|
147
|
+
## 5.0.0-alpha.35
|
|
148
|
+
|
|
149
|
+
### Major Changes
|
|
150
|
+
|
|
151
|
+
- 0a04864: **Fix:** fix: update browser targets to chrome91/firefox90/safari15/edge91 to resolve esbuild 0.27 destructuring build errors.
|
|
152
|
+
|
|
153
|
+
### Patch Changes
|
|
154
|
+
|
|
155
|
+
- Updated dependencies [0a04864]
|
|
156
|
+
- keq@5.0.0-alpha.35
|
|
157
|
+
|
|
158
|
+
## 5.0.0-alpha.34
|
|
159
|
+
|
|
160
|
+
### Patch Changes
|
|
161
|
+
|
|
162
|
+
- Updated dependencies [a7a83da]
|
|
163
|
+
- Updated dependencies [f8abc63]
|
|
164
|
+
- keq@5.0.0-alpha.34
|
|
165
|
+
|
|
166
|
+
## 5.0.0-alpha.33
|
|
167
|
+
|
|
168
|
+
### Patch Changes
|
|
169
|
+
|
|
170
|
+
- keq@5.0.0-alpha.33
|
|
171
|
+
|
|
172
|
+
## 5.0.0-alpha.32
|
|
173
|
+
|
|
174
|
+
### Patch Changes
|
|
175
|
+
|
|
176
|
+
- Updated dependencies [f194c41]
|
|
177
|
+
- Updated dependencies [b8d02ca]
|
|
178
|
+
- keq@5.0.0-alpha.32
|
|
179
|
+
|
|
180
|
+
## 5.0.0-alpha.31
|
|
181
|
+
|
|
182
|
+
### Patch Changes
|
|
183
|
+
|
|
184
|
+
- keq@5.0.0-alpha.31
|
|
185
|
+
|
|
186
|
+
## 5.0.0-alpha.30
|
|
187
|
+
|
|
188
|
+
### Patch Changes
|
|
189
|
+
|
|
190
|
+
- keq@5.0.0-alpha.30
|
|
191
|
+
|
|
192
|
+
## 5.0.0-alpha.29
|
|
193
|
+
|
|
194
|
+
### Patch Changes
|
|
195
|
+
|
|
196
|
+
- ff5464b: Prevent other middlewares from inadvertently modifying the cache key.
|
|
197
|
+
- keq@5.0.0-alpha.29
|
|
198
|
+
|
|
199
|
+
## 5.0.0-alpha.28
|
|
200
|
+
|
|
201
|
+
### Patch Changes
|
|
202
|
+
|
|
203
|
+
- Updated dependencies [d076b76]
|
|
204
|
+
- keq@5.0.0-alpha.28
|
|
205
|
+
|
|
206
|
+
## 5.0.0-alpha.27
|
|
207
|
+
|
|
208
|
+
### Patch Changes
|
|
209
|
+
|
|
210
|
+
- bbfda6b: Fix the error throw when set server-timing header.
|
|
211
|
+
- 5d2ce07: **Perf:** add blocking for concurrent requests with same cache key.
|
|
212
|
+
- Updated dependencies [0c7db81]
|
|
213
|
+
- keq@5.0.0-alpha.27
|
|
214
|
+
|
|
215
|
+
## 5.0.0-alpha.26
|
|
216
|
+
|
|
217
|
+
### Patch Changes
|
|
218
|
+
|
|
219
|
+
- Updated dependencies [22ce01a]
|
|
220
|
+
- Updated dependencies [63161c4]
|
|
221
|
+
- keq@5.0.0-alpha.26
|
|
222
|
+
|
|
223
|
+
## 5.0.0-alpha.25
|
|
224
|
+
|
|
225
|
+
### Minor Changes
|
|
226
|
+
|
|
227
|
+
- d1090d3: **Feat:** add debug logs and Server-Timing header.
|
|
228
|
+
|
|
229
|
+
### Patch Changes
|
|
230
|
+
|
|
231
|
+
- Updated dependencies [214ae66]
|
|
232
|
+
- Updated dependencies [9290139]
|
|
233
|
+
- keq@5.0.0-alpha.25
|
|
234
|
+
|
|
235
|
+
## 5.0.0-alpha.24
|
|
236
|
+
|
|
237
|
+
### Patch Changes
|
|
238
|
+
|
|
239
|
+
- Updated dependencies [0a2eb2f]
|
|
240
|
+
- keq@5.0.0-alpha.24
|
|
241
|
+
|
|
242
|
+
## 5.0.0-alpha.23
|
|
243
|
+
|
|
244
|
+
### Major Changes
|
|
245
|
+
|
|
246
|
+
- 5f5bdd9: **BREAKING CHANGE:** Simplified KeqCacheStrategy interface.
|
|
247
|
+
|
|
248
|
+
### Minor Changes
|
|
249
|
+
|
|
250
|
+
- 9ab2c64: Convert non-essential cli tasks into plugins.
|
|
251
|
+
|
|
252
|
+
### Patch Changes
|
|
253
|
+
|
|
254
|
+
- b8d68c7: **Fix:** IndexedDBStorage cannot evict ttl cache
|
|
255
|
+
- 20c7067: **Fix:** Failed to automatically clean up expired cache data when get immediately after initialization.
|
|
256
|
+
- 9a9caa4: Cannot call CacheEntry.response.json multiple times.
|
|
257
|
+
- Updated dependencies [842e555]
|
|
258
|
+
- Updated dependencies [7873a0a]
|
|
259
|
+
- keq@5.0.0-alpha.23
|
|
260
|
+
|
|
261
|
+
## 5.0.0-alpha.22
|
|
262
|
+
|
|
263
|
+
### Patch Changes
|
|
264
|
+
|
|
265
|
+
- Updated dependencies [df114d1]
|
|
266
|
+
- keq@5.0.0-alpha.22
|
|
267
|
+
|
|
268
|
+
## 5.0.0-alpha.21
|
|
269
|
+
|
|
270
|
+
### Minor Changes
|
|
271
|
+
|
|
272
|
+
- 25414cb: add print method to display MemoryStorage entries
|
|
273
|
+
|
|
274
|
+
### Patch Changes
|
|
275
|
+
|
|
276
|
+
- Updated dependencies [90311b3]
|
|
277
|
+
- keq@5.0.0-alpha.21
|
|
278
|
+
|
|
279
|
+
## 5.0.0-alpha.20
|
|
280
|
+
|
|
281
|
+
### Patch Changes
|
|
282
|
+
|
|
283
|
+
- Updated dependencies [1f367c0]
|
|
284
|
+
- keq@5.0.0-alpha.20
|
|
285
|
+
|
|
286
|
+
## 5.0.0-alpha.19
|
|
287
|
+
|
|
288
|
+
### Patch Changes
|
|
289
|
+
|
|
290
|
+
- keq@5.0.0-alpha.19
|
|
291
|
+
|
|
292
|
+
## 5.0.0-alpha.18
|
|
293
|
+
|
|
294
|
+
### Patch Changes
|
|
295
|
+
|
|
296
|
+
- Updated dependencies [cbc5d17]
|
|
297
|
+
- keq@5.0.0-alpha.18
|
|
298
|
+
|
|
299
|
+
## 5.0.0-alpha.17
|
|
300
|
+
|
|
301
|
+
### Patch Changes
|
|
302
|
+
|
|
303
|
+
- Updated dependencies [d472648]
|
|
304
|
+
- Updated dependencies [eed26f9]
|
|
305
|
+
- keq@5.0.0-alpha.17
|
|
306
|
+
|
|
307
|
+
## 5.0.0-alpha.16
|
|
308
|
+
|
|
309
|
+
### Patch Changes
|
|
310
|
+
|
|
311
|
+
- Updated dependencies [ca6c879]
|
|
312
|
+
- keq@5.0.0-alpha.16
|
|
313
|
+
|
|
314
|
+
## 5.0.0-alpha.15
|
|
315
|
+
|
|
316
|
+
### Patch Changes
|
|
317
|
+
|
|
318
|
+
- keq@5.0.0-alpha.15
|
|
319
|
+
|
|
320
|
+
## 5.0.0-alpha.14
|
|
321
|
+
|
|
322
|
+
### Patch Changes
|
|
323
|
+
|
|
324
|
+
- keq@5.0.0-alpha.14
|
|
325
|
+
|
|
326
|
+
## 5.0.0-alpha.13
|
|
327
|
+
|
|
328
|
+
### Patch Changes
|
|
329
|
+
|
|
330
|
+
- keq@5.0.0-alpha.13
|
|
331
|
+
|
|
332
|
+
## 5.0.0-alpha.12
|
|
333
|
+
|
|
334
|
+
### Patch Changes
|
|
335
|
+
|
|
336
|
+
- 581815a: ensure compatibility
|
|
337
|
+
- Updated dependencies [581815a]
|
|
338
|
+
- keq@5.0.0-alpha.12
|
|
339
|
+
|
|
340
|
+
## 5.0.0-alpha.11
|
|
341
|
+
|
|
342
|
+
### Minor Changes
|
|
343
|
+
|
|
344
|
+
- 54520a9: **Feat:** using `.option('cache', false)` can disable caching for request that are cached by default
|
|
345
|
+
- 89274bd: **Feat:** add a Size enum make it easier to set the size
|
|
346
|
+
|
|
347
|
+
### Patch Changes
|
|
348
|
+
|
|
349
|
+
- Updated dependencies [c7ffd1f]
|
|
350
|
+
- keq@5.0.0-alpha.11
|
|
351
|
+
|
|
352
|
+
## 5.0.0-alpha.10
|
|
353
|
+
|
|
354
|
+
### Patch Changes
|
|
355
|
+
|
|
356
|
+
- e7eb9dc: Don't publish .turbo and jest.config.cts to npm
|
|
357
|
+
- 7343445: Incorrect build before release
|
|
358
|
+
- Updated dependencies [e7eb9dc]
|
|
359
|
+
- Updated dependencies [7343445]
|
|
360
|
+
- keq@5.0.0-alpha.10
|
|
361
|
+
|
|
362
|
+
## 5.0.0-alpha.9
|
|
363
|
+
|
|
364
|
+
### Patch Changes
|
|
365
|
+
|
|
366
|
+
- 2686b8d: build with burbo
|
|
367
|
+
- 2686b8d: remove private dependencies
|
|
368
|
+
- Updated dependencies [2686b8d]
|
|
369
|
+
- Updated dependencies [2686b8d]
|
|
370
|
+
- keq@5.0.0-alpha.9
|
|
371
|
+
|
|
372
|
+
## 5.0.0-alpha.8
|
|
373
|
+
|
|
374
|
+
### Patch Changes
|
|
375
|
+
|
|
376
|
+
- 0873c7e: Incorrect build before release.
|
|
377
|
+
- Updated dependencies [0873c7e]
|
|
378
|
+
- keq@5.0.0-alpha.8
|
|
379
|
+
|
|
3
380
|
## 5.0.0-alpha.7
|
|
4
381
|
|
|
5
382
|
### Major Changes
|