react-native 0.84.0-rc.0 → 0.84.0-rc.1

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.
@@ -29,7 +29,7 @@ export default class ReactNativeVersion {
29
29
  static major: number = 0;
30
30
  static minor: number = 84;
31
31
  static patch: number = 0;
32
- static prerelease: string | null = 'rc.0';
32
+ static prerelease: string | null = 'rc.1';
33
33
 
34
34
  static getVersionString(): string {
35
35
  return `${this.major}.${this.minor}.${this.patch}${this.prerelease != null ? `-${this.prerelease}` : ''}`;
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(84),
26
26
  RCTVersionPatch: @(0),
27
- RCTVersionPrerelease: @"rc.0",
27
+ RCTVersionPrerelease: @"rc.1",
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.84.0-rc.0
1
+ VERSION_NAME=0.84.0-rc.1
2
2
  react.internal.publishingGroup=com.facebook.react
3
3
  react.internal.hermesPublishingGroup=com.facebook.hermes
4
4
 
@@ -15,6 +15,6 @@ public object ReactNativeVersion {
15
15
  "major" to 0,
16
16
  "minor" to 84,
17
17
  "patch" to 0,
18
- "prerelease" to "rc.0"
18
+ "prerelease" to "rc.1"
19
19
  )
20
20
  }
@@ -22,7 +22,7 @@ constexpr struct {
22
22
  int32_t Major = 0;
23
23
  int32_t Minor = 84;
24
24
  int32_t Patch = 0;
25
- std::string_view Prerelease = "rc.0";
25
+ std::string_view Prerelease = "rc.1";
26
26
  } ReactNativeVersion;
27
27
 
28
28
  } // namespace facebook::react
@@ -13,6 +13,8 @@
13
13
  #include <jsi/decorator.h>
14
14
  #include <jsinspector-modern/InspectorFlags.h>
15
15
 
16
+ #include <thread>
17
+
16
18
  #include <hermes/inspector-modern/chrome/HermesRuntimeTargetDelegate.h>
17
19
 
18
20
  #if defined(HERMES_ENABLE_DEBUGGER) && !defined(HERMES_V1_ENABLED)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.84.0-rc.0",
3
+ "version": "0.84.0-rc.1",
4
4
  "description": "A framework for building native apps using React",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "bugs": "https://github.com/facebook/react-native/issues",
23
23
  "engines": {
24
- "node": ">= 22.11.0"
24
+ "node": ">= 20.19.4"
25
25
  },
26
26
  "bin": {
27
27
  "react-native": "cli.js"
@@ -160,13 +160,13 @@
160
160
  },
161
161
  "dependencies": {
162
162
  "@jest/create-cache-key-function": "^29.7.0",
163
- "@react-native/assets-registry": "0.84.0-rc.0",
164
- "@react-native/codegen": "0.84.0-rc.0",
165
- "@react-native/community-cli-plugin": "0.84.0-rc.0",
166
- "@react-native/gradle-plugin": "0.84.0-rc.0",
167
- "@react-native/js-polyfills": "0.84.0-rc.0",
168
- "@react-native/normalize-colors": "0.84.0-rc.0",
169
- "@react-native/virtualized-lists": "0.84.0-rc.0",
163
+ "@react-native/assets-registry": "0.84.0-rc.1",
164
+ "@react-native/codegen": "0.84.0-rc.1",
165
+ "@react-native/community-cli-plugin": "0.84.0-rc.1",
166
+ "@react-native/gradle-plugin": "0.84.0-rc.1",
167
+ "@react-native/js-polyfills": "0.84.0-rc.1",
168
+ "@react-native/normalize-colors": "0.84.0-rc.1",
169
+ "@react-native/virtualized-lists": "0.84.0-rc.1",
170
170
  "abort-controller": "^3.0.0",
171
171
  "anser": "^1.4.9",
172
172
  "ansi-regex": "^5.0.0",
@@ -175,7 +175,7 @@
175
175
  "base64-js": "^1.5.1",
176
176
  "commander": "^12.0.0",
177
177
  "flow-enums-runtime": "^0.0.6",
178
- "hermes-compiler": "0.15.0",
178
+ "hermes-compiler": "250829098.0.6",
179
179
  "invariant": "^2.2.4",
180
180
  "jest-environment-node": "^29.7.0",
181
181
  "memoize-one": "^5.0.0",
@@ -92,6 +92,11 @@ def use_react_native! (
92
92
  # excluding the legacy arch unless the user turns this flag off explicitly.
93
93
  ENV['RCT_REMOVE_LEGACY_ARCH'] = ENV['RCT_REMOVE_LEGACY_ARCH'] == '0' ? '0' : '1'
94
94
 
95
+ # Enable Hermes V1 by default.
96
+ # Users can still turn it off and use legacy hermes by setting the RCT_HERMES_V1_ENABLED
97
+ # environment variable to '0'.
98
+ ENV['RCT_HERMES_V1_ENABLED']= ENV['RCT_HERMES_V1_ENABLED'] == '0' ? '0' : '1'
99
+
95
100
  ReactNativePodsUtils.check_minimum_required_xcode()
96
101
 
97
102
  # Current target definition is provided by Cocoapods and it refers to the target
@@ -1 +1 @@
1
- hermes-v250829098.0.5
1
+ hermes-v250829098.0.6
@@ -22,14 +22,15 @@ end
22
22
  package = JSON.parse(File.read(File.join(react_native_path, "package.json")))
23
23
  versionProperties = Hash[*File.read("version.properties").split(/[=\n]+/)]
24
24
 
25
- if ENV['RCT_HERMES_V1_ENABLED'] == "1"
26
- version = versionProperties['HERMES_V1_VERSION_NAME']
27
- else
25
+ if ENV['RCT_HERMES_V1_ENABLED'] == "0"
28
26
  version = versionProperties['HERMES_VERSION_NAME']
27
+ else
28
+ version = versionProperties['HERMES_V1_VERSION_NAME']
29
29
  end
30
30
 
31
31
  # Local monorepo build
32
- if package['version'] == "1000.0.0" then
32
+ # We don't want to build Hermes V1 from source
33
+ if ENV['RCT_HERMES_V1_ENABLED'] == "0" && package['version'] == "1000.0.0" then
33
34
  hermesCompilerVersion = package['dependencies']['hermes-compiler']
34
35
  if hermesCompilerVersion != "0.0.0" then
35
36
  version = hermesCompilerVersion
@@ -68,7 +69,15 @@ Pod::Spec.new do |spec|
68
69
 
69
70
  spec.subspec 'Pre-built' do |ss|
70
71
  ss.preserve_paths = ["destroot/bin/*"].concat(["**/*.{h,c,cpp}"])
71
- ss.source_files = "destroot/include/hermes/**/*.h"
72
+ if ENV["RCT_HERMES_V1_ENABLED"] == "0"
73
+ ss.source_files = "destroot/include/hermes/**/*.h"
74
+ else
75
+ # Hermes v1 is shipping a jsi/hermes.h header which is imported by the hermes.h header
76
+ # and that file is not present in React Native's JSI
77
+ # (see https://github.com/facebook/react-native/tree/main/packages/react-native/ReactCommon/jsi/jsi/ where there is
78
+ # hermes-interface.h but not hermes.h)
79
+ ss.source_files = ["destroot/include/hermes/**/*.h", "destroot/include/jsi/hermes.h"]
80
+ end
72
81
  ss.header_mappings_dir = "destroot/include"
73
82
  ss.ios.vendored_frameworks = "destroot/Library/Frameworks/universal/hermesvm.xcframework"
74
83
  ss.visionos.vendored_frameworks = "destroot/Library/Frameworks/universal/hermesvm.xcframework"
@@ -131,7 +140,7 @@ Pod::Spec.new do |spec|
131
140
  ss.header_dir = 'hermes/Public'
132
141
  end
133
142
 
134
- if ENV['RCT_HERMES_V1_ENABLED'] != "1"
143
+ if ENV['RCT_HERMES_V1_ENABLED'] == "0"
135
144
  spec.subspec 'inspector' do |ss|
136
145
  ss.source_files = ''
137
146
  ss.public_header_files = 'API/hermes/inspector/*.h'
@@ -86,7 +86,7 @@ def hermes_commit_envvar_defined()
86
86
  end
87
87
 
88
88
  def hermes_v1_enabled()
89
- return ENV['RCT_HERMES_V1_ENABLED'] == "1"
89
+ return ENV['RCT_HERMES_V1_ENABLED'] != "0"
90
90
  end
91
91
 
92
92
  def force_build_from_tag(react_native_path)
@@ -1,2 +1,2 @@
1
1
  HERMES_VERSION_NAME=0.15.0
2
- HERMES_V1_VERSION_NAME=250829098.0.5
2
+ HERMES_V1_VERSION_NAME=250829098.0.6