This release adds multiple new types bridged from JavaScript, namely JSError
, JSDate
, JSTimer
(which corresponds to setTimeout
/setInterval
calls and manages closure lifetime for you), JSString
and JSPromise
. We now also have documentation published automatically for the main branch.
Closed issues:
TypedArray
improvement? (#52)
Merged pull requests:
- Add a generic
JSPromise
implementation (#62) via @MaxDesiatov - Remove payload2 from value bridging interface (#64) via @kateinoigakukun
- Update Node.js dependencies (#65) via @MaxDesiatov
- Implement
JSString
to reduce bridging overhead (#63) via @kateinoigakukun - Add
JSBridgedType
andJSBridgedClass
(#26) via @j-f1 - Make
JSValue
conform toExpressibleByNilLiteral
(#59) via @j-f1 - Remove
JavaScriptTypedArrayKind
(#58) via @j-f1 - Add doc comments for public APIs (Part 2) (#57) via @kateinoigakukun
- Add doc comments for public APIs (Part 1) (#55) via @kateinoigakukun
- Cleanup invalid test target (#53) via @kateinoigakukun
- Remove deprecated Ref suffix (#51) via @j-f1
- Rename
ref
tojsObject
on JSDate for consistency with JSError (#50) via @MaxDesiatov - Generate and publish documentation with
swift-doc
(#49) via @MaxDesiatov - Add
JSTimer
implementation with tests (#46) via @MaxDesiatov - Add
JSError.stack
, addError
conformance (#48) via @MaxDesiatov - Add
JSDate
implementation with tests (#45) via @MaxDesiatov - Add
JSError
with tests, add JSObject.description (#47) via @MaxDesiatov
This release adds JSTypedArray
generic type, renames JSObjectRef
to JSObject
, and makes JSClosure
memory management more explicit.
Closed issues:
- Support for JS Arrays “holes”, including the test suite (#39)
- BigInt Support (#29)
- Separate namespaces for methods and properties? (#27)
Merged pull requests:
- Add a helper method to copy an array of numbers to a JS TypedArray (#31) via @j-f1
- Resolve small issues (#44) via @kateinoigakukun
- Bump bl from 3.0.0 to 3.0.1 in /IntegrationTests (#42) via @dependabot[bot]
- Bump bl from 3.0.0 to 3.0.1 in /Example (#43) via @dependabot[bot]
- Support Holes in Array (#41) via @kateinoigakukun
- Refine public API (#40) via @kateinoigakukun
- Fix invalid array termination for null and undefined (#38) via @kateinoigakukun
- Add a test helper function (#36) via @j-f1
- Enable Xcode 12 with fresh SwiftWasm 5.3 snapshot (#35) via @MaxDesiatov
- Add void-returning overload to
JSClosure.init
(#34) via @MaxDesiatov - Change
JSClosure.release
todeinit
(#33) via @MaxDesiatov - Clean up the
JSObjectRef
API (#28) via @j-f1 - Remove unused
Tests
directory (#32) via @MaxDesiatov