Skip to content

Commit aa42da6

Browse files
MaxDesiatovj-f1
andauthored
Update CHANGELOG.md for JavaScriptKit 0.10.0 (#119)
* Update `CHANGELOG.md` for JavaScriptKit 0.10.0 * Remove redundant newline * Apply suggestions from code review Co-authored-by: Jed Fox <[email protected]> Co-authored-by: Jed Fox <[email protected]>
1 parent b9984f8 commit aa42da6

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,34 @@
1+
# 0.10.0 (21 January 2021)
2+
3+
This release contains multiple breaking changes in preparation for enabling `async`/`await`, when
4+
this feature is available in a stable SwiftWasm release. Namely:
5+
6+
* `JSClosure.init(_ body: @escaping ([JSValue]) -> ())` overload is deprecated to simplify type
7+
checking. Its presence requires explicit type signatures at the place of use. It will be removed
8+
in a future version of JavaScriptKit.
9+
* `JSClosure` is no longer a subclass of `JSFunction`. These classes are not related enough to keep
10+
them in the same class hierarchy.
11+
As a result, you can no longer call `JSClosure` objects directly from Swift.
12+
* Introduced `JSOneshotClosure` for closures that are going to be called only once. You don't need
13+
to manage references to these closures manually, as opposed to `JSClosure`.
14+
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.
15+
* Removed generic parameters on `JSPromise`, now both success and failure values are always assumed
16+
to be of `JSValue` type. This also significantly simplifies type checking and allows callers to
17+
fully control type casting if needed.
18+
19+
**Closed issues:**
20+
21+
- DOMKit? ([#21](https://github.com/swiftwasm/JavaScriptKit/issues/21))
22+
23+
**Merged pull requests:**
24+
25+
- Simplify `JSPromise` API ([#115](https://github.com/swiftwasm/JavaScriptKit/pull/115)) via [@kateinoigakukun](https://github.com/kateinoigakukun)
26+
- Create `FUNDING.yml` ([#117](https://github.com/swiftwasm/JavaScriptKit/pull/117)) via [@MaxDesiatov](https://github.com/MaxDesiatov)
27+
- Major API change on `JSClosure` ([#113](https://github.com/swiftwasm/JavaScriptKit/pull/113)) via [@kateinoigakukun](https://github.com/kateinoigakukun)
28+
- Update `package.json` to lockfileVersion 2 ([#114](https://github.com/swiftwasm/JavaScriptKit/pull/114)) via [@kateinoigakukun](https://github.com/kateinoigakukun)
29+
- Bump `ini` from 1.3.5 to 1.3.8 in `/Example` ([#111](https://github.com/swiftwasm/JavaScriptKit/pull/111)) via [@dependabot[bot]](https://github.com/dependabot[bot])
30+
- Update doc comment in `JSTypedArray.swift` ([#110](https://github.com/swiftwasm/JavaScriptKit/pull/110)) via [@MaxDesiatov](https://github.com/MaxDesiatov)
31+
132
# 0.9.0 (27 November 2020)
233

334
This release introduces support for catching `JSError` instances in Swift from throwing JavaScript

0 commit comments

Comments
 (0)