@keq-request/cache 5.0.0-alpha.36 → 5.0.0-beta.1
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 +83 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,88 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.0.0-beta.1
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 5f5bdd9: **BREAKING CHANGE:** Simplified KeqCacheStrategy interface.
|
|
8
|
+
- 5175097: **BREAKING CHANGE:** group all packages under the @keq-request scope
|
|
9
|
+
|
|
10
|
+
- keq-cache => @keq-request/cache
|
|
11
|
+
- keq-headers => @keq-request/headers
|
|
12
|
+
- keq-cli => @keq-request/cli
|
|
13
|
+
- keq-url => @keq-request/url
|
|
14
|
+
- keq-exception => @keq-request/exception
|
|
15
|
+
|
|
16
|
+
- 153244f: **BREAKING CHANGE:** `onNetworkResponse` has been removed, please use `.on('cache:update', callback)` instead.
|
|
17
|
+
- 0a04864: **Fix:** fix: update browser targets to chrome91/firefox90/safari15/edge91 to resolve esbuild 0.27 destructuring build errors.
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- 153244f: **Feat:** Add `onCacheGet`, `onCacheSet`, `onCacheRemove`, `onCacheEvict` and `onCacheExpired` hook for `MemoryStorage` and `IndexedDBStorage`.
|
|
22
|
+
- 54520a9: **Feat:** using `.option('cache', false)` can disable caching for request that are cached by default
|
|
23
|
+
- 153244f: **Feat:** Add `cache:hit`, `cache:miss` and `cache:update` to keq events.
|
|
24
|
+
- 25414cb: add print method to display MemoryStorage entries
|
|
25
|
+
- 89274bd: **Feat:** add a Size enum make it easier to set the size
|
|
26
|
+
- d1090d3: **Feat:** add debug logs and Server-Timing header.
|
|
27
|
+
- 9ab2c64: Convert non-essential cli tasks into plugins.
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- b8d68c7: **Fix:** IndexedDBStorage cannot evict ttl cache
|
|
32
|
+
- bbfda6b: Fix the error throw when set server-timing header.
|
|
33
|
+
- 20c7067: **Fix:** Failed to automatically clean up expired cache data when get immediately after initialization.
|
|
34
|
+
- 153244f: **Feat:** `pattern` accept boolean and defaults to true
|
|
35
|
+
- 5d2ce07: **Perf:** add blocking for concurrent requests with same cache key.
|
|
36
|
+
- 2686b8d: build with turbo
|
|
37
|
+
- 153244f: **Fix:** unable to cache modified `ctx.res`.
|
|
38
|
+
- 2686b8d: remove private dependencies
|
|
39
|
+
- 9a9caa4: Cannot call CacheEntry.response.json multiple times.
|
|
40
|
+
- e7eb9dc: Don't publish .turbo and jest.config.cts to npm
|
|
41
|
+
- 0873c7e: Incorrect build before release.
|
|
42
|
+
- ff5464b: Prevent other middlewares from inadvertently modifying the cache key.
|
|
43
|
+
- 581815a: ensure compatibility
|
|
44
|
+
- 7343445: Incorrect build before release
|
|
45
|
+
- Updated dependencies [cbc5d17]
|
|
46
|
+
- Updated dependencies [153244f]
|
|
47
|
+
- Updated dependencies [153244f]
|
|
48
|
+
- Updated dependencies [153244f]
|
|
49
|
+
- Updated dependencies [0a2eb2f]
|
|
50
|
+
- Updated dependencies [153244f]
|
|
51
|
+
- Updated dependencies [214ae66]
|
|
52
|
+
- Updated dependencies [c7ffd1f]
|
|
53
|
+
- Updated dependencies [90311b3]
|
|
54
|
+
- Updated dependencies [1f367c0]
|
|
55
|
+
- Updated dependencies [0c7db81]
|
|
56
|
+
- Updated dependencies [df114d1]
|
|
57
|
+
- Updated dependencies [2686b8d]
|
|
58
|
+
- Updated dependencies [842e555]
|
|
59
|
+
- Updated dependencies [153244f]
|
|
60
|
+
- Updated dependencies [2686b8d]
|
|
61
|
+
- Updated dependencies [9290139]
|
|
62
|
+
- Updated dependencies [7873a0a]
|
|
63
|
+
- Updated dependencies [e7eb9dc]
|
|
64
|
+
- Updated dependencies [7ff2162]
|
|
65
|
+
- Updated dependencies [22ce01a]
|
|
66
|
+
- Updated dependencies [0873c7e]
|
|
67
|
+
- Updated dependencies [153244f]
|
|
68
|
+
- Updated dependencies [a7a83da]
|
|
69
|
+
- Updated dependencies [f194c41]
|
|
70
|
+
- Updated dependencies [153244f]
|
|
71
|
+
- Updated dependencies [153244f]
|
|
72
|
+
- Updated dependencies [d076b76]
|
|
73
|
+
- Updated dependencies [f8abc63]
|
|
74
|
+
- Updated dependencies [153244f]
|
|
75
|
+
- Updated dependencies [ca6c879]
|
|
76
|
+
- Updated dependencies [63161c4]
|
|
77
|
+
- Updated dependencies [d472648]
|
|
78
|
+
- Updated dependencies [b8d02ca]
|
|
79
|
+
- Updated dependencies [0a04864]
|
|
80
|
+
- Updated dependencies [581815a]
|
|
81
|
+
- Updated dependencies [7343445]
|
|
82
|
+
- Updated dependencies [153244f]
|
|
83
|
+
- Updated dependencies [eed26f9]
|
|
84
|
+
- keq@5.0.0-beta.1
|
|
85
|
+
|
|
3
86
|
## 5.0.0-alpha.36
|
|
4
87
|
|
|
5
88
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keq-request/cache",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-beta.1",
|
|
4
4
|
"description": "Adds request caching capabilities similar to service workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"keq",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"@types/ramda": "^0.31.1",
|
|
31
31
|
"fake-indexeddb": "^6.2.5",
|
|
32
32
|
"isomorphic-fetch": "^3.0.0",
|
|
33
|
-
"keq": "5.0.0-
|
|
33
|
+
"keq": "5.0.0-beta.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"keq": "^5.0.0-
|
|
36
|
+
"keq": "^5.0.0-beta.1"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"dayjs": "^1.11.20",
|