Skip to content

Commit b7a0243

Browse files
authored
Bump version to 0.9.0, update CHANGELOG.md (#109)
1 parent c272a08 commit b7a0243

File tree

5 files changed

+49
-5
lines changed

5 files changed

+49
-5
lines changed

CHANGELOG.md

+21
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
# 0.9.0 (27 November 2020)
2+
3+
This release introduces support for catching `JSError` instances in Swift from throwing JavaScript
4+
functions. This is possible thanks to the new `JSThrowingFunction` and `JSThrowingObject` classes.
5+
The former can only be called with `try`, while the latter will expose all of its member functions
6+
as throwing. Use the new `throws` property on `JSFunction` to convert it to `JSThrowingFunction`,
7+
and the new `throwing` property on `JSObject` to convert it to `JSThrowingObject`.
8+
9+
**Closed issues:**
10+
11+
- Support JS errors ([#37](https://github.com/swiftwasm/JavaScriptKit/issues/37))
12+
13+
**Merged pull requests:**
14+
15+
- Update toolchain version swift-wasm-5.3.0-RELEASE ([#108](https://github.com/swiftwasm/JavaScriptKit/pull/108)) via [@kateinoigakukun](https://github.com/kateinoigakukun)
16+
- Update ci trigger condition ([#104](https://github.com/swiftwasm/JavaScriptKit/pull/104)) via [@kateinoigakukun](https://github.com/kateinoigakukun)
17+
- Fix branch and triple in `compatibility.yml` ([#105](https://github.com/swiftwasm/JavaScriptKit/pull/105)) via [@MaxDesiatov](https://github.com/MaxDesiatov)
18+
- Check source code compatibility ([#103](https://github.com/swiftwasm/JavaScriptKit/pull/103)) via [@kateinoigakukun](https://github.com/kateinoigakukun)
19+
- JS Exception Support ([#102](https://github.com/swiftwasm/JavaScriptKit/pull/102)) via [@kateinoigakukun](https://github.com/kateinoigakukun)
20+
- Mention `carton` Docker image and refine wording in `README.md` ([#101](https://github.com/swiftwasm/JavaScriptKit/pull/101)) via [@MaxDesiatov](https://github.com/MaxDesiatov)
21+
122
# 0.8.0 (21 October 2020)
223

324
This release introduces a few enhancements and deprecations. Namely, `JSValueConstructible`

IntegrationTests/TestSuites/Sources/PrimaryTests/main.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ try test("Exception") {
562562
try expectEqual(error4 is JSValue, true)
563563
let errorObject2 = JSError(from: error4 as! JSValue)
564564
try expectNotNil(errorObject2)
565-
565+
566566
// MARK: Throwing constructor call
567567
let Animal = JSObject.global.Animal.function!
568568
_ = try Animal.throws.new("Tama", 3, true)

Sources/JavaScriptKit/FundamentalObjects/JSObject.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public class JSObject: Equatable {
7676
get { getJSValue(this: self, index: Int32(index)) }
7777
set { setJSValue(this: self, index: Int32(index), value: newValue) }
7878
}
79-
79+
8080
/// A modifier to call methods as throwing methods capturing `this`
8181
///
8282
///

package-lock.json

+25-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "javascript-kit-swift",
3-
"version": "0.8.0",
3+
"version": "0.9.0",
44
"description": "A runtime library of JavaScriptKit which is Swift framework to interact with JavaScript through WebAssembly.",
55
"main": "Runtime/lib/index.js",
66
"files": [

0 commit comments

Comments
 (0)