You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bump version to 0.14.0, update CHANGELOG.md (#181)
New release is required to resolveTokamakUI/Tokamak#475.
I've also cleaned up formatting in `.ts` file and clarified version incompatibility error message.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+34-23Lines changed: 34 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,13 @@
1
+
# 0.14.0 (8 April 2022)
2
+
3
+
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/).
4
+
5
+
**Merged pull requests:**
6
+
7
+
- Reenable integration tests ([#180](https://github.com/swiftwasm/JavaScriptKit/pull/180)) via [@kateinoigakukun](https://github.com/kateinoigakukun)
8
+
- Updates for DOMKit ([#174](https://github.com/swiftwasm/JavaScriptKit/pull/174)) via [@j-f1](https://github.com/j-f1)
9
+
- Add 5.6 release and macOS 12 with Xcode 13.3 to CI matrix ([#176](https://github.com/swiftwasm/JavaScriptKit/pull/176)) via [@MaxDesiatov](https://github.com/MaxDesiatov)
10
+
1
11
# 0.13.0 (31 March 2022)
2
12
3
13
This release improves handling of JavaScript exceptions and compatibility with Xcode.
@@ -21,7 +31,7 @@ Thanks to [@kateinoigakukun](https://github.com/kateinoigakukun), [@pedrovgs](ht
21
31
22
32
# 0.12.0 (08 February 2022)
23
33
24
-
This release introduces a [major refactor](https://github.com/swiftwasm/JavaScriptKit/pull/150) of the JavaScript runtime by [@j-f1] and several performance enhancements.
34
+
This release introduces a [major refactor](https://github.com/swiftwasm/JavaScriptKit/pull/150) of the JavaScript runtime by [@j-f1] and several performance enhancements.
25
35
26
36
**Merged pull requests:**
27
37
@@ -40,9 +50,10 @@ This is a bugfix release that removes a requirement for macOS Monterey in `Packa
40
50
package. `README.md` was updated to explicitly specify that if you're building an app or a library
41
51
that depends on JavaScriptKit for macOS (i.e. cross-platform code that supports both WebAssembly
42
52
and macOS), you need either
43
-
* macOS Monterey that has the new Swift concurrency runtime available, or
44
-
* any version of macOS that supports Swift concurrency back-deployment with Xcode 13.2 or later, or
45
-
* add `.unsafeFlags(["-Xfrontend", "-disable-availability-checking"])` in `Package.swift` manifest.
53
+
54
+
- macOS Monterey that has the new Swift concurrency runtime available, or
55
+
- any version of macOS that supports Swift concurrency back-deployment with Xcode 13.2 or later, or
56
+
- add `.unsafeFlags(["-Xfrontend", "-disable-availability-checking"])` in `Package.swift` manifest.
46
57
47
58
**Merged pull requests:**
48
59
@@ -52,7 +63,7 @@ and macOS), you need either
52
63
53
64
This release adds support for `async`/`await` and SwiftWasm 5.5. Use the new `value` async property
54
65
on a `JSPromise` instance to `await` for its result. You'll have to add a dependency on the new
55
-
`JavaScriptEventLoop` target in your `Package.swift`, `import JavaScriptEventLoop`, and call
66
+
`JavaScriptEventLoop` target in your `Package.swift`, `import JavaScriptEventLoop`, and call
56
67
`JavaScriptEventLoop.installGlobalExecutor()` in your code before you start using `await` and `Task`
57
68
APIs.
58
69
@@ -64,12 +75,12 @@ compiler flags, see [`README.md`](./README.md) for more details.
64
75
This new release of JavaScriptKit may work with SwiftWasm 5.4 and 5.3, but is no longer tested with
65
76
those versions due to compatibility issues introduced on macOS by latest versions of Xcode.
66
77
67
-
Many thanks to [@j-f1], [@kateinoigakukun],
78
+
Many thanks to [@j-f1], [@kateinoigakukun],
68
79
and [@PatrickPijnappel] for their contributions to this release!
69
80
70
81
**Closed issues:**
71
82
72
-
- Enchancement: Add a link to the docs ([#136](https://github.com/swiftwasm/JavaScriptKit/issues/136))
83
+
- Enchancement: Add a link to the docs ([#136](https://github.com/swiftwasm/JavaScriptKit/issues/136))
73
84
- Use `FinalizationRegistry` to auto-deinit `JSClosure` ([#131](https://github.com/swiftwasm/JavaScriptKit/issues/131))
74
85
-`make test` crashes due to `JSClosure` memory issues ([#129](https://github.com/swiftwasm/JavaScriptKit/issues/129))
75
86
- Avoid manual memory management with `JSClosure` ([#106](https://github.com/swiftwasm/JavaScriptKit/issues/106))
@@ -97,7 +108,7 @@ tweaks.
97
108
98
109
**Merged pull requests:**
99
110
100
-
- Update JS dependencies in package-lock.json ([#126](https://github.com/swiftwasm/JavaScriptKit/pull/126)) via [@MaxDesiatov]
111
+
- Update JS dependencies in package-lock.json ([#126](https://github.com/swiftwasm/JavaScriptKit/pull/126)) via [@MaxDesiatov]
101
112
- Fix typo in method documentation ([#125](https://github.com/swiftwasm/JavaScriptKit/pull/125)) via [@revolter]
102
113
- Update exported func name to match exported name ([#123](https://github.com/swiftwasm/JavaScriptKit/pull/123)) via [@kateinoigakukun]
103
114
- Fix incorrect link in `JSDate` documentation ([#122](https://github.com/swiftwasm/JavaScriptKit/pull/122)) via [@revolter]
@@ -107,18 +118,18 @@ tweaks.
107
118
This release contains multiple breaking changes in preparation for enabling `async`/`await`, when
108
119
this feature is available in a stable SwiftWasm release. Namely:
109
120
110
-
*`JSClosure.init(_ body: @escaping ([JSValue]) -> ())` overload is deprecated to simplify type
111
-
checking. Its presence requires explicit type signatures at the place of use. It will be removed
112
-
in a future version of JavaScriptKit.
113
-
*`JSClosure` is no longer a subclass of `JSFunction`. These classes are not related enough to keep
114
-
them in the same class hierarchy.
115
-
As a result, you can no longer call `JSClosure` objects directly from Swift.
116
-
* Introduced `JSOneshotClosure` for closures that are going to be called only once. You don't need
117
-
to manage references to these closures manually, as opposed to `JSClosure`.
118
-
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.
119
-
* Removed generic parameters on `JSPromise`, now both success and failure values are always assumed
120
-
to be of `JSValue` type. This also significantly simplifies type checking and allows callers to
121
-
fully control type casting if needed.
121
+
-`JSClosure.init(_ body: @escaping ([JSValue]) -> ())` overload is deprecated to simplify type
122
+
checking. Its presence requires explicit type signatures at the place of use. It will be removed
123
+
in a future version of JavaScriptKit.
124
+
-`JSClosure` is no longer a subclass of `JSFunction`. These classes are not related enough to keep
125
+
them in the same class hierarchy.
126
+
As a result, you can no longer call `JSClosure` objects directly from Swift.
127
+
- Introduced `JSOneshotClosure` for closures that are going to be called only once. You don't need
128
+
to manage references to these closures manually, as opposed to `JSClosure`.
129
+
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.
130
+
- Removed generic parameters on `JSPromise`, now both success and failure values are always assumed
131
+
to be of `JSValue` type. This also significantly simplifies type checking and allows callers to
132
+
fully control type casting if needed.
122
133
123
134
**Closed issues:**
124
135
@@ -200,7 +211,7 @@ with idiomatic Swift code.
200
211
- Update toolchain version, script, and `README.md` ([#96](https://github.com/swiftwasm/JavaScriptKit/pull/96)) via [@MaxDesiatov]
201
212
-[Proposal] Add unsafe convenience methods for JSValue ([#98](https://github.com/swiftwasm/JavaScriptKit/pull/98)) via [@kateinoigakukun]
202
213
- Remove all unsafe linker flags from Package.swift ([#91](https://github.com/swiftwasm/JavaScriptKit/pull/91)) via [@kateinoigakukun]
203
-
- Sync package.json and package-lock.json ([#90](https://github.com/swiftwasm/JavaScriptKit/pull/90)) via [@kateinoigakukun]
214
+
- Sync package.json and package-lock.json ([#90](https://github.com/swiftwasm/JavaScriptKit/pull/90)) via [@kateinoigakukun]
204
215
- Rename JSValueConvertible/Constructible/Codable ([#88](https://github.com/swiftwasm/JavaScriptKit/pull/88)) via [@j-f1]
205
216
- Bump @actions/core from 1.2.2 to 1.2.6 in /ci/perf-tester ([#89](https://github.com/swiftwasm/JavaScriptKit/pull/89)) via [@dependabot]
206
217
- Make `JSError` conform to `JSBridgedClass` ([#86](https://github.com/swiftwasm/JavaScriptKit/pull/86)) via [@MaxDesiatov]
@@ -278,10 +289,10 @@ This release adds `JSTypedArray` generic type, renames `JSObjectRef` to `JSObjec
278
289
- Clean up the `JSObjectRef` API ([#28](https://github.com/swiftwasm/JavaScriptKit/pull/28)) via [@j-f1]
279
290
- Remove unused `Tests` directory ([#32](https://github.com/swiftwasm/JavaScriptKit/pull/32)) via [@MaxDesiatov]
0 commit comments