Skip to content

Commit eb5f8d1

Browse files
authored
chore(0.76): Merge up to 0.76.9 (#2472)
## Summary: Merge the latest commits from `0.76-stable` upstream ## Test Plan: CI should pass
2 parents b1306dd + a593682 commit eb5f8d1

File tree

94 files changed

+1050
-746
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+1050
-746
lines changed

.github/actions/build-hermesc-windows/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ runs:
3939
New-Item -ItemType Directory -ErrorAction SilentlyContinue $Env:HERMES_WS_DIR\icu
4040
New-Item -ItemType Directory -ErrorAction SilentlyContinue $Env:HERMES_WS_DIR\deps
4141
New-Item -ItemType Directory -ErrorAction SilentlyContinue $Env:HERMES_WS_DIR\win64-bin
42+
- name: Downgrade CMake
43+
shell: powershell
44+
run: choco install cmake --version 3.31.6 --force
4245
- name: Build HermesC for Windows
4346
shell: powershell
4447
run: |

.github/actions/maestro-android/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ runs:
5656
echo "Stop recording. Saving to screen.mp4"
5757
adb pull /sdcard/screen.mp4
5858
- name: Store tests result
59-
uses: actions/upload-artifact@v3
59+
uses: actions/upload-artifact@v4.3.4
6060
with:
6161
name: e2e_android_${{ inputs.app-id }}_report_${{ inputs.jsengine }}
6262
path: |

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"@jest/create-cache-key-function": "^29.6.3",
5151
"@nx/js": "~20.0.0",
5252
"@pkgjs/parseargs": "^0.11.0",
53-
"@react-native/metro-babel-transformer": "0.76.7",
54-
"@react-native/metro-config": "0.76.7",
53+
"@react-native/metro-babel-transformer": "0.76.9",
54+
"@react-native/metro-config": "0.76.9",
5555
"@tsconfig/node18": "1.0.1",
5656
"@types/react": "^18.2.6",
5757
"@typescript-eslint/parser": "^7.1.1",

packages/assets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native/assets-registry",
3-
"version": "0.76.7",
3+
"version": "0.76.9",
44
"description": "Asset support code for React Native.",
55
"license": "MIT",
66
"repository": {

packages/babel-plugin-codegen/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native/babel-plugin-codegen",
3-
"version": "0.76.7",
3+
"version": "0.76.9",
44
"description": "Babel plugin to generate native module and view manager code for React Native.",
55
"license": "MIT",
66
"repository": {
@@ -25,7 +25,7 @@
2525
"index.js"
2626
],
2727
"dependencies": {
28-
"@react-native/codegen": "0.76.7"
28+
"@react-native/codegen": "0.76.9"
2929
},
3030
"devDependencies": {
3131
"@babel/core": "^7.25.2"

packages/community-cli-plugin/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native/community-cli-plugin",
3-
"version": "0.76.7",
3+
"version": "0.76.9",
44
"description": "Core CLI commands for React Native",
55
"keywords": [
66
"react-native",
@@ -22,8 +22,8 @@
2222
"dist"
2323
],
2424
"dependencies": {
25-
"@react-native/dev-middleware": "0.76.7",
26-
"@react-native/metro-babel-transformer": "0.76.7",
25+
"@react-native/dev-middleware": "0.76.9",
26+
"@react-native/metro-babel-transformer": "0.76.9",
2727
"chalk": "^4.0.0",
2828
"execa": "^5.1.1",
2929
"invariant": "^2.2.4",
@@ -38,10 +38,10 @@
3838
"metro-resolver": "^0.81.0"
3939
},
4040
"peerDependencies": {
41-
"@react-native-community/cli-server-api": "*"
41+
"@react-native-community/cli": "*"
4242
},
4343
"peerDependenciesMeta": {
44-
"@react-native-community/cli-server-api": {
44+
"@react-native-community/cli": {
4545
"optional": true
4646
}
4747
},

packages/community-cli-plugin/src/commands/start/middleware.js

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
import type {NextHandleFunction, Server} from 'connect';
1313
import type {TerminalReportableEvent} from 'metro/src/lib/TerminalReporter';
1414

15+
import typeof * as CLIServerAPI from '@react-native-community/cli-server-api';
16+
1517
import {logger} from '../../utils/logger';
1618

1719
type MiddlewareReturn = {
@@ -65,11 +67,26 @@ const communityMiddlewareFallback = {
6567
// Attempt to use the community middleware if it exists, but fallback to
6668
// the stubs if it doesn't.
6769
try {
68-
const community = require('@react-native-community/cli-server-api');
69-
communityMiddlewareFallback.indexPageMiddleware =
70-
community.indexPageMiddleware;
70+
// `@react-native-community/cli` is an optional peer dependency of this
71+
// package, and should be a dev dependency of the host project (via the
72+
// community template's package.json).
73+
const communityCliPath = require.resolve('@react-native-community/cli');
74+
75+
// `@react-native-community/cli-server-api` is a dependency of
76+
// `@react-native-community/cli`, but is not re-exported by it, so we need
77+
// to resolve the former through the latter.
78+
const communityCliServerApiPath = require.resolve(
79+
'@react-native-community/cli-server-api',
80+
{paths: [communityCliPath]},
81+
);
82+
// $FlowIgnore[unsupported-syntax] dynamic import
83+
const communityCliServerApi: CLIServerAPI = require(
84+
communityCliServerApiPath,
85+
);
7186
communityMiddlewareFallback.createDevServerMiddleware =
72-
community.createDevServerMiddleware;
87+
communityCliServerApi.createDevServerMiddleware;
88+
communityMiddlewareFallback.indexPageMiddleware =
89+
communityCliServerApi.indexPageMiddleware;
7390
} catch {
7491
logger.debug(`⚠️ Unable to find @react-native-community/cli-server-api
7592
Starting the server without the community middleware.`);

packages/core-cli-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native/core-cli-utils",
3-
"version": "0.76.7",
3+
"version": "0.76.9",
44
"description": "React Native CLI library for Frameworks to build on",
55
"license": "MIT",
66
"main": "./src/index.flow.js",

packages/debugger-frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native/debugger-frontend",
3-
"version": "0.76.7",
3+
"version": "0.76.9",
44
"description": "Debugger frontend for React Native based on Chrome DevTools",
55
"keywords": [
66
"react-native",

packages/dev-middleware/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native/dev-middleware",
3-
"version": "0.76.7",
3+
"version": "0.76.9",
44
"description": "Dev server middleware for React Native",
55
"keywords": [
66
"react-native",
@@ -23,7 +23,7 @@
2323
],
2424
"dependencies": {
2525
"@isaacs/ttlcache": "^1.4.1",
26-
"@react-native/debugger-frontend": "0.76.7",
26+
"@react-native/debugger-frontend": "0.76.9",
2727
"chrome-launcher": "^0.15.2",
2828
"chromium-edge-launcher": "^0.2.0",
2929
"connect": "^3.6.5",

0 commit comments

Comments
 (0)