diff --git a/package.json b/package.json index d474a1a70ac7b4..38d682d3a58ef6 100644 --- a/package.json +++ b/package.json @@ -48,8 +48,8 @@ "@babel/preset-flow": "^7.24.7", "@definitelytyped/dtslint": "^0.0.127", "@jest/create-cache-key-function": "^29.6.3", - "@react-native/metro-babel-transformer": "0.77.0-main", - "@react-native/metro-config": "0.77.0-main", + "@react-native/metro-babel-transformer": "0.77.0-rc.0", + "@react-native/metro-config": "0.77.0-rc.0", "@tsconfig/node18": "1.0.1", "@types/react": "^18.2.6", "@typescript-eslint/parser": "^7.1.1", diff --git a/packages/assets/package.json b/packages/assets/package.json index 07f15969ba657f..4594be867ff601 100644 --- a/packages/assets/package.json +++ b/packages/assets/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/assets-registry", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "Asset support code for React Native.", "license": "MIT", "repository": { diff --git a/packages/babel-plugin-codegen/package.json b/packages/babel-plugin-codegen/package.json index 98924cb4aae7c5..ed0fbc775a6a1d 100644 --- a/packages/babel-plugin-codegen/package.json +++ b/packages/babel-plugin-codegen/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/babel-plugin-codegen", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "Babel plugin to generate native module and view manager code for React Native.", "license": "MIT", "repository": { @@ -26,7 +26,7 @@ ], "dependencies": { "@babel/traverse": "^7.25.3", - "@react-native/codegen": "0.77.0-main" + "@react-native/codegen": "0.77.0-rc.0" }, "devDependencies": { "@babel/core": "^7.25.2" diff --git a/packages/community-cli-plugin/package.json b/packages/community-cli-plugin/package.json index 429c8ea59da5d8..3b29dd0ce08203 100644 --- a/packages/community-cli-plugin/package.json +++ b/packages/community-cli-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/community-cli-plugin", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "Core CLI commands for React Native", "keywords": [ "react-native", @@ -22,8 +22,8 @@ "dist" ], "dependencies": { - "@react-native/dev-middleware": "0.77.0-main", - "@react-native/metro-babel-transformer": "0.77.0-main", + "@react-native/dev-middleware": "0.77.0-rc.0", + "@react-native/metro-babel-transformer": "0.77.0-rc.0", "chalk": "^4.0.0", "debug": "^2.2.0", "invariant": "^2.2.4", diff --git a/packages/core-cli-utils/package.json b/packages/core-cli-utils/package.json index 99f098a80e8e04..ed538747081093 100644 --- a/packages/core-cli-utils/package.json +++ b/packages/core-cli-utils/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/core-cli-utils", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "React Native CLI library for Frameworks to build on", "license": "MIT", "main": "./src/index.flow.js", diff --git a/packages/debugger-frontend/package.json b/packages/debugger-frontend/package.json index 03ca64cf90e151..61da146bf22b17 100644 --- a/packages/debugger-frontend/package.json +++ b/packages/debugger-frontend/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/debugger-frontend", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "Debugger frontend for React Native based on Chrome DevTools", "keywords": [ "react-native", diff --git a/packages/dev-middleware/package.json b/packages/dev-middleware/package.json index 3dfde88432fe5b..ac3fd598f1de78 100644 --- a/packages/dev-middleware/package.json +++ b/packages/dev-middleware/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/dev-middleware", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "Dev server middleware for React Native", "keywords": [ "react-native", @@ -23,7 +23,7 @@ ], "dependencies": { "@isaacs/ttlcache": "^1.4.1", - "@react-native/debugger-frontend": "0.77.0-main", + "@react-native/debugger-frontend": "0.77.0-rc.0", "chrome-launcher": "^0.15.2", "chromium-edge-launcher": "^0.2.0", "connect": "^3.6.5", diff --git a/packages/eslint-config-react-native/package.json b/packages/eslint-config-react-native/package.json index a1aee9ed4437d2..0e78fe9b57a5fb 100644 --- a/packages/eslint-config-react-native/package.json +++ b/packages/eslint-config-react-native/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/eslint-config", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "ESLint config for React Native", "license": "MIT", "repository": { @@ -22,7 +22,7 @@ "dependencies": { "@babel/core": "^7.25.2", "@babel/eslint-parser": "^7.25.1", - "@react-native/eslint-plugin": "0.77.0-main", + "@react-native/eslint-plugin": "0.77.0-rc.0", "@typescript-eslint/eslint-plugin": "^7.1.1", "@typescript-eslint/parser": "^7.1.1", "eslint-config-prettier": "^8.5.0", diff --git a/packages/eslint-plugin-react-native/package.json b/packages/eslint-plugin-react-native/package.json index 82151c1f614e0c..656978637ebc34 100644 --- a/packages/eslint-plugin-react-native/package.json +++ b/packages/eslint-plugin-react-native/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/eslint-plugin", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "ESLint rules for @react-native/eslint-config", "license": "MIT", "repository": { diff --git a/packages/eslint-plugin-specs/package.json b/packages/eslint-plugin-specs/package.json index ca94060a48eec1..db41970a1d4c36 100644 --- a/packages/eslint-plugin-specs/package.json +++ b/packages/eslint-plugin-specs/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/eslint-plugin-specs", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "ESLint rules to validate NativeModule and Component Specs", "license": "MIT", "repository": { @@ -26,7 +26,7 @@ "dependencies": { "@babel/core": "^7.25.2", "@babel/plugin-transform-flow-strip-types": "^7.25.2", - "@react-native/codegen": "0.77.0-main", + "@react-native/codegen": "0.77.0-rc.0", "make-dir": "^2.1.0", "pirates": "^4.0.1", "source-map-support": "0.5.0" diff --git a/packages/gradle-plugin/package.json b/packages/gradle-plugin/package.json index a3d8c09a64498c..229751ad42f906 100644 --- a/packages/gradle-plugin/package.json +++ b/packages/gradle-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/gradle-plugin", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "Gradle Plugin for React Native", "license": "MIT", "repository": { diff --git a/packages/helloworld/package.json b/packages/helloworld/package.json index a5a2d6a751fb20..6e0b4fc96072cf 100644 --- a/packages/helloworld/package.json +++ b/packages/helloworld/package.json @@ -1,6 +1,6 @@ { "name": "helloworld", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "private": true, "scripts": { "bootstrap": "node ./cli.js bootstrap", @@ -13,16 +13,16 @@ }, "dependencies": { "react": "18.3.1", - "react-native": "1000.0.0" + "react-native": "0.77.0-rc.0" }, "devDependencies": { "@babel/core": "^7.25.2", "@babel/preset-env": "^7.25.3", "@babel/runtime": "^7.25.0", - "@react-native/babel-preset": "0.77.0-main", - "@react-native/core-cli-utils": "0.77.0-main", - "@react-native/eslint-config": "0.77.0-main", - "@react-native/metro-config": "0.77.0-main", + "@react-native/babel-preset": "0.77.0-rc.0", + "@react-native/core-cli-utils": "0.77.0-rc.0", + "@react-native/eslint-config": "0.77.0-rc.0", + "@react-native/metro-config": "0.77.0-rc.0", "chalk": "^4.1.2", "commander": "^12.0.0", "eslint": "^8.19.0", diff --git a/packages/hermes-inspector-msggen/package.json b/packages/hermes-inspector-msggen/package.json index 0fa9dbfa91443a..f14ba2f1840a8c 100644 --- a/packages/hermes-inspector-msggen/package.json +++ b/packages/hermes-inspector-msggen/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/hermes-inspector-msggen", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "private": true, "description": "Hermes Inspector Message Generator for React Native", "license": "MIT", diff --git a/packages/metro-config/package.json b/packages/metro-config/package.json index 875347ef99a9ab..44dde55c0c0ea8 100644 --- a/packages/metro-config/package.json +++ b/packages/metro-config/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/metro-config", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "Metro configuration for React Native.", "license": "MIT", "repository": { @@ -26,8 +26,8 @@ "dist" ], "dependencies": { - "@react-native/js-polyfills": "0.77.0-main", - "@react-native/metro-babel-transformer": "0.77.0-main", + "@react-native/js-polyfills": "0.77.0-rc.0", + "@react-native/metro-babel-transformer": "0.77.0-rc.0", "metro-config": "^0.81.0", "metro-runtime": "^0.81.0" } diff --git a/packages/normalize-color/package.json b/packages/normalize-color/package.json index 5db370d8b5c361..1d2c66dee6040b 100644 --- a/packages/normalize-color/package.json +++ b/packages/normalize-color/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/normalize-colors", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "Color normalization for React Native.", "license": "MIT", "repository": { diff --git a/packages/polyfills/package.json b/packages/polyfills/package.json index b80037150fdbfd..662c04269d71fd 100644 --- a/packages/polyfills/package.json +++ b/packages/polyfills/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/js-polyfills", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "Polyfills for React Native.", "license": "MIT", "repository": { diff --git a/packages/react-native-babel-preset/package.json b/packages/react-native-babel-preset/package.json index ba57efc6941582..b762a3d977d791 100644 --- a/packages/react-native-babel-preset/package.json +++ b/packages/react-native-babel-preset/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/babel-preset", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "Babel preset for React Native applications", "main": "src/index.js", "repository": { @@ -55,7 +55,7 @@ "@babel/plugin-transform-typescript": "^7.25.2", "@babel/plugin-transform-unicode-regex": "^7.24.7", "@babel/template": "^7.25.0", - "@react-native/babel-plugin-codegen": "0.77.0-main", + "@react-native/babel-plugin-codegen": "0.77.0-rc.0", "babel-plugin-syntax-hermes-parser": "0.25.1", "babel-plugin-transform-flow-enums": "^0.0.2", "react-refresh": "^0.14.0" diff --git a/packages/react-native-babel-transformer/package.json b/packages/react-native-babel-transformer/package.json index 524baafe464a56..7fcb7815bdb702 100644 --- a/packages/react-native-babel-transformer/package.json +++ b/packages/react-native-babel-transformer/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/metro-babel-transformer", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "Babel transformer for React Native applications.", "main": "src/index.js", "repository": { @@ -16,7 +16,7 @@ "license": "MIT", "dependencies": { "@babel/core": "^7.25.2", - "@react-native/babel-preset": "0.77.0-main", + "@react-native/babel-preset": "0.77.0-rc.0", "hermes-parser": "0.25.1", "nullthrows": "^1.1.1" }, diff --git a/packages/react-native-bots/package.json b/packages/react-native-bots/package.json index facc1e3fcab814..fd996733064a2b 100644 --- a/packages/react-native-bots/package.json +++ b/packages/react-native-bots/package.json @@ -1,7 +1,7 @@ { "name": "@react-native/bots", "description": "React Native Bots", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "private": true, "license": "MIT", "repository": { diff --git a/packages/react-native-codegen-typescript-test/package.json b/packages/react-native-codegen-typescript-test/package.json index 5d124daf46c8b2..0e7dc06df19a8e 100644 --- a/packages/react-native-codegen-typescript-test/package.json +++ b/packages/react-native-codegen-typescript-test/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/codegen-typescript-test", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "private": true, "description": "TypeScript related unit test for @react-native/codegen", "license": "MIT", @@ -19,7 +19,7 @@ "prepare": "yarn run build" }, "dependencies": { - "@react-native/codegen": "0.77.0-main" + "@react-native/codegen": "0.77.0-rc.0" }, "devDependencies": { "@babel/core": "^7.25.2", diff --git a/packages/react-native-codegen/package.json b/packages/react-native-codegen/package.json index 80f3e14e658670..ec37e69cc5166c 100644 --- a/packages/react-native-codegen/package.json +++ b/packages/react-native-codegen/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/codegen", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "Code generation tools for React Native", "license": "MIT", "repository": { diff --git a/packages/react-native-info/package.json b/packages/react-native-info/package.json index 6381b4f2cb631b..73a04735d1e22d 100644 --- a/packages/react-native-info/package.json +++ b/packages/react-native-info/package.json @@ -1,6 +1,6 @@ { "name": "react-native-info", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "main": "build/index.js", "license": "MIT", "private": true, diff --git a/packages/react-native-popup-menu-android/package.json b/packages/react-native-popup-menu-android/package.json index 30cb2a1ed2be1e..3c13b8fb3c7c43 100644 --- a/packages/react-native-popup-menu-android/package.json +++ b/packages/react-native-popup-menu-android/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/popup-menu-android", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "PopupMenu for the Android platform", "main": "index.js", "files": [ @@ -17,7 +17,7 @@ ], "license": "MIT", "devDependencies": { - "@react-native/codegen": "0.77.0-main" + "@react-native/codegen": "0.77.0-rc.0" }, "peerDependencies": { "@types/react": "^18.2.6", diff --git a/packages/react-native-test-library/package.json b/packages/react-native-test-library/package.json index c378871432ff36..9515eb8abf9f41 100644 --- a/packages/react-native-test-library/package.json +++ b/packages/react-native-test-library/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/oss-library-example", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "private": true, "description": "Package that includes native module exapmle, native component example, targets both the old and the new architecture. It should serve as an example of a real-world OSS library.", "license": "MIT", @@ -26,8 +26,8 @@ ], "devDependencies": { "@babel/core": "^7.25.2", - "@react-native/babel-preset": "0.77.0-main", - "react-native": "1000.0.0" + "@react-native/babel-preset": "0.77.0-rc.0", + "react-native": "0.77.0-rc.0" }, "peerDependencies": { "react": "*", diff --git a/packages/react-native-test-renderer/package.json b/packages/react-native-test-renderer/package.json index 5610c999a836e1..65ef9fdc861d32 100644 --- a/packages/react-native-test-renderer/package.json +++ b/packages/react-native-test-renderer/package.json @@ -1,7 +1,7 @@ { "name": "@react-native/test-renderer", "private": true, - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "A Test rendering library for React Native", "license": "MIT", "devDependencies": { diff --git a/packages/react-native/Libraries/Core/ReactNativeVersion.js b/packages/react-native/Libraries/Core/ReactNativeVersion.js index 786a34fcdd1f2c..8450fd22f0896c 100644 --- a/packages/react-native/Libraries/Core/ReactNativeVersion.js +++ b/packages/react-native/Libraries/Core/ReactNativeVersion.js @@ -14,10 +14,10 @@ const version: $ReadOnly<{ patch: number, prerelease: string | null, }> = { - major: 1000, - minor: 0, + major: 0, + minor: 77, patch: 0, - prerelease: null, + prerelease: 'rc.0', }; module.exports = {version}; diff --git a/packages/react-native/React/Base/RCTVersion.m b/packages/react-native/React/Base/RCTVersion.m index 69ce4f75320e63..417f81feb4b43d 100644 --- a/packages/react-native/React/Base/RCTVersion.m +++ b/packages/react-native/React/Base/RCTVersion.m @@ -21,10 +21,10 @@ static dispatch_once_t onceToken; dispatch_once(&onceToken, ^(void){ __rnVersion = @{ - RCTVersionMajor: @(1000), - RCTVersionMinor: @(0), + RCTVersionMajor: @(0), + RCTVersionMinor: @(77), RCTVersionPatch: @(0), - RCTVersionPrerelease: [NSNull null], + RCTVersionPrerelease: @"rc.0", }; }); return __rnVersion; diff --git a/packages/react-native/ReactAndroid/gradle.properties b/packages/react-native/ReactAndroid/gradle.properties index 8866d933a00e53..8ba37c044924ad 100644 --- a/packages/react-native/ReactAndroid/gradle.properties +++ b/packages/react-native/ReactAndroid/gradle.properties @@ -1,4 +1,4 @@ -VERSION_NAME=1000.0.0 +VERSION_NAME=0.77.0-rc.0 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.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java index dd881ce78cacdc..57bd1de38fb2fb 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java @@ -15,8 +15,8 @@ public class ReactNativeVersion { public static final Map VERSION = MapBuilder.of( - "major", 1000, - "minor", 0, + "major", 0, + "minor", 77, "patch", 0, - "prerelease", null); + "prerelease", "rc.0"); } diff --git a/packages/react-native/ReactCommon/cxxreact/ReactNativeVersion.h b/packages/react-native/ReactCommon/cxxreact/ReactNativeVersion.h index c2509cc0404a27..e61138e7abd173 100644 --- a/packages/react-native/ReactCommon/cxxreact/ReactNativeVersion.h +++ b/packages/react-native/ReactCommon/cxxreact/ReactNativeVersion.h @@ -15,10 +15,10 @@ namespace facebook::react { constexpr struct { - int32_t Major = 1000; - int32_t Minor = 0; + int32_t Major = 0; + int32_t Minor = 77; int32_t Patch = 0; - std::string_view Prerelease = ""; + std::string_view Prerelease = "rc.0"; } ReactNativeVersion; } // namespace facebook::react diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 6481bbaf55fa71..ea6294dc88505e 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -1,6 +1,6 @@ { "name": "react-native", - "version": "1000.0.0", + "version": "0.77.0-rc.0", "description": "A framework for building native apps using React", "license": "MIT", "repository": { @@ -108,13 +108,13 @@ }, "dependencies": { "@jest/create-cache-key-function": "^29.6.3", - "@react-native/assets-registry": "0.77.0-main", - "@react-native/codegen": "0.77.0-main", - "@react-native/community-cli-plugin": "0.77.0-main", - "@react-native/gradle-plugin": "0.77.0-main", - "@react-native/js-polyfills": "0.77.0-main", - "@react-native/normalize-colors": "0.77.0-main", - "@react-native/virtualized-lists": "0.77.0-main", + "@react-native/assets-registry": "0.77.0-rc.0", + "@react-native/codegen": "0.77.0-rc.0", + "@react-native/community-cli-plugin": "0.77.0-rc.0", + "@react-native/gradle-plugin": "0.77.0-rc.0", + "@react-native/js-polyfills": "0.77.0-rc.0", + "@react-native/normalize-colors": "0.77.0-rc.0", + "@react-native/virtualized-lists": "0.77.0-rc.0", "abort-controller": "^3.0.0", "anser": "^1.4.9", "ansi-regex": "^5.0.0", diff --git a/packages/rn-tester/package.json b/packages/rn-tester/package.json index 48fa5f0de263b9..a8685dab6da439 100644 --- a/packages/rn-tester/package.json +++ b/packages/rn-tester/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/tester", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "private": true, "description": "React Native tester app.", "license": "MIT", @@ -27,8 +27,8 @@ "e2e-test-ios": "./scripts/maestro-test-ios.sh" }, "dependencies": { - "@react-native/oss-library-example": "0.77.0-main", - "@react-native/popup-menu-android": "0.77.0-main", + "@react-native/oss-library-example": "0.77.0-rc.0", + "@react-native/popup-menu-android": "0.77.0-rc.0", "flow-enums-runtime": "^0.0.6", "invariant": "^2.2.4", "nullthrows": "^1.1.1" diff --git a/packages/typescript-config/package.json b/packages/typescript-config/package.json index ac400bc87f4a58..76d238aafe163c 100644 --- a/packages/typescript-config/package.json +++ b/packages/typescript-config/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/typescript-config", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "Default TypeScript configuration for React Native apps", "license": "MIT", "repository": { diff --git a/packages/virtualized-lists/package.json b/packages/virtualized-lists/package.json index ce522709544d9a..56cf090241e816 100644 --- a/packages/virtualized-lists/package.json +++ b/packages/virtualized-lists/package.json @@ -1,6 +1,6 @@ { "name": "@react-native/virtualized-lists", - "version": "0.77.0-main", + "version": "0.77.0-rc.0", "description": "Virtualized lists for React Native.", "license": "MIT", "repository": {