@0xdoublesharp/lru-cache-clustered 2.1.0 → 2.1.2
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 +27 -0
- package/README.md +214 -113
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/invalidation.d.ts +6 -0
- package/dist/invalidation.d.ts.map +1 -0
- package/dist/l1.d.ts +10 -4
- package/dist/l1.d.ts.map +1 -1
- package/dist/messages.d.ts +17 -0
- package/dist/messages.d.ts.map +1 -1
- package/dist/primary.d.ts +3 -5
- package/dist/primary.d.ts.map +1 -1
- package/dist/worker.d.ts +3 -6
- package/dist/worker.d.ts.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
# 2.1.2 / 2026-10-15
|
|
2
|
+
|
|
3
|
+
- Handle asynchronous primary response and invalidation send failures when workers disconnect, without retrying mutations.
|
|
4
|
+
- Keep request IDs unique across ESM, CommonJS, and duplicate package copies in the same worker.
|
|
5
|
+
- Deliver worker-originated invalidations to primary-process L1 caches and invalidate applied batch changes even when a later entry fails.
|
|
6
|
+
- Preserve unrelated warm L1 entries during single-key writes and protect outstanding cache fills with temporary per-key fences.
|
|
7
|
+
- Release destroyed namespace version records while retaining monotonic mutation versions.
|
|
8
|
+
- Prevent older fetch claims from overwriting newer explicit mutations. A superseded fetch returns a newer cached value, or rejects if none remains.
|
|
9
|
+
- Benchmark real workers with configurable counts, payload sizes, mixed writes, batches, and coordinated fetches, including exact result checks and IPC counts.
|
|
10
|
+
- Increase the compressed bundle budget from 7 kB to 8 kB to accommodate the correctness fixes and bounded invalidation tracking.
|
|
11
|
+
- Cover all source statements, branches, functions, and lines, and require 100% coverage in the coverage command.
|
|
12
|
+
|
|
13
|
+
# 2.1.1 / 2026-09-11
|
|
14
|
+
|
|
15
|
+
- Override tsup's esbuild dependency to the patched 0.28.2 release, removing the older Windows development-server vulnerability.
|
|
16
|
+
|
|
17
|
+
- Update eleven direct dependencies within their existing major versions. Enforce a seven-day minimum release age for future pnpm resolution; verify all resolved versions against npm publication timestamps.
|
|
18
|
+
- Treat expired keys as absent in `setIfAbsent()`, `incr()`, and `decr()` even with `allowStale` enabled, so counters start a new TTL window.
|
|
19
|
+
- Preserve local LRU order and TTL on `peek()` and `has()`; `has()` no longer reports a stale local entry as present.
|
|
20
|
+
- Reduce cold `fetch()` from three IPC requests to two, and follower polling from two requests per cycle to one. Followers now populate L1 from the claim response.
|
|
21
|
+
- Fix false IPC failures under backpressure and handle asynchronous send errors. Queued mutations are sent once and wait for their response.
|
|
22
|
+
- Validate nested IPC error causes so malformed or cyclic payloads cannot crash a worker.
|
|
23
|
+
- Keep hot L1 entries within the primary expiration deadline, including when local sliding TTL or stale reads are enabled.
|
|
24
|
+
- Return remaining TTLs with cache values, reducing a cold L1 batch read from one request plus a TTL request per value to one request total.
|
|
25
|
+
- Support `mGet()` batches larger than JavaScript's argument limit and avoid copying fully warm batch results.
|
|
26
|
+
- Strengthen L1 race and cross-worker invalidation tests to exercise retained, warm instances. Replace timeout-based fuzz checks with valid-response checks and verify exact errors.
|
|
27
|
+
|
|
1
28
|
# 2.1.0 / 2026-05-03
|
|
2
29
|
|
|
3
30
|
## Features
|