Releases: swiftwasm/JavaScriptKit
Releases · swiftwasm/JavaScriptKit
0.33.1
What's Changed
- Embedded: Swift SDK now passes the
-Xcc -D__EMBEDDED_SWIFT__
by @kateinoigakukun in #369
Full Changelog: 0.33.0...0.33.1
0.33.0
What's Changed
- Add public
init(message:)
toJSException
by @kateinoigakukun in #385 - BridgeJS: Prefix generated files with "BridgeJS." by @kateinoigakukun in #386
- PackageToJS: Fix missing Extern detection for Swift 6.2+ by @kateinoigakukun in #387
- Add BridgeJS playground by @kateinoigakukun in #388
- BridgeJS: Move intrinsic declarations to JavaScriptKit under SPI by @kateinoigakukun in #389
- BridgeJS: Add
throws(JSException)
to imported methods by @kateinoigakukun in #390 - PackageToJS: Use non-class type for SwiftRuntime in instantiate.d.ts by @kateinoigakukun in #391
- Fix
which
not to return directories by @kateinoigakukun in #392 - Fix wrong deallocation management for JSClosure with FinalizationRegistry by @kateinoigakukun in #393
- Update macOS CI to use Xcode 16.4 by @kateinoigakukun in #400
- Fix PackageToJS plugin wasm-opt fallback when output file exists by @kateinoigakukun in #401
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in #403
- BridgeJS: Macro extension to define namespace by @krodak in #405
New Contributors
Full Changelog: 0.32.1...0.33.0
0.32.1
What's Changed
- Inherit isolation from the closure definition context by @kateinoigakukun in #384
Full Changelog: 0.32.0...0.32.1
0.32.0
What's Changed
- [WebWorkerTaskExecutor] Eliminate trace message string allocations by @kateinoigakukun in #382
- Add JSClosure APIs to support specifying TaskExecutor and TaskPriority by @kateinoigakukun in #383
Full Changelog: 0.31.2...0.32.0
0.31.2
What's Changed
- Check if the memory is backed by a SAB by checking the constructor name by @kateinoigakukun in #381
Full Changelog: 0.31.1...0.31.2
0.31.1
What's Changed
- Slice a bytes array when the underlying memory is shared by @kateinoigakukun in #379
Full Changelog: 0.31.0...0.31.1
0.31.0
What's Changed
- BridgeJS: Gate @_extern/@expose usage behind
arch(wasm32)
by @kateinoigakukun in #377 - Add
JavaScriptFoundationCompat
module to provide utilities to interact Foundation types by @kateinoigakukun in #378
Full Changelog: 0.30.0...0.31.0
0.30.0
What's Changed
- PackageToJS: Add hint for missing
.enableExperimentalFeature("Extern")
setting by @kateinoigakukun in #364 - PackageToJS: Fail tests when continuation leaks are detected by @kateinoigakukun in #365
- BridgeJS: Add runtime tests for importing TypeScript functions by @kateinoigakukun in #368
- BridgeJS: Require placing
bridge-js.config.json
in target directory by @kateinoigakukun in #370 - BridgeJS: Enhance importing TS classes by @kateinoigakukun in #371
- BridgeJS: Add support for JSObject in exported Swift interface by @kateinoigakukun in #372
- BridgeJS: Add support for throwing JSException from Swift by @kateinoigakukun in #373
- Fix Benchmarks build by regen bridge-js files by @kateinoigakukun in #374
- Make
SwiftRuntime.memory
constant property by @kateinoigakukun in #375 - CI: Update toolchain snapshot to 2025-06-12 by @kateinoigakukun in #366
- BridgeJS: Add more smoke tests for throwing functions by @kateinoigakukun in #376
Full Changelog: 0.29.1...0.30.0
0.29.1
What's Changed
- Restricting throwable exception type to JSException for closures by @kateinoigakukun in #359
- Remove redundant catch block for
any Error
by @kateinoigakukun in #360 - BridgeJS: Add support for Void return type in exported functions by @kateinoigakukun in #361
- PackageToJS: Extend instantiation hooks to allow instance instrumentation by @kateinoigakukun in #362
Full Changelog: 0.29.0...0.29.1
0.29.0
What's Changed
JavaScriptEventLoop
now conforms to the newExecutorFactory
-family APIs (only for Swift 6.2 and later)WebWorkerDedicatedExecutor
now conforms toTaskExecutor
Pull Requests
- Unify the installGlobalExecutor process for JavaScriptEventLoop and WebWorkerTaskExecutor by @kateinoigakukun in #351
- Remove use of deprecated API
WebWorkerTaskExecutor.installGlobalExecutor()
by @kateinoigakukun in #352 - Fix
JavaScriptEventLoop
not building with Embedded Swift by @MaxDesiatov in #354 - Use the new
ExecutorFactory
protocol to provide a default executor by @kateinoigakukun in #353 - PackageToJS: Report stack trace on proc_exit by @kateinoigakukun in #355
- Fix null-ptr write with
pthread_create
by @kateinoigakukun in #356 - Add
TaskExecutor
conformance toWebWorkerDedicatedExecutor
by @kateinoigakukun in #357
Full Changelog: 0.28.0...0.29.0