expo 54.0.0-canary-20250722-599a28f → 54.0.0-canary-20250826-f475166
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 +2 -2
- package/android/src/main/java/expo/modules/ExpoReactHostFactory.kt +1 -7
- package/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt +33 -8
- package/android/src/main/java/expo/modules/ReactNativeHostWrapper.kt +0 -5
- package/android/src/test/resources/robolectric.properties +1 -0
- package/build/Expo.d.ts +9 -1
- package/build/Expo.d.ts.map +1 -1
- package/build/async-require/fetchAsync.native.d.ts.map +1 -1
- package/build/async-require/hmr.d.ts.map +1 -1
- package/build/winter/FormData.d.ts.map +1 -1
- package/build/winter/fetch/FetchResponse.d.ts +2 -2
- package/build/winter/fetch/FetchResponse.d.ts.map +1 -1
- package/build/winter/fetch/NativeRequest.d.ts +1 -1
- package/build/winter/fetch/NativeRequest.d.ts.map +1 -1
- package/build/winter/fetch/RequestUtils.d.ts.map +1 -1
- package/build/winter/fetch/convertFormData.d.ts.map +1 -1
- package/build/winter/installGlobal.d.ts +25 -0
- package/build/winter/installGlobal.d.ts.map +1 -0
- package/bundledNativeModules.json +97 -96
- package/devtools.d.ts +1 -1
- package/devtools.js +1 -1
- package/internal/babel-preset.d.ts +2 -0
- package/internal/babel-preset.js +2 -0
- package/internal/install-global.d.ts +2 -0
- package/internal/install-global.js +5 -0
- package/internal/unstable-autolinking-exports.d.ts +2 -0
- package/internal/unstable-autolinking-exports.js +2 -0
- package/internal/unstable-expo-updates-cli-exports.d.ts +2 -0
- package/internal/unstable-expo-updates-cli-exports.js +2 -0
- package/ios/AppDelegates/ExpoAppDelegate.swift +1 -1
- package/ios/AppDelegates/ExpoReactNativeFactory.swift +15 -2
- package/ios/AppDelegates/ExpoReactNativeFactoryDelegate.swift +1 -1
- package/ios/AppDelegates/RCTAppDelegateUmbrella.h +5 -0
- package/ios/Fetch/ExpoFetchCustomExtension.swift +1 -1
- package/ios/Fetch/ExpoFetchModule.swift +3 -3
- package/ios/Fetch/ExpoURLSessionTask.swift +2 -2
- package/ios/Fetch/NativeRequest.swift +1 -1
- package/ios/Fetch/NativeResponse.swift +2 -2
- package/package.json +29 -27
- package/src/Expo.ts +4 -0
- package/src/async-require/fetchAsync.native.ts +48 -10
- package/src/async-require/hmr.ts +1 -2
- package/src/async-require/messageSocket.native.ts +0 -3
- package/src/winter/FormData.ts +1 -9
- package/src/winter/__tests__/structuredClone.test.ios.ts +27 -0
- package/src/winter/fetch/FetchResponse.ts +4 -4
- package/src/winter/fetch/NativeRequest.ts +1 -1
- package/src/winter/fetch/RequestUtils.ts +15 -1
- package/src/winter/fetch/__tests__/RequestUtils-test.ts +7 -7
- package/src/winter/fetch/__tests__/convertFormData-test.native.ts +1 -3
- package/src/winter/fetch/convertFormData.ts +56 -27
- package/src/winter/installGlobal.ts +109 -0
- package/src/winter/runtime.native.ts +4 -20
- package/template.tgz +0 -0
- package/build/devtools/DevToolsPluginClient.d.ts +0 -72
- package/build/devtools/DevToolsPluginClient.d.ts.map +0 -1
- package/build/devtools/DevToolsPluginClientFactory.d.ts +0 -16
- package/build/devtools/DevToolsPluginClientFactory.d.ts.map +0 -1
- package/build/devtools/DevToolsPluginClientImplApp.d.ts +0 -15
- package/build/devtools/DevToolsPluginClientImplApp.d.ts.map +0 -1
- package/build/devtools/DevToolsPluginClientImplBrowser.d.ts +0 -14
- package/build/devtools/DevToolsPluginClientImplBrowser.d.ts.map +0 -1
- package/build/devtools/MessageFramePacker.d.ts +0 -50
- package/build/devtools/MessageFramePacker.d.ts.map +0 -1
- package/build/devtools/ProtocolVersion.d.ts +0 -7
- package/build/devtools/ProtocolVersion.d.ts.map +0 -1
- package/build/devtools/WebSocketBackingStore.d.ts +0 -10
- package/build/devtools/WebSocketBackingStore.d.ts.map +0 -1
- package/build/devtools/WebSocketWithReconnect.d.ts +0 -81
- package/build/devtools/WebSocketWithReconnect.d.ts.map +0 -1
- package/build/devtools/devtools.types.d.ts +0 -42
- package/build/devtools/devtools.types.d.ts.map +0 -1
- package/build/devtools/getConnectionInfo.d.ts +0 -6
- package/build/devtools/getConnectionInfo.d.ts.map +0 -1
- package/build/devtools/getConnectionInfo.native.d.ts +0 -6
- package/build/devtools/getConnectionInfo.native.d.ts.map +0 -1
- package/build/devtools/index.d.ts +0 -12
- package/build/devtools/index.d.ts.map +0 -1
- package/build/devtools/logger.d.ts +0 -6
- package/build/devtools/logger.d.ts.map +0 -1
- package/src/devtools/DevToolsPluginClient.ts +0 -240
- package/src/devtools/DevToolsPluginClientFactory.ts +0 -73
- package/src/devtools/DevToolsPluginClientImplApp.ts +0 -56
- package/src/devtools/DevToolsPluginClientImplBrowser.ts +0 -38
- package/src/devtools/MessageFramePacker.ts +0 -235
- package/src/devtools/ProtocolVersion.ts +0 -6
- package/src/devtools/WebSocketBackingStore.ts +0 -10
- package/src/devtools/WebSocketWithReconnect.ts +0 -318
- package/src/devtools/__tests__/DevToolsPluginClient-test.ts +0 -285
- package/src/devtools/__tests__/DevToolsPluginClientFactory-test.ts +0 -120
- package/src/devtools/__tests__/MessageFramePack-test.node.ts +0 -157
- package/src/devtools/__tests__/MockWebSocket.ts +0 -100
- package/src/devtools/__tests__/WebSocketWithReconnect-test.node.ts +0 -184
- package/src/devtools/__tests__/logger-test.ts +0 -20
- package/src/devtools/devtools.types.ts +0 -50
- package/src/devtools/getConnectionInfo.native.ts +0 -18
- package/src/devtools/getConnectionInfo.ts +0 -16
- package/src/devtools/index.ts +0 -53
- package/src/devtools/logger.ts +0 -29
package/src/devtools/index.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { useState, useEffect } from 'react';
|
|
2
|
-
|
|
3
|
-
import { DevToolsPluginClient } from './DevToolsPluginClient';
|
|
4
|
-
import { getDevToolsPluginClientAsync } from './DevToolsPluginClientFactory';
|
|
5
|
-
import type { DevToolsPluginClientOptions } from './devtools.types';
|
|
6
|
-
|
|
7
|
-
export { getDevToolsPluginClientAsync, DevToolsPluginClient };
|
|
8
|
-
export type { DevToolsPluginClientOptions };
|
|
9
|
-
// Export the EventSubscription type if people need to use explicit type from `addMessageListener`
|
|
10
|
-
export type { EventSubscription } from './DevToolsPluginClient';
|
|
11
|
-
export { setEnableLogging } from './logger';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* A React hook to get the DevToolsPluginClient instance.
|
|
15
|
-
*/
|
|
16
|
-
export function useDevToolsPluginClient(
|
|
17
|
-
pluginName: string,
|
|
18
|
-
options?: DevToolsPluginClientOptions
|
|
19
|
-
): DevToolsPluginClient | null {
|
|
20
|
-
const [client, setClient] = useState<DevToolsPluginClient | null>(null);
|
|
21
|
-
const [error, setError] = useState<Error | null>(null);
|
|
22
|
-
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
async function setup() {
|
|
25
|
-
try {
|
|
26
|
-
const client = await getDevToolsPluginClientAsync(pluginName, options);
|
|
27
|
-
setClient(client);
|
|
28
|
-
} catch (e: any) {
|
|
29
|
-
setError(new Error('Failed to setup client from useDevToolsPluginClient: ' + e.toString()));
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
async function teardown() {
|
|
34
|
-
try {
|
|
35
|
-
await client?.closeAsync();
|
|
36
|
-
} catch (e: any) {
|
|
37
|
-
setError(
|
|
38
|
-
new Error('Failed to teardown client from useDevToolsPluginClient: ' + e.toString())
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
setup();
|
|
44
|
-
return () => {
|
|
45
|
-
teardown();
|
|
46
|
-
};
|
|
47
|
-
}, [pluginName]);
|
|
48
|
-
|
|
49
|
-
if (error != null) {
|
|
50
|
-
throw error;
|
|
51
|
-
}
|
|
52
|
-
return client;
|
|
53
|
-
}
|
package/src/devtools/logger.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
let enableLogging = false;
|
|
2
|
-
|
|
3
|
-
export function log(...params: Parameters<typeof console.log>) {
|
|
4
|
-
if (enableLogging) {
|
|
5
|
-
console.log(...params);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function debug(...params: Parameters<typeof console.debug>) {
|
|
10
|
-
if (enableLogging) {
|
|
11
|
-
console.debug(...params);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function info(...params: Parameters<typeof console.info>) {
|
|
16
|
-
if (enableLogging) {
|
|
17
|
-
console.info(...params);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export function warn(...params: Parameters<typeof console.info>) {
|
|
22
|
-
if (enableLogging) {
|
|
23
|
-
console.warn(...params);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export function setEnableLogging(enabled: boolean) {
|
|
28
|
-
enableLogging = enabled;
|
|
29
|
-
}
|