@rowsncolumns/rnc-engine 1.2.0 → 1.2.2
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.
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rowsncolumns/rnc-engine",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"author": "Vinay M",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"description": "Typed JS/TS interop for the Rust→WASM spreadsheet calc engine (rnc-wasm). Ergonomic JSON-in/out wrapper over the wasm-bindgen surface: applyCommand(Command)→CommitResult, readWindow→WindowSnapshot, and Map<\"sheet!A1\",CellFormat> style folding. Pluggable backend — single-user `SpreadsheetEngine` (default) or collaborative `CollabSpreadsheetEngine` (Yjs sync) — plus the Option-B `useSpreadsheetEngine` React hook.",
|
|
7
|
-
"comment": "ESM-only: the wasm is built `--target web` (ESM; loads its sibling `rnc_wasm_bg.wasm` via `new URL(import.meta.url)`). The PREBUILT wasm is vendored in `src/wasm` and shipped in `dist/esm/wasm`, so consumers need NO Rust/wasm toolchain.
|
|
7
|
+
"comment": "ESM-only: the wasm is built `--target web` (ESM; loads its sibling `rnc_wasm_bg.wasm` via `new URL(import.meta.url)`). The PREBUILT wasm is vendored in `src/wasm` (with its BUILD_INFO.json stamp) and shipped in `dist/esm/wasm`, so consumers need NO Rust/wasm toolchain. A release never compiles Rust: after any change under rust/ run `yarn build:wasm` (pinned toolchain from rust/rust-toolchain.toml, collab feature) and commit src/wasm — CI's `wasm` job fails otherwise (scripts/check-wasm-fresh.mjs).",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "./dist/esm/index.js",
|
|
10
10
|
"module": "./dist/esm/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "tsc -p ./tsconfig.esm.json && mkdir -p ./dist/esm/wasm && cp -f ./src/wasm/rnc_wasm.js ./src/wasm/rnc_wasm_bg.wasm ./src/wasm/rnc_wasm.d.ts ./src/wasm/rnc_wasm_bg.wasm.d.ts ./dist/esm/wasm/",
|
|
20
|
-
"build:wasm": "
|
|
20
|
+
"build:wasm": "node ../../scripts/build-wasm.mjs --package rnc-engine",
|
|
21
21
|
"clean": "rimraf dist",
|
|
22
22
|
"build:watch": "tsc -p ./tsconfig.esm.json --watch",
|
|
23
23
|
"test": "vitest --run",
|