|
1 | 1 | # cringe lorg |
2 | 2 |
|
3 | | -## 10.3.0 |
| 3 | +## 10.4 |
| 4 | + |
| 5 | +Accidental minor update, should've been patch. |
| 6 | + |
| 7 | +## 10.3 |
4 | 8 |
|
5 | 9 | - add `forceFetch()` method |
6 | 10 | - set `disposeReason` to `'expire'` when it's the result of a TTL |
7 | 11 | expiration, or `'fetch'` when it's the result of an aborted |
8 | 12 | or `undefined`-returning `fetch()` |
9 | 13 | - add `memo()` method |
10 | 14 |
|
11 | | -## 10.2.0 |
| 15 | +## 10.2 |
12 | 16 |
|
13 | 17 | - types: implement the `Map<K, V>` interface |
14 | 18 |
|
15 | | -## 10.1.0 |
| 19 | +## 10.1 |
16 | 20 |
|
17 | 21 | - add `cache.info(key)` to get value as well as ttl and size |
18 | 22 | information. |
19 | 23 |
|
20 | | -## 10.0.0 |
| 24 | +## 10.0 |
21 | 25 |
|
22 | 26 | - `cache.fetch()` return type is now `Promise<V | undefined>` |
23 | 27 | instead of `Promise<V | void>`. This is an irrelevant change |
24 | 28 | practically speaking, but can require changes for TypeScript |
25 | 29 | users. |
26 | 30 |
|
27 | | -## 9.1.0 |
| 31 | +## 9.1 |
28 | 32 |
|
29 | 33 | - `cache.set(key, undefined)` is now an alias for |
30 | 34 | `cache.delete(key)` |
31 | 35 |
|
32 | | -## 9.0.0 |
| 36 | +## 9.0 |
33 | 37 |
|
34 | 38 | - Use named export only, no default export. |
35 | 39 | - Bring back minimal polyfill. If this polyfill ends up being |
36 | 40 | used, then a warning is printed, as it is not safe for use |
37 | 41 | outside of LRUCache. |
38 | 42 |
|
39 | | -## 8.0.0 |
| 43 | +## 8.0 |
40 | 44 |
|
41 | 45 | - The `fetchContext` option was renamed to `context`, and may no |
42 | 46 | longer be set on the cache instance itself. |
|
50 | 54 | - Minified export available at `'lru-cache/min'`, for both CJS |
51 | 55 | and MJS builds. |
52 | 56 |
|
53 | | -## 7.18.0 |
| 57 | +## 7.18 |
54 | 58 |
|
55 | 59 | - Add support for internal state investigation through the use of |
56 | 60 | a `status` option to `has()`, `set()`, `get()`, and `fetch()`. |
57 | 61 |
|
58 | | -## 7.17.0 |
| 62 | +## 7.17 |
59 | 63 |
|
60 | 64 | - Add `signal` option for `fetch` to pass a user-supplied |
61 | 65 | AbortSignal |
|
65 | 69 |
|
66 | 70 | - Fail fetch() promises when they are aborted |
67 | 71 |
|
68 | | -## 7.16.0 |
| 72 | +## 7.16 |
69 | 73 |
|
70 | 74 | - Add `allowStaleOnFetchRejection` option |
71 | 75 |
|
72 | | -## 7.15.0 |
| 76 | +## 7.15 |
73 | 77 |
|
74 | 78 | - Provide both ESM and CommonJS exports |
75 | 79 |
|
76 | | -## 7.14.0 |
| 80 | +## 7.14 |
77 | 81 |
|
78 | 82 | - Add `maxEntrySize` option to prevent caching items above a |
79 | 83 | given calculated size. |
80 | 84 |
|
81 | | -## 7.13.0 |
| 85 | +## 7.13 |
82 | 86 |
|
83 | 87 | - Add `forceRefresh` option to trigger a call to the |
84 | 88 | `fetchMethod` even if the item is found in cache, and not |
85 | 89 | older than its `ttl`. |
86 | 90 |
|
87 | | -## 7.12.0 |
| 91 | +## 7.12 |
88 | 92 |
|
89 | 93 | - Add `fetchContext` option to provide additional information to |
90 | 94 | the `fetchMethod` |
91 | 95 | - 7.12.1: Fix bug where adding an item with size greater than |
92 | 96 | `maxSize` would cause bizarre behavior. |
93 | 97 |
|
94 | | -## 7.11.0 |
| 98 | +## 7.11 |
95 | 99 |
|
96 | 100 | - Add 'noDeleteOnStaleGet' option, to suppress behavior where a |
97 | 101 | `get()` of a stale item would remove it from the cache. |
98 | 102 |
|
99 | | -## 7.10.0 |
| 103 | +## 7.10 |
100 | 104 |
|
101 | 105 | - Add `noDeleteOnFetchRejection` option, to suppress behavior |
102 | 106 | where a failed `fetch` will delete a previous stale value. |
103 | 107 | - Ship types along with the package, rather than relying on |
104 | 108 | out of date types coming from DefinitelyTyped. |
105 | 109 |
|
106 | | -## 7.9.0 |
| 110 | +## 7.9 |
107 | 111 |
|
108 | 112 | - Better AbortController polyfill, supporting |
109 | 113 | `signal.addEventListener('abort')` and `signal.onabort`. |
110 | 114 | - (7.9.1) Drop item from cache instead of crashing with an |
111 | 115 | `unhandledRejection` when the `fetchMethod` throws an error or |
112 | 116 | returns a rejected Promise. |
113 | 117 |
|
114 | | -## 7.8.0 |
| 118 | +## 7.8 |
115 | 119 |
|
116 | 120 | - add `updateAgeOnHas` option |
117 | 121 | - warnings sent to `console.error` if `process.emitWarning` unavailable |
118 | 122 |
|
119 | | -## 7.7.0 |
| 123 | +## 7.7 |
120 | 124 |
|
121 | 125 | - fetch: provide options and abort signal |
122 | 126 |
|
123 | | -## 7.6.0 |
| 127 | +## 7.6 |
124 | 128 |
|
125 | 129 | - add cache.getRemainingTTL(key) |
126 | 130 | - Add async cache.fetch() method, fetchMethod option |
127 | 131 | - Allow unbounded storage if maxSize or ttl set |
128 | 132 |
|
129 | | -## 7.5.0 |
| 133 | +## 7.5 |
130 | 134 |
|
131 | 135 | - defend against mutation while iterating |
132 | 136 | - Add rentries, rkeys, rvalues |
133 | 137 | - remove bundler and unnecessary package.json fields |
134 | 138 |
|
135 | | -## 7.4.0 |
| 139 | +## 7.4 |
136 | 140 |
|
137 | 141 | - Add browser optimized webpack bundle, exposed as `'lru-cache/browser'` |
138 | 142 | - Track size of compiled bundle in CI ([@SuperOleg39](https://github.com/SuperOleg39)) |
139 | 143 | - Add `noUpdateTTL` option for `set()` |
140 | 144 |
|
141 | | -## 7.3.0 |
| 145 | +## 7.3 |
142 | 146 |
|
143 | 147 | - Add `disposeAfter()` |
144 | 148 | - `set()` returns the cache object |
145 | 149 | - `delete()` returns boolean indicating whether anything was deleted |
146 | 150 |
|
147 | | -## 7.2.0 |
| 151 | +## 7.2 |
148 | 152 |
|
149 | 153 | - Add reason to dispose() calls. |
150 | 154 |
|
151 | | -## 7.1.0 |
| 155 | +## 7.1 |
152 | 156 |
|
153 | 157 | - Add `ttlResolution` option |
154 | 158 | - Add `ttlAutopurge` option |
155 | 159 |
|
156 | | -## v7 - 2022-02 |
| 160 | +## 7.0 - 2022-02 |
157 | 161 |
|
158 | 162 | This library changed to a different algorithm and internal data structure |
159 | 163 | in version 7, yielding significantly better performance, albeit with |
|
0 commit comments