|
| 1 | +# 0.10.1 (29 April 2021) |
| 2 | + |
| 3 | +This is a minor patch release that includes updates to our dependencies and minor documentation |
| 4 | +tweaks. |
| 5 | + |
| 6 | +**Closed issues:** |
| 7 | + |
| 8 | +- Do you accept contributions for wrappers over JavaScript objects? ([#124](https://github.com/swiftwasm/JavaScriptKit/issues/124)) |
| 9 | +- Can't read from a file using `JSPromise` ([#121](https://github.com/swiftwasm/JavaScriptKit/issues/121)) |
| 10 | +- TypeError when trying to implement a `JSBridgedClass` for `WebSocket.send` ([#120](https://github.com/swiftwasm/JavaScriptKit/issues/120)) |
| 11 | + |
| 12 | +**Merged pull requests:** |
| 13 | + |
| 14 | +- Update JS dependencies in package-lock.json ([#126](https://github.com/swiftwasm/JavaScriptKit/pull/126)) via [@MaxDesiatov](https://github.com/MaxDesiatov) |
| 15 | +- Fix typo in method documentation ([#125](https://github.com/swiftwasm/JavaScriptKit/pull/125)) via [@revolter](https://github.com/revolter) |
| 16 | +- Update exported func name to match exported name ([#123](https://github.com/swiftwasm/JavaScriptKit/pull/123)) via [@kateinoigakukun](https://github.com/kateinoigakukun) |
| 17 | +- Fix incorrect link in `JSDate` documentation ([#122](https://github.com/swiftwasm/JavaScriptKit/pull/122)) via [@revolter](https://github.com/revolter) |
| 18 | + |
| 19 | +# 0.10.0 (21 January 2021) |
| 20 | + |
| 21 | +This release contains multiple breaking changes in preparation for enabling `async`/`await`, when |
| 22 | +this feature is available in a stable SwiftWasm release. Namely: |
| 23 | + |
| 24 | +* `JSClosure.init(_ body: @escaping ([JSValue]) -> ())` overload is deprecated to simplify type |
| 25 | +checking. Its presence requires explicit type signatures at the place of use. It will be removed |
| 26 | +in a future version of JavaScriptKit. |
| 27 | +* `JSClosure` is no longer a subclass of `JSFunction`. These classes are not related enough to keep |
| 28 | +them in the same class hierarchy. |
| 29 | +As a result, you can no longer call `JSClosure` objects directly from Swift. |
| 30 | +* Introduced `JSOneshotClosure` for closures that are going to be called only once. You don't need |
| 31 | +to manage references to these closures manually, as opposed to `JSClosure`. |
| 32 | +However, they can only be called a single time from the JS side. Subsequent invocation attempts will raise a fatal error on the Swift side. |
| 33 | +* Removed generic parameters on `JSPromise`, now both success and failure values are always assumed |
| 34 | +to be of `JSValue` type. This also significantly simplifies type checking and allows callers to |
| 35 | +fully control type casting if needed. |
| 36 | + |
| 37 | +**Closed issues:** |
| 38 | + |
| 39 | +- DOMKit? ([#21](https://github.com/swiftwasm/JavaScriptKit/issues/21)) |
| 40 | + |
| 41 | +**Merged pull requests:** |
| 42 | + |
| 43 | +- Simplify `JSPromise` API ([#115](https://github.com/swiftwasm/JavaScriptKit/pull/115)) via [@kateinoigakukun](https://github.com/kateinoigakukun) |
| 44 | +- Create `FUNDING.yml` ([#117](https://github.com/swiftwasm/JavaScriptKit/pull/117)) via [@MaxDesiatov](https://github.com/MaxDesiatov) |
| 45 | +- Major API change on `JSClosure` ([#113](https://github.com/swiftwasm/JavaScriptKit/pull/113)) via [@kateinoigakukun](https://github.com/kateinoigakukun) |
| 46 | +- Update `package.json` to lockfileVersion 2 ([#114](https://github.com/swiftwasm/JavaScriptKit/pull/114)) via [@kateinoigakukun](https://github.com/kateinoigakukun) |
| 47 | +- Bump `ini` from 1.3.5 to 1.3.8 in `/Example` ([#111](https://github.com/swiftwasm/JavaScriptKit/pull/111)) via [@dependabot](https://github.com/dependabot) |
| 48 | +- Update doc comment in `JSTypedArray.swift` ([#110](https://github.com/swiftwasm/JavaScriptKit/pull/110)) via [@MaxDesiatov](https://github.com/MaxDesiatov) |
| 49 | + |
1 | 50 | # 0.9.0 (27 November 2020) |
2 | 51 |
|
3 | 52 | This release introduces support for catching `JSError` instances in Swift from throwing JavaScript |
|
0 commit comments