@expo/metro-runtime 56.0.14 → 56.0.16

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.
@@ -1 +1 @@
1
- {"version":3,"file":"install.native.d.ts","sourceRoot":"","sources":["../../src/location/install.native.ts"],"names":[],"mappings":"AACA,OAAO,4CAA4C,CAAC;AAGpD,OAAO,cAAc,CAAC;AAEtB,OAAO,MAAM,CAAC;AA4Cd,QAAA,MAAM,cAAc,eAAqD,CAAC;AAE1E,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,QAAQ,GAAG;IAAE,CAAC,cAAc,CAAC,CAAC,EAAE,OAAO,CAAA;CAAE;uBAAT,OAAO;EAmBzF"}
1
+ {"version":3,"file":"install.native.d.ts","sourceRoot":"","sources":["../../src/location/install.native.ts"],"names":[],"mappings":"AAGA,OAAO,4CAA4C,CAAC;AAGpD,OAAO,cAAc,CAAC;AAEtB,OAAO,MAAM,CAAC;AA4Cd,QAAA,MAAM,cAAc,eAAqD,CAAC;AAE1E,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,QAAQ,GAAG;IAAE,CAAC,cAAc,CAAC,CAAC,EAAE,OAAO,CAAA;CAAE;uBAAT,OAAO;EAmBzF"}
@@ -1 +1 @@
1
- {"version":3,"file":"metroServerLogs.native.d.ts","sourceRoot":"","sources":["../src/metroServerLogs.native.ts"],"names":[],"mappings":"AASA,wBAAgB,yBAAyB,SAoDxC"}
1
+ {"version":3,"file":"metroServerLogs.native.d.ts","sourceRoot":"","sources":["../src/metroServerLogs.native.ts"],"names":[],"mappings":"AASA,wBAAgB,yBAAyB,SAsDxC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/metro-runtime",
3
- "version": "56.0.14",
3
+ "version": "56.0.16",
4
4
  "description": "Tools for making advanced Metro bundler features work",
5
5
  "sideEffects": true,
6
6
  "main": "src/index.ts",
@@ -30,7 +30,7 @@
30
30
  "url": "https://github.com/expo/expo.git"
31
31
  },
32
32
  "peerDependencies": {
33
- "@expo/log-box": "^56.0.12",
33
+ "@expo/log-box": "^56.0.14",
34
34
  "expo": "*",
35
35
  "react": "*",
36
36
  "react-dom": "*",
@@ -42,7 +42,7 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "@expo/log-box": "^56.0.12",
45
+ "@expo/log-box": "^56.0.14",
46
46
  "anser": "^1.4.9",
47
47
  "stacktrace-parser": "^0.1.10",
48
48
  "pretty-format": "^29.7.0",
@@ -51,11 +51,11 @@
51
51
  "devDependencies": {
52
52
  "@types/react": "~19.2.0",
53
53
  "react-dom": "19.2.3",
54
- "expo": "56.0.9",
55
- "expo-constants": "56.0.17",
54
+ "expo": "56.0.13",
55
+ "expo-constants": "56.0.19",
56
56
  "expo-module-scripts": "56.0.3"
57
57
  },
58
- "gitHead": "175f1e78e3444ca99ddea473faea6777a0656668",
58
+ "gitHead": "b293744c7b199c6cbe910188863e93a174c21250",
59
59
  "scripts": {
60
60
  "build": "expo-module build",
61
61
  "clean": "expo-module clean",
@@ -1,4 +1,6 @@
1
- // This MUST be first to ensure that `fetch` is defined in the React Native environment.
1
+ // WARN(@kitten): We must ensure that the core react-native globals are initialized before ours
2
+ // Otherwise we're relying on `getModulesRunBeforeMainModule` which is unstable or can be missing
3
+ // See: `expo/winter/runtime.native.ts`
2
4
  import 'react-native/Libraries/Core/InitializeCore';
3
5
 
4
6
  // Ensure fetch is installed before adding our fetch polyfill to ensure Headers and Request are available globally.
@@ -27,7 +27,9 @@ export function captureStackForServerLogs() {
27
27
  return;
28
28
  }
29
29
 
30
- const hasErrorLikeStack = data.some((item) => hasStringKey(item, 'stack'));
30
+ const hasErrorLikeStack = data.some((item) => {
31
+ return hasStringKey(item, 'stack');
32
+ });
31
33
  const hasComponentStack = data.some(
32
34
  (item) =>
33
35
  (typeof item === 'string' && isComponentStack(withoutANSIColorStyles(item))) ||
@@ -104,5 +106,6 @@ class NamelessError extends Error {
104
106
  name = '';
105
107
  }
106
108
  function captureCurrentStack() {
109
+ // If you're reading this, look deeper into the call stack to find the actual error source.
107
110
  return new NamelessError().stack;
108
111
  }