expo 54.0.0-canary-20250729-d8899ae → 54.0.0-preview.0

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 (74) 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 +8 -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/winter/installGlobal.d.ts +25 -0
  10. package/build/winter/installGlobal.d.ts.map +1 -0
  11. package/bundledNativeModules.json +94 -93
  12. package/devtools.d.ts +1 -1
  13. package/devtools.js +1 -1
  14. package/internal/babel-preset.d.ts +2 -0
  15. package/internal/babel-preset.js +2 -0
  16. package/internal/unstable-autolinking-exports.d.ts +2 -0
  17. package/internal/unstable-autolinking-exports.js +2 -0
  18. package/internal/unstable-expo-updates-cli-exports.d.ts +2 -0
  19. package/internal/unstable-expo-updates-cli-exports.js +2 -0
  20. package/ios/AppDelegates/ExpoReactNativeFactory.swift +1 -1
  21. package/ios/AppDelegates/ExpoReactNativeFactoryDelegate.swift +1 -1
  22. package/ios/AppDelegates/RCTAppDelegateUmbrella.h +5 -0
  23. package/package.json +27 -25
  24. package/src/Expo.ts +4 -0
  25. package/src/async-require/fetchAsync.native.ts +48 -10
  26. package/src/async-require/messageSocket.native.ts +0 -3
  27. package/src/winter/installGlobal.ts +109 -0
  28. package/src/winter/runtime.native.ts +1 -20
  29. package/template.tgz +0 -0
  30. package/build/devtools/DevToolsPluginClient.d.ts +0 -72
  31. package/build/devtools/DevToolsPluginClient.d.ts.map +0 -1
  32. package/build/devtools/DevToolsPluginClientFactory.d.ts +0 -16
  33. package/build/devtools/DevToolsPluginClientFactory.d.ts.map +0 -1
  34. package/build/devtools/DevToolsPluginClientImplApp.d.ts +0 -15
  35. package/build/devtools/DevToolsPluginClientImplApp.d.ts.map +0 -1
  36. package/build/devtools/DevToolsPluginClientImplBrowser.d.ts +0 -14
  37. package/build/devtools/DevToolsPluginClientImplBrowser.d.ts.map +0 -1
  38. package/build/devtools/MessageFramePacker.d.ts +0 -50
  39. package/build/devtools/MessageFramePacker.d.ts.map +0 -1
  40. package/build/devtools/ProtocolVersion.d.ts +0 -7
  41. package/build/devtools/ProtocolVersion.d.ts.map +0 -1
  42. package/build/devtools/WebSocketBackingStore.d.ts +0 -10
  43. package/build/devtools/WebSocketBackingStore.d.ts.map +0 -1
  44. package/build/devtools/WebSocketWithReconnect.d.ts +0 -81
  45. package/build/devtools/WebSocketWithReconnect.d.ts.map +0 -1
  46. package/build/devtools/devtools.types.d.ts +0 -42
  47. package/build/devtools/devtools.types.d.ts.map +0 -1
  48. package/build/devtools/getConnectionInfo.d.ts +0 -6
  49. package/build/devtools/getConnectionInfo.d.ts.map +0 -1
  50. package/build/devtools/getConnectionInfo.native.d.ts +0 -6
  51. package/build/devtools/getConnectionInfo.native.d.ts.map +0 -1
  52. package/build/devtools/index.d.ts +0 -12
  53. package/build/devtools/index.d.ts.map +0 -1
  54. package/build/devtools/logger.d.ts +0 -6
  55. package/build/devtools/logger.d.ts.map +0 -1
  56. package/src/devtools/DevToolsPluginClient.ts +0 -240
  57. package/src/devtools/DevToolsPluginClientFactory.ts +0 -73
  58. package/src/devtools/DevToolsPluginClientImplApp.ts +0 -56
  59. package/src/devtools/DevToolsPluginClientImplBrowser.ts +0 -38
  60. package/src/devtools/MessageFramePacker.ts +0 -235
  61. package/src/devtools/ProtocolVersion.ts +0 -6
  62. package/src/devtools/WebSocketBackingStore.ts +0 -10
  63. package/src/devtools/WebSocketWithReconnect.ts +0 -318
  64. package/src/devtools/__tests__/DevToolsPluginClient-test.ts +0 -285
  65. package/src/devtools/__tests__/DevToolsPluginClientFactory-test.ts +0 -120
  66. package/src/devtools/__tests__/MessageFramePack-test.node.ts +0 -157
  67. package/src/devtools/__tests__/MockWebSocket.ts +0 -100
  68. package/src/devtools/__tests__/WebSocketWithReconnect-test.node.ts +0 -184
  69. package/src/devtools/__tests__/logger-test.ts +0 -20
  70. package/src/devtools/devtools.types.ts +0 -50
  71. package/src/devtools/getConnectionInfo.native.ts +0 -18
  72. package/src/devtools/getConnectionInfo.ts +0 -16
  73. package/src/devtools/index.ts +0 -53
  74. 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
- }