expo 56.0.18 → 56.0.19
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/android/build.gradle
CHANGED
|
@@ -10,7 +10,7 @@ buildscript {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
group = 'host.exp.exponent'
|
|
13
|
-
version = '56.0.
|
|
13
|
+
version = '56.0.19'
|
|
14
14
|
|
|
15
15
|
expoModule {
|
|
16
16
|
// We can't prebuild the module because it depends on the generated files.
|
|
@@ -21,7 +21,7 @@ android {
|
|
|
21
21
|
namespace "expo.core"
|
|
22
22
|
defaultConfig {
|
|
23
23
|
versionCode 1
|
|
24
|
-
versionName "56.0.
|
|
24
|
+
versionName "56.0.19"
|
|
25
25
|
consumerProguardFiles("proguard-rules.pro")
|
|
26
26
|
}
|
|
27
27
|
testOptions {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@expo/dom-webview": "~56.0.6",
|
|
3
3
|
"@expo/fingerprint": "~0.19.9",
|
|
4
|
-
"@expo/metro-runtime": "~56.0.
|
|
4
|
+
"@expo/metro-runtime": "~56.0.19",
|
|
5
5
|
"@expo/vector-icons": "^15.0.2",
|
|
6
|
-
"@expo/ui": "~56.0.
|
|
6
|
+
"@expo/ui": "~56.0.25",
|
|
7
7
|
"@react-native-async-storage/async-storage": "2.2.0",
|
|
8
8
|
"@react-native-community/datetimepicker": "9.1.0",
|
|
9
9
|
"@react-native-masked-view/masked-view": "0.3.2",
|
|
@@ -17,31 +17,31 @@
|
|
|
17
17
|
"expo-analytics-amplitude": "~11.3.0",
|
|
18
18
|
"expo-app-auth": "~11.1.0",
|
|
19
19
|
"expo-app-loader-provider": "~8.0.0",
|
|
20
|
-
"expo-app-metrics": "~56.0.
|
|
20
|
+
"expo-app-metrics": "~56.0.24",
|
|
21
21
|
"expo-apple-authentication": "~56.0.4",
|
|
22
22
|
"expo-application": "~56.0.3",
|
|
23
|
-
"expo-asset": "~56.0.
|
|
23
|
+
"expo-asset": "~56.0.22",
|
|
24
24
|
"expo-audio": "~56.0.13",
|
|
25
25
|
"expo-auth-session": "~56.0.16",
|
|
26
|
-
"expo-background-fetch": "~56.0.
|
|
27
|
-
"expo-background-task": "~56.0.
|
|
26
|
+
"expo-background-fetch": "~56.0.25",
|
|
27
|
+
"expo-background-task": "~56.0.25",
|
|
28
28
|
"expo-battery": "~56.0.4",
|
|
29
29
|
"expo-blur": "~56.0.4",
|
|
30
30
|
"expo-brightness": "~56.0.5",
|
|
31
|
-
"expo-brownfield": "~56.0.
|
|
32
|
-
"expo-build-properties": "~56.0.
|
|
31
|
+
"expo-brownfield": "~56.0.27",
|
|
32
|
+
"expo-build-properties": "~56.0.25",
|
|
33
33
|
"expo-calendar": "~56.0.9",
|
|
34
34
|
"expo-camera": "~56.0.8",
|
|
35
35
|
"expo-cellular": "~56.0.5",
|
|
36
36
|
"expo-checkbox": "~56.0.1",
|
|
37
37
|
"expo-clipboard": "~56.0.4",
|
|
38
|
-
"expo-constants": "~56.0.
|
|
38
|
+
"expo-constants": "~56.0.23",
|
|
39
39
|
"expo-contacts": "~56.0.12",
|
|
40
40
|
"expo-crypto": "~56.0.4",
|
|
41
41
|
"expo-dev-client": "~56.0.24",
|
|
42
42
|
"expo-device": "~56.0.4",
|
|
43
43
|
"expo-document-picker": "~56.0.4",
|
|
44
|
-
"expo-file-system": "~56.0.
|
|
44
|
+
"expo-file-system": "~56.0.9",
|
|
45
45
|
"expo-font": "~56.0.7",
|
|
46
46
|
"expo-gl": "~56.0.6",
|
|
47
47
|
"expo-glass-effect": "~56.0.4",
|
|
@@ -49,52 +49,52 @@
|
|
|
49
49
|
"expo-haptics": "~56.0.3",
|
|
50
50
|
"expo-image": "~56.0.11",
|
|
51
51
|
"expo-image-loader": "~56.0.3",
|
|
52
|
-
"expo-image-manipulator": "~56.0.
|
|
53
|
-
"expo-image-picker": "~56.0.
|
|
52
|
+
"expo-image-manipulator": "~56.0.24",
|
|
53
|
+
"expo-image-picker": "~56.0.23",
|
|
54
54
|
"expo-intent-launcher": "~56.0.4",
|
|
55
|
-
"expo-insights": "~56.0.
|
|
55
|
+
"expo-insights": "~56.0.23",
|
|
56
56
|
"expo-keep-awake": "~56.0.3",
|
|
57
57
|
"expo-linear-gradient": "~56.0.4",
|
|
58
58
|
"expo-linking": "~56.0.16",
|
|
59
59
|
"expo-local-authentication": "~56.0.5",
|
|
60
60
|
"expo-localization": "~56.0.6",
|
|
61
|
-
"expo-location": "~56.0.
|
|
61
|
+
"expo-location": "~56.0.23",
|
|
62
62
|
"expo-mail-composer": "~56.0.4",
|
|
63
63
|
"expo-manifests": "~56.0.4",
|
|
64
64
|
"expo-maps": "~56.0.7",
|
|
65
65
|
"expo-mcp": "~0.2.1",
|
|
66
66
|
"expo-media-library": "~56.0.10",
|
|
67
67
|
"expo-mesh-gradient": "~56.0.3",
|
|
68
|
-
"expo-module-template": "~56.0.
|
|
69
|
-
"expo-modules-core": "~56.0.
|
|
68
|
+
"expo-module-template": "~56.0.18",
|
|
69
|
+
"expo-modules-core": "~56.0.23",
|
|
70
70
|
"expo-navigation-bar": "~56.0.3",
|
|
71
71
|
"expo-network": "~56.0.5",
|
|
72
|
-
"expo-notifications": "~56.0.
|
|
73
|
-
"expo-observe": "~56.0.
|
|
72
|
+
"expo-notifications": "~56.0.23",
|
|
73
|
+
"expo-observe": "~56.0.27",
|
|
74
74
|
"expo-print": "~56.0.4",
|
|
75
75
|
"expo-live-photo": "~56.0.4",
|
|
76
|
-
"expo-router": "~56.2.
|
|
76
|
+
"expo-router": "~56.2.18",
|
|
77
77
|
"expo-screen-capture": "~56.0.4",
|
|
78
78
|
"expo-screen-orientation": "~56.0.5",
|
|
79
79
|
"expo-secure-store": "~56.0.4",
|
|
80
80
|
"expo-sensors": "~56.0.6",
|
|
81
81
|
"expo-server": "~56.0.5",
|
|
82
|
-
"expo-sharing": "~56.0.
|
|
82
|
+
"expo-sharing": "~56.0.24",
|
|
83
83
|
"expo-sms": "~56.0.3",
|
|
84
84
|
"expo-speech": "~56.0.3",
|
|
85
85
|
"expo-splash-screen": "~56.0.14",
|
|
86
86
|
"expo-sqlite": "~56.0.5",
|
|
87
87
|
"expo-status-bar": "~56.0.4",
|
|
88
88
|
"expo-store-review": "~56.0.3",
|
|
89
|
-
"expo-symbols": "~56.0.
|
|
89
|
+
"expo-symbols": "~56.0.7",
|
|
90
90
|
"expo-system-ui": "~56.0.5",
|
|
91
|
-
"expo-task-manager": "~56.0.
|
|
91
|
+
"expo-task-manager": "~56.0.25",
|
|
92
92
|
"expo-tracking-transparency": "~56.0.5",
|
|
93
|
-
"expo-updates": "~56.0.
|
|
93
|
+
"expo-updates": "~56.0.24",
|
|
94
94
|
"expo-video-thumbnails": "~56.0.3",
|
|
95
95
|
"expo-video": "~56.1.4",
|
|
96
96
|
"expo-web-browser": "~56.0.6",
|
|
97
|
-
"expo-widgets": "~56.0.
|
|
97
|
+
"expo-widgets": "~56.0.26",
|
|
98
98
|
"jest-expo": "~56.0.5",
|
|
99
99
|
"lottie-react-native": "~7.3.4",
|
|
100
100
|
"react": "19.2.3",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo",
|
|
3
|
-
"version": "56.0.
|
|
3
|
+
"version": "56.0.19",
|
|
4
4
|
"description": "The Expo SDK",
|
|
5
5
|
"main": "src/Expo.ts",
|
|
6
6
|
"module": "src/Expo.ts",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"homepage": "https://github.com/expo/expo/tree/main/packages/expo",
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@babel/runtime": "^7.20.0",
|
|
71
|
-
"@expo/cli": "^56.1.
|
|
71
|
+
"@expo/cli": "^56.1.23",
|
|
72
72
|
"@expo/config": "~56.0.13",
|
|
73
73
|
"@expo/config-plugins": "~56.0.14",
|
|
74
74
|
"@expo/devtools": "~56.0.2",
|
|
@@ -79,14 +79,14 @@
|
|
|
79
79
|
"@expo/metro": "~56.0.0",
|
|
80
80
|
"@expo/metro-config": "~56.0.18",
|
|
81
81
|
"@ungap/structured-clone": "^1.3.0",
|
|
82
|
-
"babel-preset-expo": "~56.0.
|
|
83
|
-
"expo-asset": "~56.0.
|
|
84
|
-
"expo-constants": "~56.0.
|
|
85
|
-
"expo-file-system": "~56.0.
|
|
82
|
+
"babel-preset-expo": "~56.0.19",
|
|
83
|
+
"expo-asset": "~56.0.22",
|
|
84
|
+
"expo-constants": "~56.0.23",
|
|
85
|
+
"expo-file-system": "~56.0.9",
|
|
86
86
|
"expo-font": "~56.0.7",
|
|
87
87
|
"expo-keep-awake": "~56.0.3",
|
|
88
88
|
"expo-modules-autolinking": "~56.0.21",
|
|
89
|
-
"expo-modules-core": "~56.0.
|
|
89
|
+
"expo-modules-core": "~56.0.23",
|
|
90
90
|
"pretty-format": "^29.7.0",
|
|
91
91
|
"react-refresh": "^0.14.2",
|
|
92
92
|
"whatwg-url-minimum": "^0.1.2"
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
"rimraf": "^6.1.2",
|
|
102
102
|
"web-streams-polyfill": "^3.3.2",
|
|
103
103
|
"@expo/dom-webview": "56.0.6",
|
|
104
|
-
"expo-updates": "56.0.
|
|
105
|
-
"@expo/metro-runtime": "56.0.
|
|
104
|
+
"expo-updates": "56.0.24",
|
|
105
|
+
"@expo/metro-runtime": "56.0.19"
|
|
106
106
|
},
|
|
107
107
|
"peerDependencies": {
|
|
108
108
|
"@expo/dom-webview": "*",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"scripts/resolveAppEntry.js"
|
|
140
140
|
]
|
|
141
141
|
},
|
|
142
|
-
"gitHead": "
|
|
142
|
+
"gitHead": "eebecc21d8d868d97e72bd61bb8e668fb2feb704",
|
|
143
143
|
"scripts": {
|
|
144
144
|
"build": "tsc",
|
|
145
145
|
"clean": "rimraf build",
|
|
@@ -90,20 +90,9 @@ describe('asyncRequireModule', () => {
|
|
|
90
90
|
|
|
91
91
|
function asyncRequire(moduleID, paths, moduleName) {
|
|
92
92
|
var ret = asyncRequireImpl(moduleID, paths, moduleName);
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
then: function(resolve, reject) {
|
|
97
|
-
return Promise.resolve(ret).then(resolve, reject);
|
|
98
|
-
},
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
return {
|
|
102
|
-
_result: ret,
|
|
103
|
-
then: function(resolve, reject) {
|
|
104
|
-
return ret.then(resolve, reject);
|
|
105
|
-
},
|
|
106
|
-
};
|
|
93
|
+
var promise = Promise.resolve(ret);
|
|
94
|
+
promise._result = ret;
|
|
95
|
+
return promise;
|
|
107
96
|
}
|
|
108
97
|
|
|
109
98
|
asyncRequire.unstable_importMaybeSync = function(moduleID, paths) {
|
|
@@ -225,14 +214,20 @@ describe('asyncRequireModule', () => {
|
|
|
225
214
|
});
|
|
226
215
|
|
|
227
216
|
describe('thenable return value', () => {
|
|
228
|
-
it('
|
|
217
|
+
it('returns a Promise with a synchronous _result when no bundle load was needed', async () => {
|
|
229
218
|
const ret = asyncRequire(42, null, 'my-module');
|
|
230
219
|
|
|
231
|
-
|
|
220
|
+
const onFinally = jest.fn();
|
|
221
|
+
|
|
222
|
+
expect(ret).toBeInstanceOf(Promise);
|
|
223
|
+
expect(typeof ret.catch).toBe('function');
|
|
224
|
+
expect(typeof ret.finally).toBe('function');
|
|
232
225
|
expect(ret._result).toEqual({ default: 'module-42' });
|
|
226
|
+
await expect(ret.finally(onFinally)).resolves.toEqual({ default: 'module-42' });
|
|
227
|
+
expect(onFinally).toHaveBeenCalledTimes(1);
|
|
233
228
|
});
|
|
234
229
|
|
|
235
|
-
it('
|
|
230
|
+
it('returns a Promise with a Promise _result when a bundle load was needed', async () => {
|
|
236
231
|
process.env.EXPO_OS = 'web';
|
|
237
232
|
mockImportAll
|
|
238
233
|
.mockImplementationOnce(() => {
|
|
@@ -244,10 +239,22 @@ describe('asyncRequireModule', () => {
|
|
|
244
239
|
|
|
245
240
|
const ret = asyncRequire(42, { '42': '/bundles/my-module.bundle' }, 'my-module');
|
|
246
241
|
|
|
247
|
-
expect(
|
|
242
|
+
expect(ret).toBeInstanceOf(Promise);
|
|
243
|
+
expect(typeof ret.catch).toBe('function');
|
|
244
|
+
expect(typeof ret.finally).toBe('function');
|
|
248
245
|
expect(ret._result).toBeInstanceOf(Promise);
|
|
249
246
|
await expect(ret._result).resolves.toEqual({ default: 'module-42' });
|
|
250
247
|
});
|
|
248
|
+
|
|
249
|
+
it('supports catching a rejected bundle load', async () => {
|
|
250
|
+
process.env.EXPO_OS = 'ios';
|
|
251
|
+
const error = new Error('Bundle load failed');
|
|
252
|
+
(globalThis as any).__loadBundleAsync = jest.fn(() => Promise.reject(error));
|
|
253
|
+
|
|
254
|
+
const ret = asyncRequire(42, { '42': '/bundles/my-module.bundle' }, 'my-module');
|
|
255
|
+
|
|
256
|
+
await expect(ret.catch((caughtError: Error) => caughtError)).resolves.toBe(error);
|
|
257
|
+
});
|
|
251
258
|
});
|
|
252
259
|
|
|
253
260
|
describe('unstable_importMaybeSync', () => {
|
|
@@ -94,30 +94,22 @@ function asyncRequireImpl<T>(
|
|
|
94
94
|
return importAll();
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
type PromiseWithResult<T> = Promise<T> & {
|
|
98
|
+
_result?: T | Promise<T>;
|
|
99
|
+
};
|
|
100
|
+
|
|
97
101
|
function asyncRequire<T>(
|
|
98
102
|
moduleID: number,
|
|
99
103
|
paths: DependencyMapPaths,
|
|
100
104
|
moduleName?: string
|
|
101
|
-
):
|
|
105
|
+
): PromiseWithResult<T> {
|
|
102
106
|
const ret = asyncRequireImpl<T>(moduleID, paths, moduleName);
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
then(resolve, reject) {
|
|
110
|
-
return Promise.resolve(ret).then(resolve, reject);
|
|
111
|
-
},
|
|
112
|
-
};
|
|
113
|
-
} else {
|
|
114
|
-
return {
|
|
115
|
-
_result: ret,
|
|
116
|
-
then(resolve, reject) {
|
|
117
|
-
return ret.then(resolve, reject);
|
|
118
|
-
},
|
|
119
|
-
};
|
|
120
|
-
}
|
|
107
|
+
// We return a Promise with an added `unstable_importMaybeSync`-like
|
|
108
|
+
// `_result` property to bypass this being force-converted to a promise
|
|
109
|
+
// for rehydration
|
|
110
|
+
const promise: PromiseWithResult<T> = Promise.resolve(ret);
|
|
111
|
+
promise._result = ret;
|
|
112
|
+
return promise;
|
|
121
113
|
}
|
|
122
114
|
|
|
123
115
|
// Synchronous version of asyncRequire, which can still return a promise
|