Skip to content

[pull] main from swiftwasm:main#7

Open
pull[bot] wants to merge 1067 commits intomajacQ:mainfrom
swiftwasm:main
Open

[pull] main from swiftwasm:main#7
pull[bot] wants to merge 1067 commits intomajacQ:mainfrom
swiftwasm:main

Conversation

@pull
Copy link

@pull pull bot commented Jul 19, 2021

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull bot added ⤵️ pull merge-conflict Resolve conflicts manually labels Jul 19, 2021
@atomist atomist bot added auto-branch-delete:on-close Delete branch when pull request gets closed auto-merge-method:merge Auto-merge with merge commit auto-merge:on-bpr-success Auto-merge on passed branch protection rule labels Jul 19, 2021
@pull pull bot removed auto-branch-delete:on-close Delete branch when pull request gets closed auto-merge-method:merge Auto-merge with merge commit auto-merge:on-bpr-success Auto-merge on passed branch protection rule labels Jul 19, 2021
krodak and others added 22 commits November 27, 2025 11:25
BridgeJS: Adjust for the latest top-level requirement for `@_extern(wasm)`
BridgeJS: Extend snapshot test setup for exports <-> global this by including mixed module test case
…mespace

BridgeJS: exposeToGlobal configuration option to control declare global declaration
…rameters

BridgeJS: Fix ordering issue with multiple stack based parameters
* PackageToJS: Make some options optional in option setup functions

* Examples: Add NodeJS example

* Documentation: Add Package output structure article

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Revert browser.d.ts API change

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
BridgeJS: Enable struct as default parameter and enable default parameters in struct init / methods
BridgeJS: Struct and struct vs classes benchmarks
krodak and others added 30 commits February 12, 2026 11:43
NFC: BridgeJS: Simplify ExportSwift codegen by removing redundant branches and extracting helpers
NFC: BridgeJS: Further simplify codegen and JSValue intrinsics
Fix ts2swift alias struct naming and docs
BridgeJS: Consolidate optional and pointer runtime intrinsics
Benchmarks: Prevent cross-module inlining of f32/f64 @_extern(wasm) functions
BridgeJS: add runtime coverage for public JS structs
…ure gates (#630)

* BridgeJS: Make `@JSClass`, `@JSFunction`, etc generally available without @_spi(Experimental)

* BridgeJS: Remove JAVASCRIPTKIT_EXPERIMENTAL_BRIDGEJS feature gate

* BridgeJS: Update documentation for MVP release

* [skip ci] Update READMEs
…631)

Extends the fix from b3ddd88 (which addressed f32/f64) to all remaining
public @_extern(wasm) BridgeJS intrinsics: i32, string, pointer, throw,
init_memory, and struct_cleanup.

Without @inline(never) wrappers, the Swift compiler can inline these
functions across module boundaries, causing the wasm import module
attribute to change from "bjs" to "env". This results in a wasm-ld
linker error when a downstream module (e.g. via BridgeJS codegen)
references the same symbol with a different import module.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
To make push/pop operations agnostic to import/export contexts, rename
the following methods:
- `bridgeJSLiftParameter()` -> `bridgeJSStackPop()`
- `bridgeJSLowerStackReturn()` -> `bridgeJSStackPush()`
…mory` (#635)

This allows us to insert cleanup code for String parameter passing for JS -> Swift.
TS2Swift: Make it easier to use ts2swift directly
…ease

BridgeJS: Fix double-release of JSObject when passing a `JSObject?` JS->Swift
…ce-dirs

 BridgeJS: Include pluginGeneratedSources in build plugin input files
…writes

BridgeJS: Skip writing output files when content is unchanged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⤵️ pull merge-conflict Resolve conflicts manually

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants