Repository navigation
What's Changed
SheetKit now runs in browsers and Web Workers. Two new npm packages provide the @sheetkit/node API on a WebAssembly build of the binding (PR #70).
New Features
@sheetkit/browser(new package): the@sheetkit/nodeAPI for browser pages and module Web Workers. Methods that return bytes returnUint8Arrayinstead ofBuffer. Install it withnpm install @sheetkit/browser, which also installs@sheetkit/wasm. Cross-origin isolation is not required.@sheetkit/wasm(new package): the SheetKit binding built forwasm32-wasip1, loaded through emnapi. Most applications should depend on@sheetkit/browserinstead.@sheetkit/nodeexports a newBytestype, which public signatures now use. On Node.js it isBuffer, so existing code needs no changes.
Performance
- Formula parsing and flat operator chains such as
1+1+...no longer recurse, so deeply nested formulas use much less native stack on every target.
Bug Fixes
RANDandRANDBETWEENnow return different values for calls within the same clock tick. They previously derived values from sub-millisecond clock digits, which repeat on coarse clocks such as those in browsers. The sequence of values differs from 1.1.x; it was never reproducible.- On 32-bit targets,
maxZipEntriesand the stream batch size are validated before narrowing, so out-of-range values raise the same limit errors as on 64-bit targets. Rust addsvalidate_stream_batch_size_u64so bindings share this check.
Known limitations of the WebAssembly packages
- The module has one thread, so
Promise-returning methods do their work synchronously before resolving. - On-demand formula evaluation has a stack budget on WebAssembly. Long chains of cells that reference one another (roughly 65 to 150 links, depending on the formula) stop with a
ResourceLimitErrorinstead of crashing.calculateAlland Node.js are not affected. - WebAssembly cannot catch Rust panics. A panic disables the module instance and every workbook it holds; reload the page or worker to recover.
The browser guide and the known-limitations page in the documentation cover these in detail.
Documentation
- New browser guide in English and Korean, and a Vite example in
examples/webthat opens and builds workbooks in a module worker. - Rewrote the README, user guides, and API reference in English and Korean, and split long pages into separate formula, streaming, security, and layout topics.
- Refreshed the benchmark comparison with the October 2026 results.
Other
- CI builds and tests the WebAssembly and browser packages, including runs in Chromium, Firefox, and WebKit. The release workflow builds and checks both packages before publishing.
- CI lints Markdown with hongdown.
Full Changelog: v1.1.1...v1.2.0