react-native-windows 0.78.0-preview.4 → 0.78.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.
@@ -17,7 +17,7 @@ const version: $ReadOnly<{
17
17
  major: 0,
18
18
  minor: 78,
19
19
  patch: 0,
20
- prerelease: 'rc.4',
20
+ prerelease: null,
21
21
  };
22
22
 
23
23
  module.exports = {version};
@@ -42,9 +42,8 @@ if (__DEV__) {
42
42
  if (!Platform.isTesting) {
43
43
  const HMRClient = require('../Utilities/HMRClient');
44
44
 
45
- if (global.__FUSEBOX_HAS_FULL_CONSOLE_SUPPORT__) {
46
- HMRClient.unstable_notifyFuseboxConsoleEnabled();
47
- } else if (console._isPolyfilled) {
45
+ // TODO(T214991636): Remove legacy Metro log forwarding
46
+ if (console._isPolyfilled) {
48
47
  // We assume full control over the console and send JavaScript logs to Metro.
49
48
  [
50
49
  'trace',
@@ -26,7 +26,6 @@ let hmrUnavailableReason: string | null = null;
26
26
  let currentCompileErrorMessage: string | null = null;
27
27
  let didConnect: boolean = false;
28
28
  let pendingLogs: Array<[LogLevel, $ReadOnlyArray<mixed>]> = [];
29
- let pendingFuseboxConsoleNotification = false;
30
29
 
31
30
  type LogLevel =
32
31
  | 'trace'
@@ -52,7 +51,6 @@ export type HMRClientNativeInterface = {|
52
51
  isEnabled: boolean,
53
52
  scheme?: string,
54
53
  ): void,
55
- unstable_notifyFuseboxConsoleEnabled(): void,
56
54
  |};
57
55
 
58
56
  /**
@@ -142,29 +140,6 @@ const HMRClient: HMRClientNativeInterface = {
142
140
  }
143
141
  },
144
142
 
145
- unstable_notifyFuseboxConsoleEnabled() {
146
- if (!hmrClient) {
147
- pendingFuseboxConsoleNotification = true;
148
- return;
149
- }
150
- hmrClient.send(
151
- JSON.stringify({
152
- type: 'log',
153
- level: 'info',
154
- data: [
155
- '\n' +
156
- '\u001B[7m' +
157
- ' \u001B[1m💡 JavaScript logs have moved!\u001B[22m They can now be ' +
158
- 'viewed in React Native DevTools. Tip: Type \u001B[1mj\u001B[22m in ' +
159
- 'the terminal to open (requires Google Chrome or Microsoft Edge).' +
160
- '\u001B[27m' +
161
- '\n',
162
- ],
163
- }),
164
- );
165
- pendingFuseboxConsoleNotification = false;
166
- },
167
-
168
143
  // Called once by the bridge on startup, even if Fast Refresh is off.
169
144
  // It creates the HMR client but doesn't actually set up the socket yet.
170
145
  setup(
@@ -341,9 +316,6 @@ function flushEarlyLogs(client: MetroHMRClient) {
341
316
  pendingLogs.forEach(([level, data]) => {
342
317
  HMRClient.log(level, data);
343
318
  });
344
- if (pendingFuseboxConsoleNotification) {
345
- HMRClient.unstable_notifyFuseboxConsoleEnabled();
346
- }
347
319
  } finally {
348
320
  pendingLogs.length = 0;
349
321
  }
@@ -25,7 +25,6 @@ const HMRClientProdShim: HMRClientNativeInterface = {
25
25
  disable() {},
26
26
  registerBundle() {},
27
27
  log() {},
28
- unstable_notifyFuseboxConsoleEnabled() {},
29
28
  };
30
29
 
31
30
  module.exports = HMRClientProdShim;
@@ -0,0 +1,58 @@
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ #pragma once
9
+
10
+ #include <react/bridging/Base.h>
11
+
12
+ namespace facebook::react {
13
+
14
+ template <>
15
+ struct Bridging<double> {
16
+ static double fromJs(jsi::Runtime&, const jsi::Value& value) {
17
+ return value.asNumber();
18
+ }
19
+
20
+ static jsi::Value toJs(jsi::Runtime&, double value) {
21
+ return value;
22
+ }
23
+ };
24
+
25
+ template <>
26
+ struct Bridging<float> {
27
+ static float fromJs(jsi::Runtime&, const jsi::Value& value) {
28
+ return (float)value.asNumber();
29
+ }
30
+
31
+ static jsi::Value toJs(jsi::Runtime&, float value) {
32
+ return (double)value;
33
+ }
34
+ };
35
+
36
+ template <>
37
+ struct Bridging<int32_t> {
38
+ static int32_t fromJs(jsi::Runtime&, const jsi::Value& value) {
39
+ return (int32_t)value.asNumber();
40
+ }
41
+
42
+ static jsi::Value toJs(jsi::Runtime&, int32_t value) {
43
+ return value;
44
+ }
45
+ };
46
+
47
+ template <>
48
+ struct Bridging<uint32_t> {
49
+ static uint32_t fromJs(jsi::Runtime&, const jsi::Value& value) {
50
+ return (uint32_t)value.asNumber();
51
+ }
52
+
53
+ static jsi::Value toJs(jsi::Runtime&, uint32_t value) {
54
+ return (double)value;
55
+ }
56
+ };
57
+
58
+ } // namespace facebook::react
@@ -10,11 +10,11 @@
10
10
  -->
11
11
  <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
12
12
  <PropertyGroup>
13
- <ReactNativeWindowsVersion>0.78.0-preview.4</ReactNativeWindowsVersion>
13
+ <ReactNativeWindowsVersion>0.78.0</ReactNativeWindowsVersion>
14
14
  <ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
15
15
  <ReactNativeWindowsMinor>78</ReactNativeWindowsMinor>
16
16
  <ReactNativeWindowsPatch>0</ReactNativeWindowsPatch>
17
17
  <ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
18
- <ReactNativeWindowsCommitId>de0074f7cf70b480a11e1a982f6bee71a673d489</ReactNativeWindowsCommitId>
18
+ <ReactNativeWindowsCommitId>d95e94bc8cf9b1d04e4c7c608ef009fcd4852423</ReactNativeWindowsCommitId>
19
19
  </PropertyGroup>
20
20
  </Project>
@@ -108,6 +108,7 @@ Copy-Item -Force -Path $ReactNativeRoot\ReactCommon\react\bridging\Convert.h -De
108
108
  Copy-Item -Force -Path $ReactNativeRoot\ReactCommon\react\bridging\Error.h -Destination $MSRNCxxTargetRoot\ReactCommon\react\bridging\
109
109
  Copy-Item -Force -Path $ReactNativeRoot\ReactCommon\react\bridging\EventEmitter.h -Destination $MSRNCxxTargetRoot\ReactCommon\react\bridging\
110
110
  Copy-Item -Force -Path $ReactNativeRoot\ReactCommon\react\bridging\Function.h -Destination $MSRNCxxTargetRoot\ReactCommon\react\bridging\
111
+ Copy-Item -Force -Path $ReactNativeRoot\ReactCommon\react\bridging\Number.h -Destination $MSRNCxxTargetRoot\ReactCommon\react\bridging\
111
112
  Copy-Item -Force -Path $ReactNativeRoot\ReactCommon\react\bridging\LongLivedObject.cpp -Destination $MSRNCxxTargetRoot\ReactCommon\react\bridging\
112
113
  Copy-Item -Force -Path $ReactNativeRoot\ReactCommon\react\bridging\LongLivedObject.h -Destination $MSRNCxxTargetRoot\ReactCommon\react\bridging\
113
114
  Copy-Item -Force -Path $ReactNativeRoot\ReactCommon\react\bridging\Object.h -Destination $MSRNCxxTargetRoot\ReactCommon\react\bridging\
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.78.0-preview.4",
3
+ "version": "0.78.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,15 +26,15 @@
26
26
  "@react-native-community/cli": "15.0.0-alpha.2",
27
27
  "@react-native-community/cli-platform-android": "15.0.0-alpha.2",
28
28
  "@react-native-community/cli-platform-ios": "15.0.0-alpha.2",
29
- "@react-native-windows/cli": "0.78.0-preview.1",
29
+ "@react-native-windows/cli": "0.78.0",
30
30
  "@react-native/assets": "1.0.0",
31
- "@react-native/assets-registry": "0.78.0-rc.4",
32
- "@react-native/codegen": "0.78.0-rc.4",
33
- "@react-native/community-cli-plugin": "0.78.0-rc.4",
34
- "@react-native/gradle-plugin": "0.78.0-rc.4",
35
- "@react-native/js-polyfills": "0.78.0-rc.4",
36
- "@react-native/normalize-colors": "0.78.0-rc.4",
37
- "@react-native/virtualized-lists": "0.78.0-rc.4",
31
+ "@react-native/assets-registry": "0.78.0",
32
+ "@react-native/codegen": "0.78.0",
33
+ "@react-native/community-cli-plugin": "0.78.0",
34
+ "@react-native/gradle-plugin": "0.78.0",
35
+ "@react-native/js-polyfills": "0.78.0",
36
+ "@react-native/normalize-colors": "0.78.0",
37
+ "@react-native/virtualized-lists": "0.78.0",
38
38
  "abort-controller": "^3.0.0",
39
39
  "anser": "^1.4.9",
40
40
  "ansi-regex": "^5.0.0",
@@ -68,7 +68,7 @@
68
68
  "yargs": "^17.6.2"
69
69
  },
70
70
  "devDependencies": {
71
- "@react-native-windows/codegen": "0.78.0-preview.1",
71
+ "@react-native-windows/codegen": "0.78.0",
72
72
  "@react-native/metro-config": "0.78.0-nightly-20241231-a3c8e2137",
73
73
  "@rnw-scripts/babel-react-native-config": "0.0.0",
74
74
  "@rnw-scripts/eslint-config": "1.2.32",
@@ -84,7 +84,7 @@
84
84
  "just-scripts": "^1.3.3",
85
85
  "prettier": "2.8.8",
86
86
  "react": "19.0.0",
87
- "react-native": "0.78.0-rc.4",
87
+ "react-native": "0.78.0",
88
88
  "react-native-platform-override": "^1.9.51",
89
89
  "react-refresh": "^0.14.0",
90
90
  "typescript": "5.0.4"
@@ -92,14 +92,14 @@
92
92
  "peerDependencies": {
93
93
  "@types/react": "^19.0.0",
94
94
  "react": "^19.0.0",
95
- "react-native": "0.78.0-rc.4"
95
+ "react-native": "^0.78.0"
96
96
  },
97
97
  "beachball": {
98
- "defaultNpmTag": "preview",
98
+ "defaultNpmTag": "latest",
99
99
  "disallowedChangeTypes": [
100
100
  "major",
101
101
  "minor",
102
- "patch",
102
+ "prerelease",
103
103
  "premajor",
104
104
  "preminor",
105
105
  "prepatch"