Skip to content

[pull] main from swiftwasm:main#7

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

[pull] main from swiftwasm:main#7
pull[bot] wants to merge 1109 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
kateinoigakukun and others added 22 commits January 17, 2026 19:32
-Xlinker options are passed to host linker as well (for linking macro
plugins), which causes issues. Use a toolset file to set the options
only for the target being built.
BridgeJS: Macro-annotated import notations
chore: Update main README.md to mention BridgeJS and link more articles
…an attached extension (`Sources/JavaScriptKit/Macros.swift:176`, `Plugins/BridgeJS/Sources/BridgeJSMacros/JSClassMacro.swift:56`).

- Removed `: _JSBridgedClass` from TS2Swift output so generated wrappers are just `@JSClass struct Name { ... }` (`Plugins/BridgeJS/Sources/TS2Swift/JavaScript/src/processor.js:216`).
- Updated BridgeJS snapshots + generated fixtures to match (`Plugins/BridgeJS/Tests/BridgeJSToolTests/__Snapshots__/ImportTSTests/*.Macros.swift`, `Tests/BridgeJSRuntimeTests/Generated/BridgeJS.Macros.swift:25`, `Examples/PlayBridgeJS/Sources/PlayBridgeJS/Generated/BridgeJS.Macros.swift:11`).
- `swift test --package-path ./Plugins/BridgeJS` now passes (after installing JS deps with `npm ci`).
BridgeJS: Generate `_JSBridgedClass` conformance via macro
TS2Swift: Remove unused type definitions
The default value for SWIFT_SDK_ID in the Makefile was causing confusion
when developers ran `make unittest` without the env var set, leading to
unexpected SDK usage.
TypeDeclResolver should be responsible for handling this
Ugry hack to allow me to add new files later without paying build
time penalty...
…ByKey

BridgeJS: Remove adhoc `exportedProtocolNameByKey` recording
…2ac569dce3906

BridgeJS: Merge small core files into single Misc.swift
* Add SwiftToSkeleton unified Swift-to-skeleton API

Now ExportSwift/ImportTS are not responsible for collecting
macro-annotated decls and produce skeletons.

* PlayBridgeJS: Update to use SwiftToSkeleton
Utilities/format.swift now looks up `SWIFT_PATH` for the "swift"
command location, but PackageToJS's test suites also use this env var
to locate the Swift toolchain bin path. To avoid confusion, rename
the env var in PackageToJS from `SWIFT_PATH` to `SWIFT_BIN_PATH`.
kateinoigakukun and others added 30 commits February 18, 2026 10:12
…bal-cleanup

Runtime: Enforce prettier formatting, simplify find-global.ts
BridgeJS: Add runtime tests for `@JS class` to JSObject conversion
Also use `ProcessInfo.processInfo.arguments[0]` instead of `#filePath`
to detect changes to the plugin executable, which is more robust to
changes in the source file location.
PackageToJS: Rebuild bridge-js.js when BridgeJSLink is changed
BridgeJS: Fix SwiftHeapObject finalization registry leaks and double release
Add AI coding agent config files to gitignore
Runtime: Fix lint issues in compiled output
```
$ cat /tmp/tmp.UUlUCtSa64/foo.d.ts
export function x(): ;

$ node Plugins/BridgeJS/Sources/TS2Swift/JavaScript/bin/ts2swift.js /tmp/tmp.UUlUCtSa64/foo.d.ts
error: TypeScript syntax errors:
/tmp/tmp.UUlUCtSa64/foo.d.ts:1:22 - error TS1110: Type expected.

1 export function x(): ;
```
BridgeJS: Improve ts2swift diagnostics on invalid definitions
TS2Swift: treat callable exported consts as functions
TS2Swift: emit enums for string literal unions
NFC: BridgeJS: Remove dead cleanup infrastructure
[NFC] BridgeJS: Work around extern inlining by adding an extra non-inlined layer of indirection
NFC: BridgeJS: Refactor JSGlueGen with compositional optional handling and helper consolidation
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.

5 participants

Comments