From 96a88cf44eb65126a360eb72b269fe0fea225b8c Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Fri, 26 Jun 2026 12:30:42 -0700 Subject: [PATCH] chore(0.81): reset versions to 0.81.7 and add Nx patch release plan Align react-native-macos and @react-native-macos/virtualized-lists to the latest published 0.81.x version so local tarball installs and init tests don't request an unpublished package version.\n\nAlso add an Nx version plan to drive the next 0.81 patch release through the documented release flow.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .nx/version-plans/version-plan-1782502176179.md | 5 +++++ .../react-native/Libraries/Core/ReactNativeVersion.js | 2 +- packages/react-native/React/Base/RCTVersion.m | 2 +- packages/react-native/ReactAndroid/gradle.properties | 2 +- .../react/modules/systeminfo/ReactNativeVersion.kt | 2 +- .../ReactCommon/cxxreact/ReactNativeVersion.h | 4 ++-- packages/react-native/package.json | 4 ++-- .../generate-artifacts-executor-test.js.snap | 8 ++++---- packages/virtualized-lists/package.json | 2 +- yarn.lock | 4 ++-- 10 files changed, 20 insertions(+), 15 deletions(-) create mode 100644 .nx/version-plans/version-plan-1782502176179.md diff --git a/.nx/version-plans/version-plan-1782502176179.md b/.nx/version-plans/version-plan-1782502176179.md new file mode 100644 index 000000000000..9288d80fb37e --- /dev/null +++ b/.nx/version-plans/version-plan-1782502176179.md @@ -0,0 +1,5 @@ +--- +__default__: patch +--- + +0.81 patch release: recover from unpublished 0.81.8 and align virtualized-lists versions diff --git a/packages/react-native/Libraries/Core/ReactNativeVersion.js b/packages/react-native/Libraries/Core/ReactNativeVersion.js index e42b5fa2c830..85bd1d032600 100644 --- a/packages/react-native/Libraries/Core/ReactNativeVersion.js +++ b/packages/react-native/Libraries/Core/ReactNativeVersion.js @@ -17,6 +17,6 @@ export const version: $ReadOnly<{ }> = { major: 0, minor: 81, - patch: 8, + patch: 7, prerelease: null, }; diff --git a/packages/react-native/React/Base/RCTVersion.m b/packages/react-native/React/Base/RCTVersion.m index c8c5808fc4a4..696ab3a5ef8b 100644 --- a/packages/react-native/React/Base/RCTVersion.m +++ b/packages/react-native/React/Base/RCTVersion.m @@ -23,7 +23,7 @@ __rnVersion = @{ RCTVersionMajor: @(0), RCTVersionMinor: @(81), - RCTVersionPatch: @(8), + RCTVersionPatch: @(7), RCTVersionPrerelease: [NSNull null], }; }); diff --git a/packages/react-native/ReactAndroid/gradle.properties b/packages/react-native/ReactAndroid/gradle.properties index 0e2903fa97e7..25d9d6fffce1 100644 --- a/packages/react-native/ReactAndroid/gradle.properties +++ b/packages/react-native/ReactAndroid/gradle.properties @@ -1,4 +1,4 @@ -VERSION_NAME=0.81.8 +VERSION_NAME=0.81.7 react.internal.publishingGroup=com.facebook.react android.useAndroidX=true diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt index 3ae90d61845f..59baf7b66929 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt @@ -14,7 +14,7 @@ public object ReactNativeVersion { public val VERSION: Map = mapOf( "major" to 0, "minor" to 81, - "patch" to 8, + "patch" to 7, "prerelease" to null ) } diff --git a/packages/react-native/ReactCommon/cxxreact/ReactNativeVersion.h b/packages/react-native/ReactCommon/cxxreact/ReactNativeVersion.h index 8acebda549ed..f4384232195f 100644 --- a/packages/react-native/ReactCommon/cxxreact/ReactNativeVersion.h +++ b/packages/react-native/ReactCommon/cxxreact/ReactNativeVersion.h @@ -14,14 +14,14 @@ #define REACT_NATIVE_VERSION_MAJOR 0 #define REACT_NATIVE_VERSION_MINOR 81 -#define REACT_NATIVE_VERSION_PATCH 8 +#define REACT_NATIVE_VERSION_PATCH 7 namespace facebook::react { constexpr struct { int32_t Major = 0; int32_t Minor = 81; - int32_t Patch = 8; + int32_t Patch = 7; std::string_view Prerelease = ""; } ReactNativeVersion; diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 75ce10d7e375..5343fa6ad6c1 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -1,6 +1,6 @@ { "name": "react-native-macos", - "version": "0.81.8", + "version": "0.81.7", "description": "React Native for macOS", "license": "MIT", "repository": { @@ -187,7 +187,7 @@ }, "dependencies": { "@jest/create-cache-key-function": "^29.7.0", - "@react-native-macos/virtualized-lists": "0.81.8", + "@react-native-macos/virtualized-lists": "0.81.7", "@react-native/assets-registry": "0.81.6", "@react-native/codegen": "0.81.6", "@react-native/community-cli-plugin": "0.81.6", diff --git a/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap b/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap index 0b969d0e2b89..b18e80e5a4c6 100644 --- a/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap +++ b/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap @@ -361,7 +361,7 @@ exports[`execute test-app "ReactAppDependencyProvider.podspec" should match snap # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -version = \\"0.81.8\\" +version = \\"0.81.7\\" source = { :git => 'https://github.com/facebook/react-native.git' } if version == '1000.0.0' # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in. @@ -399,7 +399,7 @@ exports[`execute test-app "ReactCodegen.podspec" should match snapshot 1`] = ` # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -version = \\"0.81.8\\" +version = \\"0.81.7\\" source = { :git => 'https://github.com/facebook/react-native.git' } if version == '1000.0.0' # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in. @@ -840,7 +840,7 @@ exports[`execute test-app-legacy "ReactAppDependencyProvider.podspec" should mat # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -version = \\"0.81.8\\" +version = \\"0.81.7\\" source = { :git => 'https://github.com/facebook/react-native.git' } if version == '1000.0.0' # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in. @@ -878,7 +878,7 @@ exports[`execute test-app-legacy "ReactCodegen.podspec" should match snapshot 1` # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -version = \\"0.81.8\\" +version = \\"0.81.7\\" source = { :git => 'https://github.com/facebook/react-native.git' } if version == '1000.0.0' # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in. diff --git a/packages/virtualized-lists/package.json b/packages/virtualized-lists/package.json index e122d2e750a6..7c38d6bc294e 100644 --- a/packages/virtualized-lists/package.json +++ b/packages/virtualized-lists/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-macos/virtualized-lists", - "version": "0.81.8", + "version": "0.81.7", "description": "Virtualized lists for React Native macOS.", "license": "MIT", "repository": { diff --git a/yarn.lock b/yarn.lock index 1990c60cf3a5..79d8d6f08ab8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3283,7 +3283,7 @@ __metadata: languageName: unknown linkType: soft -"@react-native-macos/virtualized-lists@npm:0.81.8, @react-native-macos/virtualized-lists@workspace:packages/virtualized-lists": +"@react-native-macos/virtualized-lists@npm:0.81.7, @react-native-macos/virtualized-lists@workspace:packages/virtualized-lists": version: 0.0.0-use.local resolution: "@react-native-macos/virtualized-lists@workspace:packages/virtualized-lists" dependencies: @@ -12309,7 +12309,7 @@ __metadata: resolution: "react-native-macos@workspace:packages/react-native" dependencies: "@jest/create-cache-key-function": "npm:^29.7.0" - "@react-native-macos/virtualized-lists": "npm:0.81.8" + "@react-native-macos/virtualized-lists": "npm:0.81.7" "@react-native/assets-registry": "npm:0.81.6" "@react-native/codegen": "npm:0.81.6" "@react-native/community-cli-plugin": "npm:0.81.6"