expo-modules-jsi 57.0.0 → 57.0.1

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
+ ## 57.0.1 — 2026-07-07
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [iOS] Return `NSNull` instead of trapping in the deprecated `JavaScriptValue.getAny()` when it encounters a unrepresentable value. ([#47381](https://github.com/expo/expo/pull/47381) by [@alanjhughes](https://github.com/alanjhughes))
18
+
13
19
  ## 57.0.0 — 2026-06-25
14
20
 
15
21
  ### 🛠 Breaking changes
@@ -208,7 +208,8 @@ public final class JavaScriptValue: JavaScriptType, Equatable, Escapable {
208
208
  return result
209
209
  }
210
210
  if object.isFunction() {
211
- FatalError.unimplemented()
211
+ // Don't trap, callers convert speculatively under `try?`, which can't catch a `fatalError`.
212
+ return NSNull()
212
213
  }
213
214
  var result = [String: Any]()
214
215
 
@@ -222,7 +223,8 @@ public final class JavaScriptValue: JavaScriptType, Equatable, Escapable {
222
223
  }
223
224
  return result
224
225
  }
225
- fatalError("Unsupported value kind: \(kind)")
226
+ // Unrepresentable kind (e.g. symbol). Don't trap, for the same reason as above.
227
+ return NSNull()
226
228
  }
227
229
 
228
230
  /// Returns the value as a boolean, or asserts if not a boolean.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-modules-jsi",
3
- "version": "57.0.0",
3
+ "version": "57.0.1",
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": "e3eb896c5fdcd89e0cded98ff4e35c9db12cc9c0",
44
+ "gitHead": "b31bd70c8873eee2894bc5cc3b3460abca0cdea0",
45
45
  "scripts": {
46
46
  "build": "apple/scripts/build-xcframework.sh",
47
47
  "swift:format": "../../scripts/swift-format.sh",