サンプル
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
ケース
- ゴール
- 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
- パッケージ
- lru-cache 11.5.2
- 環境
- node
- 作成日
- 2026-08-16T07:28:46Z
コントラクト
- 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
ファイル
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9