Skip to content

v1.2.0

Latest

Choose a tag to compare

@Nebu1eto Nebu1eto released this 06 Dec 12:48
Immutable release. Only release title and notes can be modified.
v1.2.0
e976b3d

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/node API for browser pages and module Web Workers. Methods that return bytes return Uint8Array instead of Buffer. Install it with npm install @sheetkit/browser, which also installs @sheetkit/wasm. Cross-origin isolation is not required.
  • @sheetkit/wasm (new package): the SheetKit binding built for wasm32-wasip1, loaded through emnapi. Most applications should depend on @sheetkit/browser instead.
  • @sheetkit/node exports a new Bytes type, which public signatures now use. On Node.js it is Buffer, 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

  • RAND and RANDBETWEEN now 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, maxZipEntries and the stream batch size are validated before narrowing, so out-of-range values raise the same limit errors as on 64-bit targets. Rust adds validate_stream_batch_size_u64 so 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 ResourceLimitError instead of crashing. calculateAll and 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/web that 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