expo-modules-jsi 56.0.10 → 56.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 56.0.11 — 2026-07-03
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- [iOS] Preserve the `code` on the JavaScript error when an async function rejects with a `JavaScriptThrowable` (e.g. an `Exception`), instead of stringifying it and dropping the `code` — mirroring the synchronous throw path. ([#47453](https://github.com/expo/expo/pull/47453) by [@HubertBer](https://github.com/HubertBer))
|
|
18
|
+
|
|
13
19
|
## 56.0.10 — 2026-06-15
|
|
14
20
|
|
|
15
21
|
### 🐛 Bug fixes
|
|
@@ -102,9 +102,13 @@ public struct JavaScriptPromise: JavaScriptType, ~Copyable {
|
|
|
102
102
|
guard let rejecter = rejectFunction.take() else {
|
|
103
103
|
return
|
|
104
104
|
}
|
|
105
|
-
|
|
106
|
-
let
|
|
107
|
-
let
|
|
105
|
+
|
|
106
|
+
let errorValue: JavaScriptValue
|
|
107
|
+
if let throwable = error as? JavaScriptThrowable {
|
|
108
|
+
errorValue = JavaScriptError(runtime, from: throwable).asValue()
|
|
109
|
+
} else {
|
|
110
|
+
errorValue = JavaScriptError(runtime, message: String(describing: error)).asValue()
|
|
111
|
+
}
|
|
108
112
|
|
|
109
113
|
// Call the actual rejecter given in the Promise setup.
|
|
110
114
|
// This will also call `deferredPromise.reject` in the `then` handler.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-modules-jsi",
|
|
3
|
-
"version": "56.0.
|
|
3
|
+
"version": "56.0.11",
|
|
4
4
|
"description": "The JavaScript Interface for Expo Modules",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"sideEffects": [],
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"./apple/scripts/test.sh"
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "b2e161a54f90a778ab7e5560c0c8f021bbfcaae2",
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "apple/scripts/build-xcframework.sh",
|
|
47
47
|
"swift:format": "../../scripts/swift-format.sh",
|