Sample
Handle silent behavioral changes in lru-cache across version boundaries where set(key, undefined) deletes entries, legacy options are silently ignored, overwrites trigger dispose, and fetch rejection evicts stale data
sha256:475bdc86c8f2c5a89597c7f8f5237496f32825061c30dacc220acfeee9daef91
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Handle silent behavioral changes in lru-cache across version boundaries where set(key, undefined) deletes entries, legacy options are silently ignored, overwrites trigger dispose, and fetch rejection evicts stale data HOW
- Packages
- lru-cache 11.5.2
- Environment
- node
- Created
- 2026-08-16T07:28:46Z
Contract
- assert set(key, undefined) silently deletes entry rather than storing undefined value like Map.set
- assert legacy v6 options maxAge and length are silently ignored in constructor and set() without error or effect
- assert overwriting an existing key triggers dispose with reason set unless noDisposeOnSet is configured
- assert fetchMethod rejection deletes existing stale entry from cache unless allowStaleOnFetchRejection is enabled
- assert iteration orders keys from MRU to LRU and get() updates MRU position while peek() preserves ordering
Files
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9