@blaze-cache/core 0.3.0-beta.0 → 0.3.0-beta.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaze-cache/core",
3
- "version": "0.3.0-beta.0",
3
+ "version": "0.3.0-beta.1",
4
4
  "description": "WebAssembly client-side cache for the browser: SIEVE eviction, per-entry TTLs, tag invalidation and optional IndexedDB persistence",
5
5
  "keywords": [
6
6
  "cache",
@@ -52,6 +52,7 @@
52
52
  "scripts": {
53
53
  "build": "tsc -p tsconfig.json",
54
54
  "test": "pnpm run build && node --test",
55
+ "test:live": "pnpm run build && node --test",
55
56
  "typecheck": "tsc -p tsconfig.json --noEmit"
56
57
  }
57
58
  }
@@ -130,7 +130,9 @@ export class BlazeCache {
130
130
  * Batch set: stores every key/value pair in one boundary crossing.
131
131
  *
132
132
  * `ttl_ms[i] < 0` means no expiry. `tag_offsets[i]`..`tag_offsets[i+1]` index into
133
- * `tags_flat` for the tags of entry `i`.
133
+ * `tags_flat` for the tags of entry `i`. Those offsets come from JS, so they are
134
+ * clamped rather than trusted: a non-monotonic or out-of-range pair yields no tags
135
+ * for that entry instead of panicking and trapping the wasm instance.
134
136
  */
135
137
  setMany(keys: string[], values: any, ttl_ms: Float64Array, tags_flat: string[], tag_offsets: Uint32Array): void;
136
138
  /**
@@ -317,7 +317,9 @@ export class BlazeCache {
317
317
  * Batch set: stores every key/value pair in one boundary crossing.
318
318
  *
319
319
  * `ttl_ms[i] < 0` means no expiry. `tag_offsets[i]`..`tag_offsets[i+1]` index into
320
- * `tags_flat` for the tags of entry `i`.
320
+ * `tags_flat` for the tags of entry `i`. Those offsets come from JS, so they are
321
+ * clamped rather than trusted: a non-monotonic or out-of-range pair yields no tags
322
+ * for that entry instead of panicking and trapping the wasm instance.
321
323
  * @param {string[]} keys
322
324
  * @param {any} values
323
325
  * @param {Float64Array} ttl_ms
Binary file
package/pkg/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "blaze-cache-wasm",
3
3
  "type": "module",
4
4
  "description": "WebAssembly bindings for the Blaze Cache engine",
5
- "version": "0.3.0-beta.0",
5
+ "version": "0.3.0-beta.1",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",