|
| 1 | +# 0.15.0 (17 May 2022) |
| 2 | + |
| 3 | +This is a major release that adds new features and fixes issues. Specifically: |
| 4 | +* `BigInt` and `BigInt`-based `JSTypedArray` types are now supported. Now, when passing `Int64` values from Swift, |
| 5 | +they will be mapped to `BigInt` values on the JavaScript side. |
| 6 | +* The `constructor` property on `JSBridgedClass` is now an Optional, which allows bridging JavaScript classes that aren't |
| 7 | +available in every browser or environment. |
| 8 | +* JavaScriptKit runtime files are now supplied as SwiftPM resources. This allows us to resolve a long-standing issue |
| 9 | +in `carton` that could lead to a version mismatch between JavaScriptKit dependency in `Package.swift` or |
| 10 | +`Package.resolved` and carton’s bundled JavaScriptKit runtime version. |
| 11 | +* The `JSSymbol` type has been added, enabling support for [JavaScript `Symbol` values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol), including accessing `Symbol`-keyed properties on objects. |
| 12 | + |
| 13 | +**Source breaking changes** |
| 14 | + |
| 15 | +`UInt64.jsValue` and `Int64.jsValue`, which are a part of `JavaScriptKit` module, have been moved into `JavaScriptBigIntSupport` module since their implementation changed to require [JS-BigInt-integration](https://github.com/WebAssembly/JS-BigInt-integration) to avoid implicit casts from 64-bit integer to JS number type. |
| 16 | + |
| 17 | +If you want to keep the behavior so far, please cast the 64-bit integer values to `Double`. |
| 18 | + |
| 19 | +**Merged pull requests:** |
| 20 | + |
| 21 | +- Improve JSKit diagnostics for use-after-free of JSClosure ([#195](https://github.com/swiftwasm/JavaScriptKit/pull/195)) via [@kateinoigakukun](https://github.com/kateinoigakukun) |
| 22 | +- Gracefully handle unavailable `JSBridgedClass` ([#190](https://github.com/swiftwasm/JavaScriptKit/pull/190)) via [@MaxDesiatov](https://github.com/MaxDesiatov) |
| 23 | +- Supply JSKit runtime in SwiftPM resources ([#193](https://github.com/swiftwasm/JavaScriptKit/pull/193)) via [@MaxDesiatov](https://github.com/MaxDesiatov) |
| 24 | +- Test with Node.js's WASI implementation ([#192](https://github.com/swiftwasm/JavaScriptKit/pull/192)) via [@kateinoigakukun](https://github.com/kateinoigakukun) |
| 25 | +- Add support for BigInts and BigInt-based TypedArrays ([#184](https://github.com/swiftwasm/JavaScriptKit/pull/184)) via [@j-f1](https://github.com/j-f1) |
| 26 | +- Update toolchain references to 5.6.0 in `README.md` ([#189](https://github.com/swiftwasm/JavaScriptKit/pull/189)) via [@MaxDesiatov](https://github.com/MaxDesiatov) |
| 27 | +- Bump async from 2.6.3 to 2.6.4 in /Example ([#188](https://github.com/swiftwasm/JavaScriptKit/pull/188)) via [@dependabot[bot]](https://github.com/dependabot[bot]) |
| 28 | +- Remove outdated `BigInt` support `FIXME` from `JSTypedArray` ([#187](https://github.com/swiftwasm/JavaScriptKit/pull/187)) via [@MaxDesiatov](https://github.com/MaxDesiatov) |
| 29 | +- Cleanup & improvements to perf-tester ([#186](https://github.com/swiftwasm/JavaScriptKit/pull/186)) via [@j-f1](https://github.com/j-f1) |
| 30 | +- Re-add support for Symbol objects via JSSymbol ([#183](https://github.com/swiftwasm/JavaScriptKit/pull/183)) via [@j-f1](https://github.com/j-f1) |
| 31 | +- Fix JSValueDecoder ([#185](https://github.com/swiftwasm/JavaScriptKit/pull/185)) via [@j-f1](https://github.com/j-f1) |
| 32 | +- Fix deprecation warning in `JSFunction.swift` ([#182](https://github.com/swiftwasm/JavaScriptKit/pull/182)) via [@MaxDesiatov](https://github.com/MaxDesiatov) |
| 33 | + |
1 | 34 | # 0.14.0 (8 April 2022)
|
2 | 35 |
|
3 | 36 | This is a breaking release that enables full support for SwiftWasm 5.6 and lays groundwork for future updates to [DOMKit](https://github.com/swiftwasm/DOMKit/).
|
|
0 commit comments