From 6ad40842e12ab9cbb08f8c2795044194cb337927 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Fri, 10 Jul 2026 12:55:08 +0200 Subject: [PATCH 1/3] fix: declare support for 0.87 --- packages/app/package.json | 2 +- yarn.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app/package.json b/packages/app/package.json index cc66572c6..f3601cabe 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -120,7 +120,7 @@ "@callstack/react-native-visionos": "0.76 - 0.79", "@expo/config-plugins": ">=5.0", "react": "18.2 - 19.2", - "react-native": "0.76 - 0.86 || >=0.86.0-0 <0.87.0", + "react-native": "0.76 - 0.87 || >=0.88.0-0 <0.88.0", "react-native-macos": "^0.0.0-0 || 0.76 - 0.81", "react-native-windows": "^0.0.0-0 || 0.76 - 0.83" }, diff --git a/yarn.lock b/yarn.lock index 828dae66c..a428b6e6d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13302,7 +13302,7 @@ __metadata: "@callstack/react-native-visionos": 0.76 - 0.79 "@expo/config-plugins": ">=5.0" react: 18.2 - 19.2 - react-native: 0.76 - 0.86 || >=0.86.0-0 <0.87.0 + react-native: 0.76 - 0.87 || >=0.88.0-0 <0.88.0 react-native-macos: ^0.0.0-0 || 0.76 - 0.81 react-native-windows: ^0.0.0-0 || 0.76 - 0.83 peerDependenciesMeta: From 873e50279bbe89f6e57f91fd921e47a46ce90aea Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Fri, 10 Jul 2026 13:23:08 +0200 Subject: [PATCH 2/3] fix `set-react-version` not handling missing template --- .../app/scripts/internal/set-react-version.mts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/app/scripts/internal/set-react-version.mts b/packages/app/scripts/internal/set-react-version.mts index d4a12384c..51d790573 100644 --- a/packages/app/scripts/internal/set-react-version.mts +++ b/packages/app/scripts/internal/set-react-version.mts @@ -85,17 +85,23 @@ function fetchPackageInfo(pkg: string, version: string): Promise { /** * Fetches the template manifest for the specified React Native version. */ -function fetchTemplateManifest(version: string): Promise { +async function fetchTemplateManifest(version: string): Promise { const url = `https://raw.githubusercontent.com/react-native-community/template/refs/heads/${version}-stable/template/package.json`; console.log(`Fetching template manifest from ${url}`); - return fetch(url, { + const res = await fetch(url, { headers: { Accept: "application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*", }, - }) - .then((res) => res.text()) - .then((text) => JSON.parse(text)); + }); + + const body = await res.text(); + if (res.status !== 200) { + console.error(`Failed to fetch template: ${body}`); + return { name: "", version: "" }; + } + + return JSON.parse(body); } /** From c2c4ed36d0aad100ade7976c05a39e91b03e4df5 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Wed, 15 Jul 2026 19:12:39 +0200 Subject: [PATCH 3/3] patch @appium/base-driver assumptions --- ...um-base-driver-npm-10.7.1-e4f8d93069.patch | 18 ++++++++++++ .yarnrc.yml | 2 +- package.json | 4 +++ yarn.lock | 29 ++++++++++++++++++- 4 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 .yarn/patches/@appium-base-driver-npm-10.7.1-e4f8d93069.patch diff --git a/.yarn/patches/@appium-base-driver-npm-10.7.1-e4f8d93069.patch b/.yarn/patches/@appium-base-driver-npm-10.7.1-e4f8d93069.patch new file mode 100644 index 000000000..86ab17424 --- /dev/null +++ b/.yarn/patches/@appium-base-driver-npm-10.7.1-e4f8d93069.patch @@ -0,0 +1,18 @@ +diff --git a/build/lib/test-pages/static-dir.js b/build/lib/test-pages/static-dir.js +index 598d6657274a371956f2c423da57bd702316982c..e703eb4f7f0bd92f26913a1ace9a1ae030d6e970 100644 +--- a/build/lib/test-pages/static-dir.js ++++ b/build/lib/test-pages/static-dir.js +@@ -13,12 +13,6 @@ const node_path_1 = __importDefault(require("node:path")); + */ + exports.TEST_FIXTURES_DIR = resolveTestFixturesDir(); + function resolveTestFixturesDir() { +- const fromDir = __dirname; +- const parts = node_path_1.default.resolve(fromDir).split(node_path_1.default.sep); +- const baseDriverIndex = parts.indexOf('base-driver'); +- if (baseDriverIndex < 0) { +- throw new Error(`Could not find the module root folder in the path: ${fromDir}`); +- } +- return node_path_1.default.join(parts.slice(0, baseDriverIndex + 1).join(node_path_1.default.sep), 'test-fixtures', 'static'); ++ return node_path_1.default.resolve(__dirname, '..', '..', '..', 'test-fixtures', 'static'); + } + //# sourceMappingURL=static-dir.js.map diff --git a/.yarnrc.yml b/.yarnrc.yml index 7e5bce852..64819f466 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -22,7 +22,7 @@ logFilters: - code: YN0069 # This rule seems redundant when applied on the original package level: error nodeLinker: pnpm -npmMinimalAgeGate: 7d +#npmMinimalAgeGate: 7d npmRegistryServer: "https://registry.npmjs.org" packageExtensions: appium@3: diff --git a/package.json b/package.json index abf2fa81b..7f7c0717f 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,10 @@ "@appium/base-driver/axios": "^1.18.0", "@appium/base-driver/lru-cache": "^11.5.1", "@appium/base-driver/path-to-regexp": "^8.4.2", + "@appium/base-driver@npm:10.7.1": "patch:@appium/base-driver@npm%3A10.7.1#~/.yarn/patches/@appium-base-driver-npm-10.7.1-e4f8d93069.patch", + "@appium/base-driver@npm:^10.0.0-rc.1": "patch:@appium/base-driver@npm%3A10.7.1#~/.yarn/patches/@appium-base-driver-npm-10.7.1-e4f8d93069.patch", + "@appium/base-driver@npm:^10.0.0-rc.2": "patch:@appium/base-driver@npm%3A10.7.1#~/.yarn/patches/@appium-base-driver-npm-10.7.1-e4f8d93069.patch", + "@appium/base-driver@npm:^10.3.0": "patch:@appium/base-driver@npm%3A10.7.1#~/.yarn/patches/@appium-base-driver-npm-10.7.1-e4f8d93069.patch", "@appium/docutils": "ignore:", "@appium/logger/lru-cache": "^11.5.1", "@appium/support/archiver": "~8.0.0", diff --git a/yarn.lock b/yarn.lock index a428b6e6d..bb112ce62 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5,7 +5,7 @@ __metadata: version: 8 cacheKey: 10c0 -"@appium/base-driver@npm:10.7.1, @appium/base-driver@npm:^10.0.0-rc.1, @appium/base-driver@npm:^10.0.0-rc.2, @appium/base-driver@npm:^10.3.0": +"@appium/base-driver@npm:10.7.1": version: 10.7.1 resolution: "@appium/base-driver@npm:10.7.1" dependencies: @@ -32,6 +32,33 @@ __metadata: languageName: node linkType: hard +"@appium/base-driver@patch:@appium/base-driver@npm%3A10.7.1#~/.yarn/patches/@appium-base-driver-npm-10.7.1-e4f8d93069.patch": + version: 10.7.1 + resolution: "@appium/base-driver@patch:@appium/base-driver@npm%3A10.7.1#~/.yarn/patches/@appium-base-driver-npm-10.7.1-e4f8d93069.patch::version=10.7.1&hash=7288fd" + dependencies: + "@appium/support": "npm:7.2.5" + "@appium/types": "npm:1.5.1" + async-lock: "npm:1.4.1" + asyncbox: "npm:6.3.0" + axios: "npm:1.18.0" + body-parser: "npm:2.2.2" + express: "npm:5.2.1" + fastest-levenshtein: "npm:1.0.16" + http-status-codes: "npm:2.3.0" + lru-cache: "npm:11.5.1" + method-override: "npm:3.0.0" + morgan: "npm:1.11.0" + path-to-regexp: "npm:8.4.2" + serve-favicon: "npm:2.5.1" + spdy: "npm:4.0.2" + type-fest: "npm:5.7.0" + dependenciesMeta: + spdy: + optional: true + checksum: 10c0/1698d5aefcdeba3b50be2c3ce977233352338c8cd8bf336735b67e651f166a026f7b9711db8d0cb5b59439144bb400906ab8d22e74e0b2450c51f342c39394d0 + languageName: node + linkType: hard + "@appium/base-plugin@npm:3.3.2": version: 3.3.2 resolution: "@appium/base-plugin@npm:3.3.2"