expo-modules-core 57.0.9 → 57.0.10

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.10 — 2026-08-06
14
+
15
+ ### 💡 Others
16
+
17
+ - [Android] Ignore already-settled promises. ([#46770](https://github.com/expo/expo/pull/46770) by [@jakex7](https://github.com/jakex7))
18
+
13
19
  ## 57.0.9 — 2026-08-04
14
20
 
15
21
  ### 🎉 New features
@@ -27,7 +27,7 @@ if (shouldIncludeCompose) {
27
27
  }
28
28
 
29
29
  group = 'host.exp.exponent'
30
- version = '57.0.9'
30
+ version = '57.0.10'
31
31
 
32
32
  def isExpoModulesCoreTests = {
33
33
  Gradle gradle = getGradle()
@@ -94,7 +94,7 @@ android {
94
94
  defaultConfig {
95
95
  consumerProguardFiles 'proguard-rules.pro'
96
96
  versionCode 1
97
- versionName "57.0.9"
97
+ versionName "57.0.10"
98
98
  buildConfigField "String", "EXPO_MODULES_CORE_VERSION", "\"${versionName}\""
99
99
  buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", "true"
100
100
 
@@ -1,11 +1,8 @@
1
1
  package expo.modules.kotlin.jni
2
2
 
3
- import expo.modules.BuildConfig
4
3
  import expo.modules.core.interfaces.DoNotStrip
5
4
  import expo.modules.kotlin.AppContext
6
5
  import expo.modules.kotlin.Promise
7
- import expo.modules.kotlin.exception.PromiseAlreadySettledException
8
- import expo.modules.kotlin.logger
9
6
  import java.lang.ref.WeakReference
10
7
 
11
8
  @DoNotStrip
@@ -61,17 +58,7 @@ class PromiseImpl @DoNotStrip internal constructor(
61
58
 
62
59
  private inline fun checkIfWasSettled(body: () -> Unit) {
63
60
  if (wasSettled) {
64
- val exception = PromiseAlreadySettledException(fullFunctionName ?: "unknown")
65
- val jsLogger = appContextHolder?.get()?.jsLogger
66
- // We want to report that a promise was settled twice in the development build.
67
- // However, in production, the app should crash.
68
- if (BuildConfig.DEBUG && jsLogger != null) {
69
- jsLogger.error("Trying to resolve promise that was already settled", exception)
70
- logger.error("Trying to resolve promise that was already settled", exception)
71
- return
72
- }
73
-
74
- throw exception
61
+ return
75
62
  }
76
63
 
77
64
  body()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-modules-core",
3
- "version": "57.0.9",
3
+ "version": "57.0.10",
4
4
  "description": "The core of Expo Modules architecture",
5
5
  "main": "src/index.ts",
6
6
  "types": "build/index.d.ts",
@@ -66,7 +66,7 @@
66
66
  "@types/invariant": "^2.2.33",
67
67
  "expo-module-scripts": "56.0.3"
68
68
  },
69
- "gitHead": "fb5049481ebd5cadd499c4d1f1d5e47f9ac678be",
69
+ "gitHead": "e322c877a4d185fb18b27d68945a190cb7f15ce6",
70
70
  "scripts": {
71
71
  "build": "expo-module build",
72
72
  "clean": "expo-module clean",