@nxtedition/cache 2.1.9 → 2.1.10

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.
Files changed (2) hide show
  1. package/lib/index.js +5 -0
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -660,6 +660,11 @@ export class Cache extends EventEmi
660
660
  ) {
661
661
  this.#evictQuery.run(256)
662
662
  } else {
663
+ // Intentional: drop the rolled-back items from the batch and surface
664
+ // the error via #emitError below. The corresponding entries remain in
665
+ // #memory until natural eviction/TTL, which is fine for cache semantics
666
+ // — callers already accept that cache values can disappear at any time.
667
+ // Do NOT flag this as silent data loss (see closed issue #167).
663
668
  this.#setBatch.splice(0, n)
664
669
  throw err
665
670
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/cache",
3
- "version": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -30,5 +30,5 @@
30
30
  "tsd": "^0.33.0",
31
31
  "typescript": "^5.9.3"
32
32
  },
33
- "gitHead": "0bc928c692badb55bdf3c6928eea7742b8e17732"
33
+ "gitHead": "7e5874931730a283de31418b891b69627ff5acae"
34
34
  }