Skip to content

Update dependencies, Emscripten 7.0.0 and Lua 5.5.1 - #159

Merged
ceifa merged 3 commits into
new-apis-2from
chore/update-dependencies
Nov 20, 2026
Merged

ceifa merged 3 commits into
new-apis-2from
chore/update-dependencies

Conversation

@ceifa

@ceifa ceifa commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • npm: chai 6.3.0, mocha 12.0.3, oxfmt 0.79.0, oxlint 1.94.0, playwright 1.65.1, rolldown 1.3.3, tslib 2.9.1 and @types/node 26.6.6 (lockfile), plus npm audit fix.
  • Emscripten 6.0.4 → 7.0.0, in both workflows and in the docker fallback of build:wasm, which used to run the untagged emscripten/emsdk image.
  • Lua: the submodule moves from a commit between releases to the v5.5.1 tag. CI now fails if it is not on a release tag of lua/lua.

Emscripten 7 adaptations

  • FS.filesystems is gone, so mounts would throw. The build exports NODEFS, and mount/mounts use Module.NODEFS.
  • FS.analyzePath is gone under -sSTRICT=1. LuaRuntime.exists() now does the same lookup with FS.lookupPath.
  • The glue no longer declares class EmscriptenEH, which the emscripten-unwind-brand plugin patched. In 6.0.4 that class was declared but never thrown: with SUPPORT_LONGJMP=wasm, every unwind is a WebAssembly.Exception. So the plugin and UNWIND_BRAND are removed, and isEmscriptenUnwind only checks instanceof WebAssembly.Exception.

User-facing: the exported EmscriptenFS type loses filesystems, and anyone calling lua.filesystem.analyzePath() directly will break. Worth a line in the release notes.

Gains

  • The glue drops from 86.8 to 79 KB (gzip 23.7 to 21.6 KB). The wasm is about the same size.
  • Emscripten 7: Node no longer copies the wasm binary on load, NODEFS works under node --permission, and several NODEFS/NODERAWFS fixes land (rename onto an existing file, fstat on stdio).
  • rolldown now keeps /*#__PURE__*/ annotations in minified output, which helps consumers tree-shake.

Test plan

  • npm run lint:nofix
  • npm run build:wasm (docker, emsdk 7.0.0) and npm run build
  • npm test: 429 passing, including the Playwright browser tests
  • npm run luatests: final OK
  • src/bindings.gen.ts unchanged after build:wasm
  • The new CI check passes on v5.5.1 and fails on a non-tag commit

npm run build:wasm:dev produces a wasm that fails most tests (WebAssembly.promising(): Argument 0 must be a WebAssembly exported function, from ASSERTIONS=1 wrapping the exports). This already happened on 6.0.4 and is left for a separate change.

@ceifa
ceifa changed the base branch from main to new-apis-2 November 20, 2026 01:25
chai 6.3.0, mocha 12.0.3, oxfmt 0.79.0, oxlint 1.94.0, playwright 1.65.1, rolldown 1.3.3, tslib 2.9.1 and @types/node 26.6.6 in the lockfile, plus npm audit fix for the transitive brace-expansion and serialize-javascript.
FS.filesystems is gone, so mounts reach NODEFS through the module instead, which the build now
exports. FS.analyzePath is gone under STRICT, so exists() does the same lookup itself.

The glue no longer declares EmscriptenEH, which the unwind brand plugin patched. It was never
thrown in 6.0.4 either, only declared: with SUPPORT_LONGJMP=wasm every unwind is a
WebAssembly.Exception, so the brand never did anything and goes with the plugin.

The docker fallback of build:wasm ran the untagged emsdk image and is pinned to the version CI
installs, so a local build makes the glue CI tests.

The glue drops from 86.8 to 79 KB.
It was on a commit between releases. CI now checks the submodule sits on a release tag of
lua/lua, so it cannot drift back to one.
@ceifa
ceifa force-pushed the chore/update-dependencies branch from 0cb4359 to 96f9d74 Compare November 20, 2026 01:26
@ceifa
ceifa merged commit b1992a9 into new-apis-2 Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant