@rindle/wasm 0.7.2 → 0.7.3-rc.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": "@rindle/wasm",
3
- "version": "0.7.2",
3
+ "version": "0.7.3-rc.1",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,7 +29,7 @@
29
29
  "README.md"
30
30
  ],
31
31
  "dependencies": {
32
- "@rindle/client": "0.7.2"
32
+ "@rindle/client": "0.7.3-rc.1"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/node": "^22.10.0",
@@ -39,7 +39,7 @@
39
39
  "build": "tsc -p tsconfig.build.json",
40
40
  "build:wasm": "./build.sh",
41
41
  "typecheck": "tsc --noEmit",
42
- "test": "node test/bundle-size.mjs && node --conditions=@rindle/source test/e2e.mjs && node --conditions=@rindle/source test/one-start.e2e.mjs && node --conditions=@rindle/source test/repro-high.e2e.mjs && node --conditions=@rindle/source test/partial-write.e2e.mjs",
42
+ "test": "node test/bundle-size.mjs && node --conditions=@rindle/source test/e2e.mjs && node --conditions=@rindle/source test/one-start.e2e.mjs && node --conditions=@rindle/source test/repro-high.e2e.mjs && node --conditions=@rindle/source test/partial-write.e2e.mjs && node --conditions=@rindle/source test/bigint-boundary.e2e.mjs",
43
43
  "test:browser": "node test/browser-smoke.mjs"
44
44
  }
45
45
  }
package/pkg/rindle.d.ts CHANGED
@@ -110,6 +110,13 @@ export class RindleView {
110
110
  static build(ast_json: any, schemas: any, data: any): RindleView;
111
111
  /**
112
112
  * The current materialized view tree as a JS value (array / object / `null`).
113
+ * Throws a typed `unsupported_value` error when the tree holds an `Int` outside
114
+ * `Number.MAX_SAFE_INTEGER` instead of rounding it — the 09.8 `strict_i64`
115
+ * check, **mandatory** since design 226 Stage C (§8; Stage E adds the bigint
116
+ * lane and makes it column-aware). The `subscribe` listener path cannot throw —
117
+ * a violating tree is WITHHELD there (the subscriber keeps its last delivered
118
+ * snapshot; rounded cells never reach JS) and surfaces typed on the next
119
+ * `data()` read.
113
120
  */
114
121
  data(): any;
115
122
  /**
@@ -245,7 +252,7 @@ export interface InitOutput {
245
252
  readonly db_unregisterTable: (a: number, b: number, c: number) => [number, number];
246
253
  readonly db_write: (a: number) => number;
247
254
  readonly rindleview_build: (a: any, b: any, c: any) => [number, number, number];
248
- readonly rindleview_data: (a: number) => any;
255
+ readonly rindleview_data: (a: number) => [number, number, number];
249
256
  readonly rindleview_flush: (a: number) => void;
250
257
  readonly rindleview_push: (a: number, b: number, c: number, d: any) => [number, number];
251
258
  readonly rindleview_resultType: (a: number) => any;
package/pkg/rindle.js CHANGED
@@ -193,11 +193,21 @@ export class RindleView {
193
193
  }
194
194
  /**
195
195
  * The current materialized view tree as a JS value (array / object / `null`).
196
+ * Throws a typed `unsupported_value` error when the tree holds an `Int` outside
197
+ * `Number.MAX_SAFE_INTEGER` instead of rounding it — the 09.8 `strict_i64`
198
+ * check, **mandatory** since design 226 Stage C (§8; Stage E adds the bigint
199
+ * lane and makes it column-aware). The `subscribe` listener path cannot throw —
200
+ * a violating tree is WITHHELD there (the subscriber keeps its last delivered
201
+ * snapshot; rounded cells never reach JS) and surfaces typed on the next
202
+ * `data()` read.
196
203
  * @returns {any}
197
204
  */
198
205
  data() {
199
206
  const ret = wasm.rindleview_data(this.__wbg_ptr);
200
- return ret;
207
+ if (ret[2]) {
208
+ throw takeFromExternrefTable0(ret[1]);
209
+ }
210
+ return takeFromExternrefTable0(ret[0]);
201
211
  }
202
212
  /**
203
213
  * Close the current transaction: fire listeners with the new snapshot.
Binary file
@@ -14,7 +14,7 @@ export const db_serverBatchEnd: (a: number) => [number, number, number];
14
14
  export const db_unregisterTable: (a: number, b: number, c: number) => [number, number];
15
15
  export const db_write: (a: number) => number;
16
16
  export const rindleview_build: (a: any, b: any, c: any) => [number, number, number];
17
- export const rindleview_data: (a: number) => any;
17
+ export const rindleview_data: (a: number) => [number, number, number];
18
18
  export const rindleview_flush: (a: number) => void;
19
19
  export const rindleview_push: (a: number, b: number, c: number, d: any) => [number, number];
20
20
  export const rindleview_resultType: (a: number) => any;