Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: bump react-native to 0.75
Browse files Browse the repository at this point in the history
tido64 committed Aug 20, 2024
1 parent f2f582f commit 972c825
Showing 23 changed files with 1,035 additions and 763 deletions.
5 changes: 5 additions & 0 deletions .changeset/cuddly-shrimps-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rnx-kit/align-deps": patch
---

`@react-native-community/cli` must be a direct dependency starting with 0.75
5 changes: 3 additions & 2 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
{
"groupName": "@react-native-community/cli",
"matchPackagePrefixes": ["@react-native-community/cli"],
"allowedVersions": "^13.0.0"
"allowedVersions": "^14.0.0"
},
{
"groupName": "Android",
@@ -65,6 +65,7 @@
"@react-native/community-cli-plugin",
"@react-native/debugger-frontend",
"@react-native/dev-middleware",
"@react-native/eslint-plugin",
"@react-native/gradle-plugin",
"@react-native/js-polyfills",
"@react-native/metro-babel-transformer",
@@ -75,7 +76,7 @@
"react-native-macos",
"react-native-windows"
],
"allowedVersions": "^0.74.0"
"allowedVersions": "^0.75.0"
}
],
"postUpdateOptions": ["yarnDedupeHighest"],
8 changes: 0 additions & 8 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -20,21 +20,13 @@ packageExtensions:
# https://github.com/microsoft/fluentui/pull/30964
"@types/react":
optional: true
"@react-native/codegen@0.74":
dependencies:
# https://github.com/facebook/react-native/pull/45993
yargs: ^17.6.2
babel-plugin-transform-flow-enums@*:
peerDependencies:
"@babel/core": ^7.20.0
metro-config@*:
dependencies:
# `metro-config` fails to resolve `JsTransformerConfig` because it's in another package
metro-transform-worker: ^0.80.0
react-native@0.74:
dependencies:
# https://github.com/facebook/react-native/pull/45993
glob: ^7.1.1
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-compat.cjs
spec: "@yarnpkg/plugin-compat"
4 changes: 2 additions & 2 deletions incubator/@react-native-webapis/battery-status/package.json
Original file line number Diff line number Diff line change
@@ -49,8 +49,8 @@
"@types/node": "^20.0.0",
"eslint": "^8.56.0",
"prettier": "^3.0.0",
"react": "18.2.0",
"react-native": "^0.74.0",
"react": "^18.2.0",
"react-native": "^0.75.0",
"typescript": "^5.0.0"
},
"experimental": true
6 changes: 2 additions & 4 deletions incubator/@react-native-webapis/web-storage/package.json
Original file line number Diff line number Diff line change
@@ -61,10 +61,8 @@
"eslint": "^8.56.0",
"jest": "^29.2.1",
"prettier": "^3.0.0",
"react": "18.2.0",
"react-native": "^0.74.0",
"react-native-macos": "^0.74.0",
"react-native-windows": "^0.74.0",
"react": "^18.2.0",
"react-native": "^0.75.0",
"typescript": "^5.0.0"
},
"engines": {
2 changes: 1 addition & 1 deletion incubator/polyfills/package.json
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@
"alignDeps": {
"requirements": {
"development": [
"react-native@0.74"
"react-native@0.75"
],
"production": [
"react-native@>=0.72 <1.0"
22 changes: 14 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -52,15 +52,21 @@
"resolutions": {
"@microsoft/eslint-plugin-sdl/eslint-plugin-react": "^7.33.0",
"@microsoft/eslint-plugin-sdl/eslint-plugin-security": "^1.4.0",
"@react-native-community/cli": "^13.6.4",
"@react-native-community/cli-clean": "^13.6.4",
"@react-native-community/cli-platform-android": "^13.6.4",
"@react-native-community/cli-platform-ios": "^13.6.4",
"@react-native-community/cli-server-api": "^13.6.4",
"@react-native-community/cli-tools": "^13.6.4",
"@react-native-community/cli-types": "^13.6.4",
"@react-native-community/cli": "^14.0.0",
"@react-native-community/cli-platform-android": "^14.0.0",
"@react-native-community/cli-platform-ios": "^14.0.0",
"@react-native-community/cli-server-api": "^14.0.0",
"@react-native-community/cli-tools": "^14.0.0",
"@react-native-community/cli-types": "^14.0.0",
"@rnx-kit/react-native-host": "workspace:*",
"@vue/compiler-sfc": "link:./incubator/ignore"
"@vue/compiler-sfc": "link:./incubator/ignore",
"react-native-windows/@react-native/assets-registry": "^0.75.1",
"react-native-windows/@react-native/codegen": "^0.75.1",
"react-native-windows/@react-native/community-cli-plugin": "^0.75.1",
"react-native-windows/@react-native/gradle-plugin": "^0.75.1",
"react-native-windows/@react-native/js-polyfills": "^0.75.1",
"react-native-windows/@react-native/normalize-colors": "^0.75.1",
"react-native-windows/@react-native/virtualized-lists": "^0.75.1"
},
"workspaces": {
"packages": [
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import { profile as profile_0_74 } from "./profile-0.74";
const reactNative: Package = {
name: "react-native",
version: "^0.75.0",
capabilities: ["react", "core/metro-config"],
capabilities: ["react", "core/metro-config", "community/cli"],
};

export const profile: Profile = {
2 changes: 1 addition & 1 deletion packages/babel-preset-metro-react-native/package.json
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@
"@babel/core": "^7.20.0",
"@babel/plugin-transform-typescript": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native/babel-preset": "^0.74.0",
"@react-native/babel-preset": "^0.75.0",
"@rnx-kit/babel-plugin-import-path-remapper": "*",
"@rnx-kit/eslint-config": "*",
"@rnx-kit/scripts": "*",
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -72,7 +72,7 @@
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@react-native-community/cli-types": "^13.6.4",
"@react-native-community/cli-types": "^14.0.0",
"@rnx-kit/eslint-config": "*",
"@rnx-kit/jest-preset": "*",
"@rnx-kit/scripts": "*",
@@ -89,8 +89,8 @@
"metro-babel-transformer": "^0.80.0",
"metro-config": "^0.80.3",
"prettier": "^3.0.0",
"react": "18.2.0",
"react-native": "^0.74.0",
"react": "^18.2.0",
"react-native": "^0.75.0",
"tsx": "^4.15.0",
"type-fest": "^4.0.0",
"typescript": "^5.0.0"
1 change: 1 addition & 0 deletions packages/cli/src/bin/context.ts
Original file line number Diff line number Diff line change
@@ -81,6 +81,7 @@ export function loadContext(userCommand: string, root = process.cwd()): Config {
get dependencies(): Config["dependencies"] {
throw new Error("Unexpected access to `dependencies`");
},
assets: [],
commands: coreCommands,
get healthChecks(): Config["healthChecks"] {
throw new Error("Unexpected access to `healthChecks`");
6 changes: 3 additions & 3 deletions packages/jest-preset/package.json
Original file line number Diff line number Diff line change
@@ -41,16 +41,16 @@
"devDependencies": {
"@eslint/js": "^8.33.0",
"@jest/types": "^29.2.1",
"@react-native-community/cli-types": "^13.6.4",
"@react-native-community/cli-types": "^14.0.0",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"@types/jest": "^29.2.1",
"@types/node": "^20.0.0",
"eslint": "^8.56.0",
"jest": "^29.2.1",
"prettier": "^3.0.0",
"react": "18.2.0",
"react-native": "^0.74.0",
"react": "^18.2.0",
"react-native": "^0.75.0",
"typescript": "^5.0.0"
},
"depcheck": {
4 changes: 2 additions & 2 deletions packages/metro-config/package.json
Original file line number Diff line number Diff line change
@@ -51,8 +51,8 @@
"metro-config": "^0.80.3",
"metro-resolver": "^0.80.3",
"prettier": "^3.0.0",
"react": "18.2.0",
"react-native": "^0.74.0",
"react": "^18.2.0",
"react-native": "^0.75.0",
"type-fest": "^4.0.0",
"typescript": "^5.0.0"
},
10 changes: 5 additions & 5 deletions packages/metro-serializer-esbuild/package.json
Original file line number Diff line number Diff line change
@@ -37,9 +37,9 @@
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@fluentui/utilities": "8.13.9",
"@react-native-community/cli-types": "^13.6.4",
"@react-native/babel-preset": "^0.74.0",
"@react-native/metro-config": "^0.74.0",
"@react-native-community/cli-types": "^14.0.0",
"@react-native/babel-preset": "^0.75.0",
"@react-native/metro-config": "^0.75.0",
"@rnx-kit/babel-plugin-import-path-remapper": "*",
"@rnx-kit/babel-preset-metro-react-native": "*",
"@rnx-kit/eslint-config": "*",
@@ -55,8 +55,8 @@
"metro-config": "^0.80.3",
"metro-transform-worker": "^0.80.0",
"prettier": "^3.0.0",
"react": "18.2.0",
"react-native": "^0.74.0",
"react": "^18.2.0",
"react-native": "^0.75.0",
"typescript": "^5.0.0"
},
"depcheck": {
4 changes: 2 additions & 2 deletions packages/metro-service/package.json
Original file line number Diff line number Diff line change
@@ -52,8 +52,8 @@
}
},
"devDependencies": {
"@react-native-community/cli-types": "^13.6.4",
"@react-native/assets-registry": "^0.74.0",
"@react-native-community/cli-types": "^14.0.0",
"@react-native/assets-registry": "^0.75.0",
"@rnx-kit/eslint-config": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
1 change: 1 addition & 0 deletions packages/metro-service/src/assets-registry/path-support.js
Original file line number Diff line number Diff line change
@@ -31,6 +31,7 @@ const ANDROID_BASE_DENSITY = 160;
*/
function getAndroidAssetSuffix(scale) {
if (scale.toString() in androidScaleSuffix) {
// $FlowFixMe[invalid-computed-prop]
return androidScaleSuffix[scale.toString()];
}
// NOTE: Android Gradle Plugin does not fully support the nnndpi format.
11 changes: 7 additions & 4 deletions packages/react-native-auth/package.json
Original file line number Diff line number Diff line change
@@ -38,14 +38,17 @@
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@react-native/metro-config": "^0.74.0",
"@react-native-community/cli": "^14.0.0",
"@react-native-community/cli-platform-android": "^14.0.0",
"@react-native-community/cli-platform-ios": "^14.0.0",
"@react-native/metro-config": "^0.75.0",
"@rnx-kit/eslint-config": "*",
"@rnx-kit/scripts": "*",
"@rnx-kit/tsconfig": "*",
"eslint": "^8.56.0",
"prettier": "^3.0.0",
"react": "18.2.0",
"react-native": "^0.74.0",
"react": "^18.2.0",
"react-native": "^0.75.0",
"typescript": "^5.0.0"
},
"rnx-kit": {
@@ -55,7 +58,7 @@
],
"requirements": {
"development": [
"react-native@0.74"
"react-native@0.75"
],
"production": [
"react-native@>=0.62 <1.0"
Loading

0 comments on commit 972c825

Please sign in to comment.