Skip to content

Commit 6e21624

Browse files
fix(deps): update dependency @rnx-kit/react-native-host to ^0.5.0 (#2218)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tommy Nguyen <[email protected]>
1 parent e5cc42e commit 6e21624

18 files changed

+73
-71
lines changed

example/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
"@react-native-community/cli": "^14.0.0",
3333
"@react-native/babel-preset": "^0.75.0",
3434
"@react-native/metro-config": "^0.75.0",
35-
"@rnx-kit/metro-config": "^1.3.17",
36-
"@rnx-kit/polyfills": "^0.1.1",
37-
"@rnx-kit/tsconfig": "^1.0.0",
35+
"@rnx-kit/metro-config": "^2.0.0",
36+
"@rnx-kit/polyfills": "^0.2.0",
37+
"@rnx-kit/tsconfig": "^2.0.0",
3838
"@types/react": "~18.3.0",
3939
"appium": "patch:appium@npm%3A2.11.3#~/.yarn/patches/appium-npm-2.11.2-f39bb587af.patch",
4040
"appium-uiautomator2-driver": "^3.0.0",

example/test/config.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { deepEqual, equal, match, notEqual, ok } from "node:assert/strict";
33
import * as fs from "node:fs";
44
import * as path from "node:path";
55
import { after, before, test } from "node:test";
6-
import { fileURLToPath } from "node:url";
6+
import { URL, fileURLToPath } from "node:url";
77
import { findNearest, readJSONFile } from "../../scripts/helpers.js";
88

99
function getCliVersion() {

example/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"extends": "@rnx-kit/tsconfig/tsconfig.json",
33
"compilerOptions": {
44
"jsx": "react-native",
5-
"noEmit": true
5+
"noEmit": true,
6+
"lib": ["ES2021", "DOM"]
67
},
78
"include": [
89
"App.tsx",

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"generate:code": "node scripts/internal/generate-manifest.mjs",
7373
"generate:docs": "node scripts/internal/generate-manifest-docs.mjs",
7474
"generate:schema": "node scripts/internal/generate-schema.mjs",
75-
"lint:commit": "git log --format='%s' origin/trunk..HEAD | tail -1 | npx @rnx-kit/commitlint-lite@1.0.1",
75+
"lint:commit": "git log --format='%s' origin/trunk..HEAD | tail -1 | npx @rnx-kit/commitlint-lite@2.0.0",
7676
"lint:js": "eslint $(git ls-files '*.[cm]js' '*.[jt]s' '*.tsx' ':!:*.config.js' ':!:.yarn/releases') && tsc && tsc --project tsconfig.cjs.json",
7777
"lint:kt": "ktlint --relative 'android/app/src/**/*.kt'",
7878
"lint:rb": "bundle exec rubocop",
@@ -88,7 +88,7 @@
8888
"test:rb": "bundle exec ruby -Ilib:test -e \"Dir.glob('./test/test_*.rb').each { |file| require(file) }\""
8989
},
9090
"dependencies": {
91-
"@rnx-kit/react-native-host": "^0.4.12",
91+
"@rnx-kit/react-native-host": "^0.5.0",
9292
"ajv": "^8.0.0",
9393
"cliui": "^8.0.0",
9494
"fast-xml-parser": "^4.0.0",
@@ -127,8 +127,8 @@
127127
"@microsoft/eslint-plugin-sdl": "^0.2.0",
128128
"@react-native-community/cli": "^14.0.0",
129129
"@react-native-community/template": "^0.75.0",
130-
"@rnx-kit/eslint-plugin": "^0.7.0",
131-
"@rnx-kit/tsconfig": "^1.0.0",
130+
"@rnx-kit/eslint-plugin": "^0.8.0",
131+
"@rnx-kit/tsconfig": "^2.0.0",
132132
"@types/js-yaml": "^4.0.5",
133133
"@types/mustache": "^4.0.0",
134134
"@types/node": "^20.0.0",

scripts/configure.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import * as nodefs from "node:fs";
44
import { createRequire } from "node:module";
55
import * as path from "node:path";
6-
import { fileURLToPath } from "node:url";
6+
import { URL, fileURLToPath } from "node:url";
77
import semverCoerce from "semver/functions/coerce.js";
88
import semverSatisfies from "semver/functions/satisfies.js";
99
import { cliPlatformIOSVersion } from "./configure-projects.js";
@@ -600,7 +600,7 @@ export function updatePackageManifest(
600600

601601
const { name: rntaName, version: rntaVersion } = readManifest();
602602
manifest["devDependencies"] = mergeObjects(manifest["devDependencies"], {
603-
"@rnx-kit/metro-config": "^1.3.17",
603+
"@rnx-kit/metro-config": "^2.0.0",
604604
[rntaName]: `^${rntaVersion}`,
605605
});
606606

scripts/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function findNearest(
4444

4545
/**
4646
* Returns whether the current module is main.
47-
* @param {string | URL} url
47+
* @param {string | import("node:url").URL} url
4848
* @param {string} script
4949
* @returns {boolean}
5050
*/

scripts/init.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// @ts-check
33
import { createRequire } from "node:module";
44
import * as path from "node:path";
5-
import { fileURLToPath } from "node:url";
5+
import { URL, fileURLToPath } from "node:url";
66
import prompts from "prompts";
77
import { configure, getDefaultPlatformPackageName } from "./configure.mjs";
88
import { memo, readJSONFile, toVersionNumber, v } from "./helpers.js";

scripts/internal/generate-manifest.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-check
22
import * as fs from "node:fs/promises";
33
import * as path from "node:path";
4-
import { fileURLToPath } from "node:url";
4+
import { URL, fileURLToPath } from "node:url";
55
import { generateSchema } from "../schema.mjs";
66

77
/**

scripts/testing/test-apple.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
import { spawnSync } from "node:child_process";
88
import * as fs from "node:fs";
9-
import { fileURLToPath } from "node:url";
9+
import { URL, fileURLToPath } from "node:url";
1010
import { memo, readTextFile } from "../helpers.js";
1111
import { $ } from "./test-e2e.mjs";
1212

scripts/testing/test-matrix.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
import { spawn } from "node:child_process";
88
import * as fs from "node:fs";
9-
import { fileURLToPath } from "node:url";
9+
import { URL, fileURLToPath } from "node:url";
1010
import * as util from "node:util";
1111
import { readTextFile } from "../helpers.js";
1212
import { setReactVersion } from "../internal/set-react-version.mjs";

0 commit comments

Comments
 (0)