Skip to content

Tags: swiftwasm/JavaScriptKit

Tags

0.57.1

Toggle 0.57.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #798 from swiftwasm/yt/fix-struct-closure-param

BridgeJS: Unify @js struct parameter lowering onto the stack ABI

0.57.0

Toggle 0.57.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
BridgeJS: import from external ECMAScript modules, and split snippet …

…origins (#795)

* BridgeJS: support importing from external ECMAScript modules

Extend `from: .module(...)` to accept bare specifiers like `node:path` or an npm package,
add `jsName: .default` for default exports, and emit named imports so a wrong export name
now fails at module-link time instead of at call time.

* BridgeJS: fix named-import regressions found in review

Do not require a module export for a wrapper-only `@JSClass`, since a named import is a
link-time requirement and nothing looks that name up; accept `jsName: nil` and the explicit
`.name(...)` spelling; and validate the tagged `from` form like the plain-string form.

* BridgeJS: split snippet and external module import origins

Use `from: .snippet("/my-file.js")` for a JavaScript file shipped with the Swift target and
`from: .module("node:path")` for an external module, so each keeps its own validation and
each mistaken form points at the other. The skeleton encoding is unchanged.

* BridgeJS: tag both snippet and module origins in the skeleton

Encode `.snippet` as `{"kind":"snippet","path":...}` alongside the existing tagged module
form, so the JSON mirrors the Swift cases and a snippet path can no longer encode into a
shape that fails to decode.

0.56.1

Toggle 0.56.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix `JavaScriptEventLoop` for Embedded Swift in `main` toolchain snap…

…shots (#784)

0.56.0

Toggle 0.56.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #750 from wfltaylor/js-as

BridgeJS: Export types using a separate JS representation

0.55.0

Toggle 0.55.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #768 from PassiveLogic/fix/bridgejs-pointer-limita…

…tions

BridgeJS: Normalize wasm pointer offsets in JS

0.54.1

Toggle 0.54.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix error descriptions Embedded Swift compatibility (#759)

The BridgeJS generator emits `JSError(message: String(describing: error))` for throwing `@JS` exports, but `String.init(describing:)` is unavailable in Embedded Swift, so embedded Wasm builds of any package with a throwing export fail. The caught error is statically a `JSException` with a stored `description`, so the generated glue now uses `error.description` for identical output. Snapshots regenerated.

0.54.0

Toggle 0.54.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #754 from PassiveLogic/kr/fix-optional-jsclass-param

BridgeJS: Support optional @jsclass as exported function parameters

0.53.0

Toggle 0.53.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
BridgeJS: Optimize numeric array transfer with bulk TypedArray copy (#…

…745)

0.52.1

Toggle 0.52.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #739 from wfltaylor/fix-closure-struct-return

BridgeJS: Fix closures with struct return

0.52.0

Toggle 0.52.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #741 from swiftwasm/claude/fix-jsstring-threading-…

…XtWUJ