react-native-windows 0.79.0-preview.1 → 0.79.0-preview.2

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,5 +17,5 @@ export const version: $ReadOnly<{
17
17
  major: 0,
18
18
  minor: 79,
19
19
  patch: 0,
20
- prerelease: 'rc.0',
20
+ prerelease: 'rc.4',
21
21
  };
@@ -3,6 +3,7 @@
3
3
 
4
4
  #include "pch.h"
5
5
  #include "IReactModuleBuilder.h"
6
+ #include <IReactContext.h>
6
7
  #include <strsafe.h>
7
8
  #include "DynamicWriter.h"
8
9
  #include "ReactHost/MsoUtils.h"
@@ -159,6 +160,13 @@ std::unique_ptr<CxxModule> ReactModuleBuilder::MakeCxxModule(
159
160
  for (auto &initializer : m_initializers) {
160
161
  initializer(m_reactContext);
161
162
  }
163
+ for (auto &initializer : m_jsiinitializers) {
164
+ initializer(
165
+ m_reactContext,
166
+ winrt::get_self<winrt::Microsoft::ReactNative::implementation::ReactContext>(m_reactContext)
167
+ ->GetInner()
168
+ .JsiRuntime());
169
+ }
162
170
  return std::make_unique<ABICxxModule>(
163
171
  nativeModule, Mso::Copy(name), Mso::Copy(m_constantProviders), Mso::Copy(m_methods));
164
172
  }
@@ -10,11 +10,11 @@
10
10
  -->
11
11
  <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
12
12
  <PropertyGroup>
13
- <ReactNativeWindowsVersion>0.79.0-preview.1</ReactNativeWindowsVersion>
13
+ <ReactNativeWindowsVersion>0.79.0-preview.2</ReactNativeWindowsVersion>
14
14
  <ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
15
15
  <ReactNativeWindowsMinor>79</ReactNativeWindowsMinor>
16
16
  <ReactNativeWindowsPatch>0</ReactNativeWindowsPatch>
17
17
  <ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
18
- <ReactNativeWindowsCommitId>0dbeb12a208250e40ac14b05ef8e2420edc65567</ReactNativeWindowsCommitId>
18
+ <ReactNativeWindowsCommitId>790495ef2834251238da978ab3b4a120d4eed7ca</ReactNativeWindowsCommitId>
19
19
  </PropertyGroup>
20
20
  </Project>
@@ -7,6 +7,8 @@
7
7
 
8
8
  #pragma once
9
9
 
10
+ #ifdef __cplusplus
11
+
10
12
  #include <ReactCommon/RuntimeExecutor.h>
11
13
  #include <cxxreact/MessageQueueThread.h>
12
14
  #include <jsinspector-modern/ConsoleMessage.h>
@@ -85,3 +87,5 @@ class JSIRuntimeHolder : public JSRuntime {
85
87
  };
86
88
 
87
89
  } // namespace facebook::react
90
+
91
+ #endif // __cplusplus
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.79.0-preview.1",
3
+ "version": "0.79.0-preview.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,13 +28,13 @@
28
28
  "@react-native-community/cli-platform-ios": "15.0.0-alpha.2",
29
29
  "@react-native-windows/cli": "0.79.0-preview.1",
30
30
  "@react-native/assets": "1.0.0",
31
- "@react-native/assets-registry": "0.79.0-rc.0",
32
- "@react-native/codegen": "0.79.0-rc.0",
33
- "@react-native/community-cli-plugin": "0.79.0-rc.0",
34
- "@react-native/gradle-plugin": "0.79.0-rc.0",
35
- "@react-native/js-polyfills": "0.79.0-rc.0",
36
- "@react-native/normalize-colors": "0.79.0-rc.0",
37
- "@react-native/virtualized-lists": "0.79.0-rc.0",
31
+ "@react-native/assets-registry": "0.79.0-rc.4",
32
+ "@react-native/codegen": "0.79.0-rc.4",
33
+ "@react-native/community-cli-plugin": "0.79.0-rc.4",
34
+ "@react-native/gradle-plugin": "0.79.0-rc.4",
35
+ "@react-native/js-polyfills": "0.79.0-rc.4",
36
+ "@react-native/normalize-colors": "0.79.0-rc.4",
37
+ "@react-native/virtualized-lists": "0.79.0-rc.4",
38
38
  "abort-controller": "^3.0.0",
39
39
  "anser": "^1.4.9",
40
40
  "ansi-regex": "^5.0.0",
@@ -49,8 +49,8 @@
49
49
  "invariant": "^2.2.4",
50
50
  "jest-environment-node": "^29.7.0",
51
51
  "memoize-one": "^5.0.0",
52
- "metro-runtime": "^0.81.0",
53
- "metro-source-map": "^0.81.0",
52
+ "metro-runtime": "^0.82.0",
53
+ "metro-source-map": "^0.82.0",
54
54
  "mkdirp": "^0.5.1",
55
55
  "nullthrows": "^1.1.1",
56
56
  "pretty-format": "^29.7.0",
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "devDependencies": {
70
70
  "@react-native-windows/codegen": "0.79.0-preview.1",
71
- "@react-native/metro-config": "0.79.0-rc.0",
71
+ "@react-native/metro-config": "0.79.0-rc.4",
72
72
  "@rnw-scripts/babel-react-native-config": "0.0.0",
73
73
  "@rnw-scripts/eslint-config": "1.2.36",
74
74
  "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.40",
@@ -83,7 +83,7 @@
83
83
  "just-scripts": "^1.3.3",
84
84
  "prettier": "2.8.8",
85
85
  "react": "19.0.0",
86
- "react-native": "0.79.0-rc.0",
86
+ "react-native": "0.79.0-rc.4",
87
87
  "react-native-platform-override": "^1.9.55",
88
88
  "react-refresh": "^0.14.0",
89
89
  "typescript": "5.0.4"
@@ -91,7 +91,7 @@
91
91
  "peerDependencies": {
92
92
  "@types/react": "^19.0.0",
93
93
  "react": "^19.0.0",
94
- "react-native": "0.79.0-rc.0"
94
+ "react-native": "0.79.0-rc.4"
95
95
  },
96
96
  "beachball": {
97
97
  "defaultNpmTag": "preview",