Open
Conversation
-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
…cles from Documentation
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
…ridge-js.d.ts` (#506)
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
…cope-fix BridgeJS: Use indirect _exports lookup in wrap functions
PackageToJS: Replace @ts-ignore with @ts-expect-error in templates
…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
…lined layer of indirection
[NFC] BridgeJS: Work around extern inlining by adding an extra non-inlined layer of indirection
TS2Swift: warn on skipped exports
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 : )