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.
Files changed (99) hide show
  1. package/android/build.gradle +2 -2
  2. package/android/src/main/java/expo/modules/ExpoReactHostFactory.kt +1 -7
  3. package/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt +33 -8
  4. package/android/src/main/java/expo/modules/ReactNativeHostWrapper.kt +0 -5
  5. package/android/src/test/resources/robolectric.properties +1 -0
  6. package/build/Expo.d.ts +9 -1
  7. package/build/Expo.d.ts.map +1 -1
  8. package/build/async-require/fetchAsync.native.d.ts.map +1 -1
  9. package/build/async-require/hmr.d.ts.map +1 -1
  10. package/build/winter/FormData.d.ts.map +1 -1
  11. package/build/winter/fetch/FetchResponse.d.ts +2 -2
  12. package/build/winter/fetch/FetchResponse.d.ts.map +1 -1
  13. package/build/winter/fetch/NativeRequest.d.ts +1 -1
  14. package/build/winter/fetch/NativeRequest.d.ts.map +1 -1
  15. package/build/winter/fetch/RequestUtils.d.ts.map +1 -1
  16. package/build/winter/fetch/convertFormData.d.ts.map +1 -1
  17. package/build/winter/installGlobal.d.ts +25 -0
  18. package/build/winter/installGlobal.d.ts.map +1 -0
  19. package/bundledNativeModules.json +97 -96
  20. package/devtools.d.ts +1 -1
  21. package/devtools.js +1 -1
  22. package/internal/babel-preset.d.ts +2 -0
  23. package/internal/babel-preset.js +2 -0
  24. package/internal/install-global.d.ts +2 -0
  25. package/internal/install-global.js +5 -0
  26. package/internal/unstable-autolinking-exports.d.ts +2 -0
  27. package/internal/unstable-autolinking-exports.js +2 -0
  28. package/internal/unstable-expo-updates-cli-exports.d.ts +2 -0
  29. package/internal/unstable-expo-updates-cli-exports.js +2 -0
  30. package/ios/AppDelegates/ExpoAppDelegate.swift +1 -1
  31. package/ios/AppDelegates/ExpoReactNativeFactory.swift +15 -2
  32. package/ios/AppDelegates/ExpoReactNativeFactoryDelegate.swift +1 -1
  33. package/ios/AppDelegates/RCTAppDelegateUmbrella.h +5 -0
  34. package/ios/Fetch/ExpoFetchCustomExtension.swift +1 -1
  35. package/ios/Fetch/ExpoFetchModule.swift +3 -3
  36. package/ios/Fetch/ExpoURLSessionTask.swift +2 -2
  37. package/ios/Fetch/NativeRequest.swift +1 -1
  38. package/ios/Fetch/NativeResponse.swift +2 -2
  39. package/package.json +29 -27
  40. package/src/Expo.ts +4 -0
  41. package/src/async-require/fetchAsync.native.ts +48 -10
  42. package/src/async-require/hmr.ts +1 -2
  43. package/src/async-require/messageSocket.native.ts +0 -3
  44. package/src/winter/FormData.ts +1 -9
  45. package/src/winter/__tests__/structuredClone.test.ios.ts +27 -0
  46. package/src/winter/fetch/FetchResponse.ts +4 -4
  47. package/src/winter/fetch/NativeRequest.ts +1 -1
  48. package/src/winter/fetch/RequestUtils.ts +15 -1
  49. package/src/winter/fetch/__tests__/RequestUtils-test.ts +7 -7
  50. package/src/winter/fetch/__tests__/convertFormData-test.native.ts +1 -3
  51. package/src/winter/fetch/convertFormData.ts +56 -27
  52. package/src/winter/installGlobal.ts +109 -0
  53. package/src/winter/runtime.native.ts +4 -20
  54. package/template.tgz +0 -0
  55. package/build/devtools/DevToolsPluginClient.d.ts +0 -72
  56. package/build/devtools/DevToolsPluginClient.d.ts.map +0 -1
  57. package/build/devtools/DevToolsPluginClientFactory.d.ts +0 -16
  58. package/build/devtools/DevToolsPluginClientFactory.d.ts.map +0 -1
  59. package/build/devtools/DevToolsPluginClientImplApp.d.ts +0 -15
  60. package/build/devtools/DevToolsPluginClientImplApp.d.ts.map +0 -1
  61. package/build/devtools/DevToolsPluginClientImplBrowser.d.ts +0 -14
  62. package/build/devtools/DevToolsPluginClientImplBrowser.d.ts.map +0 -1
  63. package/build/devtools/MessageFramePacker.d.ts +0 -50
  64. package/build/devtools/MessageFramePacker.d.ts.map +0 -1
  65. package/build/devtools/ProtocolVersion.d.ts +0 -7
  66. package/build/devtools/ProtocolVersion.d.ts.map +0 -1
  67. package/build/devtools/WebSocketBackingStore.d.ts +0 -10
  68. package/build/devtools/WebSocketBackingStore.d.ts.map +0 -1
  69. package/build/devtools/WebSocketWithReconnect.d.ts +0 -81
  70. package/build/devtools/WebSocketWithReconnect.d.ts.map +0 -1
  71. package/build/devtools/devtools.types.d.ts +0 -42
  72. package/build/devtools/devtools.types.d.ts.map +0 -1
  73. package/build/devtools/getConnectionInfo.d.ts +0 -6
  74. package/build/devtools/getConnectionInfo.d.ts.map +0 -1
  75. package/build/devtools/getConnectionInfo.native.d.ts +0 -6
  76. package/build/devtools/getConnectionInfo.native.d.ts.map +0 -1
  77. package/build/devtools/index.d.ts +0 -12
  78. package/build/devtools/index.d.ts.map +0 -1
  79. package/build/devtools/logger.d.ts +0 -6
  80. package/build/devtools/logger.d.ts.map +0 -1
  81. package/src/devtools/DevToolsPluginClient.ts +0 -240
  82. package/src/devtools/DevToolsPluginClientFactory.ts +0 -73
  83. package/src/devtools/DevToolsPluginClientImplApp.ts +0 -56
  84. package/src/devtools/DevToolsPluginClientImplBrowser.ts +0 -38
  85. package/src/devtools/MessageFramePacker.ts +0 -235
  86. package/src/devtools/ProtocolVersion.ts +0 -6
  87. package/src/devtools/WebSocketBackingStore.ts +0 -10
  88. package/src/devtools/WebSocketWithReconnect.ts +0 -318
  89. package/src/devtools/__tests__/DevToolsPluginClient-test.ts +0 -285
  90. package/src/devtools/__tests__/DevToolsPluginClientFactory-test.ts +0 -120
  91. package/src/devtools/__tests__/MessageFramePack-test.node.ts +0 -157
  92. package/src/devtools/__tests__/MockWebSocket.ts +0 -100
  93. package/src/devtools/__tests__/WebSocketWithReconnect-test.node.ts +0 -184
  94. package/src/devtools/__tests__/logger-test.ts +0 -20
  95. package/src/devtools/devtools.types.ts +0 -50
  96. package/src/devtools/getConnectionInfo.native.ts +0 -18
  97. package/src/devtools/getConnectionInfo.ts +0 -16
  98. package/src/devtools/index.ts +0 -53
  99. package/src/devtools/logger.ts +0 -29
@@ -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
- }
@@ -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
- }