зеркало из https://github.com/microsoft/rnx-kit.git
chore: bump `react-native` to 0.76 (#3409)
This commit is contained in:
Родитель
d5369a4583
Коммит
7797436ffe
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
---
|
|
@ -4,7 +4,7 @@
|
|||
"packageRules": [
|
||||
{
|
||||
"groupName": "@react-native-community/cli",
|
||||
"allowedVersions": "^14.0.0",
|
||||
"allowedVersions": "^15.0.0"
|
||||
"matchPackageNames": ["@react-native-community/cli{/,}**"]
|
||||
},
|
||||
{
|
||||
|
@ -28,7 +28,7 @@
|
|||
},
|
||||
{
|
||||
"groupName": "Metro",
|
||||
"allowedVersions": "^0.80.0",
|
||||
"allowedVersions": "^0.81.0"
|
||||
"matchSourceUrls": ["https://github.com/facebook/metro{/,}**"]
|
||||
},
|
||||
{
|
||||
|
@ -76,7 +76,7 @@
|
|||
"react-native-macos",
|
||||
"react-native-windows"
|
||||
],
|
||||
"allowedVersions": "^0.75.0"
|
||||
"allowedVersions": "^0.76.0"
|
||||
}
|
||||
],
|
||||
"postUpdateOptions": ["yarnDedupeHighest"],
|
||||
|
|
|
@ -23,10 +23,13 @@ packageExtensions:
|
|||
babel-plugin-transform-flow-enums@*:
|
||||
peerDependencies:
|
||||
"@babel/core": ^7.20.0
|
||||
metro-config@*:
|
||||
react-native@*:
|
||||
dependencies:
|
||||
# `metro-config` fails to resolve `JsTransformerConfig` because it's in another package
|
||||
metro-transform-worker: ^0.80.0
|
||||
# https://github.com/facebook/react-native/pull/47304
|
||||
"@react-native-community/cli": ^15.0.0
|
||||
# https://github.com/facebook/react-native/pull/47308
|
||||
"@react-native-community/cli-platform-android": ^15.0.0
|
||||
"@react-native-community/cli-platform-ios": ^15.0.0
|
||||
plugins:
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-compat.cjs
|
||||
spec: "@yarnpkg/plugin-compat"
|
||||
|
|
|
@ -46,8 +46,8 @@
|
|||
"@types/node": "^20.0.0",
|
||||
"eslint": "^9.0.0",
|
||||
"prettier": "^3.0.0",
|
||||
"react": "^18.2.0",
|
||||
"react-native": "^0.75.0",
|
||||
"react": "18.3.1",
|
||||
"react-native": "^0.76.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"engines": {
|
||||
|
|
|
@ -61,10 +61,8 @@
|
|||
"eslint": "^9.0.0",
|
||||
"jest": "^29.2.1",
|
||||
"prettier": "^3.0.0",
|
||||
"react": "^18.2.0",
|
||||
"react-native": "^0.75.0",
|
||||
"react-native-macos": "^0.75.0",
|
||||
"react-native-windows": "^0.75.0",
|
||||
"react": "18.3.1",
|
||||
"react-native": "^0.76.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"engines": {
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
"@types/babel__template": "^7.0.0",
|
||||
"@types/node": "^20.0.0",
|
||||
"eslint": "^9.0.0",
|
||||
"metro-config": "^0.80.3",
|
||||
"metro-config": "^0.81.0",
|
||||
"prettier": "^3.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
|
@ -60,7 +60,7 @@
|
|||
"alignDeps": {
|
||||
"requirements": {
|
||||
"development": [
|
||||
"react-native@0.75"
|
||||
"react-native@0.76"
|
||||
],
|
||||
"production": [
|
||||
"react-native@>=0.72 <1.0"
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@rnx-kit/console": "^2.0.0",
|
||||
"metro-symbolicate": "^0.80.0",
|
||||
"metro-symbolicate": "^0.81.0",
|
||||
"source-map": "^0.5.6",
|
||||
"yargs": "^16.0.0"
|
||||
},
|
||||
|
|
46
package.json
46
package.json
|
@ -39,7 +39,7 @@
|
|||
"@types/node": "^20.0.0",
|
||||
"eslint": "^9.0.0",
|
||||
"knip": "^5.30.2",
|
||||
"metro": "^0.80.3",
|
||||
"metro": "^0.81.0",
|
||||
"nx": "~19.8.0",
|
||||
"prettier": "^3.0.0",
|
||||
"prettier-plugin-organize-imports": "^4.0.0",
|
||||
|
@ -53,28 +53,28 @@
|
|||
"resolutions": {
|
||||
"@microsoft/eslint-plugin-sdl/eslint-plugin-react": "^7.35.2",
|
||||
"@microsoft/eslint-plugin-sdl/eslint-plugin-security": "^1.4.0",
|
||||
"@react-native-community/cli": "^14.0.0",
|
||||
"@react-native-community/cli-platform-android": "^14.0.0",
|
||||
"@react-native-community/cli-platform-apple": "^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",
|
||||
"@react-native-community/cli": "^15.0.0",
|
||||
"@react-native-community/cli-platform-android": "^15.0.0",
|
||||
"@react-native-community/cli-platform-apple": "^15.0.0",
|
||||
"@react-native-community/cli-platform-ios": "^15.0.0",
|
||||
"@react-native-community/cli-server-api": "^15.0.0",
|
||||
"@react-native-community/cli-tools": "^15.0.0",
|
||||
"@react-native-community/cli-types": "^15.0.0",
|
||||
"@rnx-kit/react-native-host": "workspace:*",
|
||||
"@vue/compiler-sfc": "link:./incubator/ignore",
|
||||
"react-native-macos/@react-native/assets-registry": "^0.75.0",
|
||||
"react-native-macos/@react-native/codegen": "^0.75.0",
|
||||
"react-native-macos/@react-native/community-cli-plugin": "^0.75.0",
|
||||
"react-native-macos/@react-native/gradle-plugin": "^0.75.0",
|
||||
"react-native-macos/@react-native/js-polyfills": "^0.75.0",
|
||||
"react-native-macos/@react-native/normalize-colors": "^0.75.0",
|
||||
"react-native-windows/@react-native/assets-registry": "^0.75.0",
|
||||
"react-native-windows/@react-native/codegen": "^0.75.0",
|
||||
"react-native-windows/@react-native/community-cli-plugin": "^0.75.0",
|
||||
"react-native-windows/@react-native/gradle-plugin": "^0.75.0",
|
||||
"react-native-windows/@react-native/js-polyfills": "^0.75.0",
|
||||
"react-native-windows/@react-native/normalize-colors": "^0.75.0",
|
||||
"react-native-windows/@react-native/virtualized-lists": "^0.75.0"
|
||||
"react-native-macos/@react-native/assets-registry": "^0.76.0",
|
||||
"react-native-macos/@react-native/codegen": "^0.76.0",
|
||||
"react-native-macos/@react-native/community-cli-plugin": "^0.76.0",
|
||||
"react-native-macos/@react-native/gradle-plugin": "^0.76.0",
|
||||
"react-native-macos/@react-native/js-polyfills": "^0.76.0",
|
||||
"react-native-macos/@react-native/normalize-colors": "^0.76.0",
|
||||
"react-native-windows/@react-native/assets-registry": "^0.76.0",
|
||||
"react-native-windows/@react-native/codegen": "^0.76.0",
|
||||
"react-native-windows/@react-native/community-cli-plugin": "^0.76.0",
|
||||
"react-native-windows/@react-native/gradle-plugin": "^0.76.0",
|
||||
"react-native-windows/@react-native/js-polyfills": "^0.76.0",
|
||||
"react-native-windows/@react-native/normalize-colors": "^0.76.0",
|
||||
"react-native-windows/@react-native/virtualized-lists": "^0.76.0"
|
||||
},
|
||||
"workspaces": {
|
||||
"packages": [
|
||||
|
@ -125,9 +125,7 @@
|
|||
"incubator/@react-native-webapis/web-storage": {
|
||||
"ignoreDependencies": [
|
||||
"@babel/core",
|
||||
"@babel/preset-env",
|
||||
"react-native-macos",
|
||||
"react-native-windows"
|
||||
"@babel/preset-env"
|
||||
]
|
||||
},
|
||||
"packages/babel-preset-metro-react-native": {
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
"update-readme": "node scripts/update-readme.mjs"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@react-native-community/cli-types": "^14.0.0",
|
||||
"@react-native-community/cli-types": "^15.0.0",
|
||||
"@rnx-kit/config": "*",
|
||||
"@rnx-kit/console": "*",
|
||||
"@rnx-kit/eslint-config": "*",
|
||||
|
|
|
@ -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.75.0",
|
||||
"@react-native/babel-preset": "^0.76.0",
|
||||
"@rnx-kit/babel-plugin-import-path-remapper": "*",
|
||||
"@rnx-kit/eslint-config": "*",
|
||||
"@rnx-kit/scripts": "*",
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
"devDependencies": {
|
||||
"@babel/core": "^7.20.0",
|
||||
"@babel/preset-env": "^7.20.0",
|
||||
"@react-native-community/cli-types": "^14.0.0",
|
||||
"@react-native-community/cli-types": "^15.0.0",
|
||||
"@rnx-kit/eslint-config": "*",
|
||||
"@rnx-kit/jest-preset": "*",
|
||||
"@rnx-kit/scripts": "*",
|
||||
|
@ -86,12 +86,12 @@
|
|||
"eslint": "^9.0.0",
|
||||
"jest": "^29.2.1",
|
||||
"markdown-table": "^3.0.0",
|
||||
"metro": "^0.80.3",
|
||||
"metro-babel-transformer": "^0.80.0",
|
||||
"metro-config": "^0.80.3",
|
||||
"metro": "^0.81.0",
|
||||
"metro-babel-transformer": "^0.81.0",
|
||||
"metro-config": "^0.81.0",
|
||||
"prettier": "^3.0.0",
|
||||
"react": "^18.2.0",
|
||||
"react-native": "^0.75.0",
|
||||
"react": "18.3.1",
|
||||
"react-native": "^0.76.0",
|
||||
"tsx": "^4.15.0",
|
||||
"type-fest": "^4.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
"@types/node": "^20.0.0",
|
||||
"@types/semver": "^7.0.0",
|
||||
"eslint": "^9.0.0",
|
||||
"metro": "^0.80.3",
|
||||
"metro": "^0.81.0",
|
||||
"prettier": "^3.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
|
|
|
@ -42,8 +42,8 @@
|
|||
"devDependencies": {
|
||||
"@eslint/js": "^9.0.0",
|
||||
"@jest/types": "^29.2.1",
|
||||
"@react-native-community/cli-types": "^14.0.0",
|
||||
"@react-native/babel-preset": "^0.75.0",
|
||||
"@react-native-community/cli-types": "^15.0.0",
|
||||
"@react-native/babel-preset": "^0.76.0",
|
||||
"@rnx-kit/scripts": "*",
|
||||
"@rnx-kit/tsconfig": "*",
|
||||
"@types/jest": "^29.2.1",
|
||||
|
@ -51,8 +51,8 @@
|
|||
"eslint": "^9.0.0",
|
||||
"jest": "^29.2.1",
|
||||
"prettier": "^3.0.0",
|
||||
"react": "^18.2.0",
|
||||
"react-native": "^0.75.0",
|
||||
"react": "18.3.1",
|
||||
"react-native": "^0.76.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"engines": {
|
||||
|
|
|
@ -47,12 +47,12 @@
|
|||
"@types/babel__core": "^7.0.0",
|
||||
"@types/connect": "^3.4.36",
|
||||
"eslint": "^9.0.0",
|
||||
"metro": "^0.80.3",
|
||||
"metro-config": "^0.80.3",
|
||||
"metro-resolver": "^0.80.3",
|
||||
"metro": "^0.81.0",
|
||||
"metro-config": "^0.81.0",
|
||||
"metro-resolver": "^0.81.0",
|
||||
"prettier": "^3.0.0",
|
||||
"react": "^18.2.0",
|
||||
"react-native": "^0.75.0",
|
||||
"react": "18.3.1",
|
||||
"react-native": "^0.76.0",
|
||||
"type-fest": "^4.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
|
|
|
@ -41,6 +41,7 @@ function assetPlugin(assetData) {
|
|||
*/
|
||||
function injectAssetPlugin(server) {
|
||||
const config = server._config;
|
||||
// @ts-expect-error Types broke in Metro 0.81
|
||||
if (!config || !Array.isArray(config.transformer.assetPlugins)) {
|
||||
console.warn(
|
||||
"'@rnx-kit/metro-config' was unable to install the asset plugin for " +
|
||||
|
@ -51,6 +52,7 @@ function injectAssetPlugin(server) {
|
|||
return;
|
||||
}
|
||||
|
||||
// @ts-expect-error Types broke in Metro 0.81
|
||||
config.transformer.assetPlugins.push(__filename);
|
||||
}
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ function isExpoConfig(config) {
|
|||
if (transformer) {
|
||||
if (
|
||||
"_expoRelativeProjectRoot" in transformer ||
|
||||
// @ts-expect-error Types broke in Metro 0.81
|
||||
transformer.babelTransformerPath?.includes("@expo")
|
||||
) {
|
||||
return true;
|
||||
|
|
|
@ -9,6 +9,7 @@ describe("isExpoConfig()", () => {
|
|||
ok(!isExpoConfig({}));
|
||||
ok(
|
||||
!isExpoConfig({
|
||||
// @ts-expect-error Types broke in Metro 0.81
|
||||
transformer: { babelTransformerPath: "metro-babel-transformer" },
|
||||
})
|
||||
);
|
||||
|
@ -19,6 +20,7 @@ describe("isExpoConfig()", () => {
|
|||
transformer: { _expoRelativeProjectRoot: null },
|
||||
} as MetroConfig)
|
||||
);
|
||||
// @ts-expect-error Types broke in Metro 0.81
|
||||
ok(isExpoConfig({ transformer: { babelTransformerPath: "@expo" } }));
|
||||
ok(isExpoConfig({ transformerPath: "@expo" }));
|
||||
});
|
||||
|
|
|
@ -282,6 +282,7 @@ describe("makeMetroConfig", () => {
|
|||
equal(config.resolver.blockList.source, blockList);
|
||||
|
||||
equal(config.server.enhanceMiddleware, enhanceMiddleware);
|
||||
// @ts-expect-error Types broke in Metro 0.81
|
||||
deepEqual(config.transformer.assetPlugins, []);
|
||||
|
||||
const opts = { dev: false, hot: false };
|
||||
|
@ -356,6 +357,7 @@ describe("makeMetroConfig", () => {
|
|||
equal(config.resolver.blockList.source, blockList);
|
||||
|
||||
equal(config.server.enhanceMiddleware, enhanceMiddleware);
|
||||
// @ts-expect-error Types broke in Metro 0.81
|
||||
deepEqual(config.transformer.assetPlugins, []);
|
||||
|
||||
const opts = { dev: false, hot: false };
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
"@rnx-kit/tsconfig": "*",
|
||||
"@types/node": "^20.0.0",
|
||||
"eslint": "^9.0.0",
|
||||
"metro": "^0.80.3",
|
||||
"metro": "^0.81.0",
|
||||
"prettier": "^3.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
|
|
|
@ -43,8 +43,8 @@
|
|||
"eslint": "^9.0.0",
|
||||
"jest": "^29.2.1",
|
||||
"memfs": "^4.0.0",
|
||||
"metro": "^0.80.3",
|
||||
"metro-source-map": "^0.80.0",
|
||||
"metro": "^0.81.0",
|
||||
"metro-source-map": "^0.81.0",
|
||||
"prettier": "^3.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
"@types/node": "^20.0.0",
|
||||
"eslint": "^9.0.0",
|
||||
"jest": "^29.2.1",
|
||||
"metro": "^0.80.3",
|
||||
"metro": "^0.81.0",
|
||||
"prettier": "^3.0.0"
|
||||
},
|
||||
"engines": {
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
"@types/node": "^20.0.0",
|
||||
"eslint": "^9.0.0",
|
||||
"jest": "^29.2.1",
|
||||
"metro-resolver": "^0.80.3",
|
||||
"metro-resolver": "^0.81.0",
|
||||
"prettier": "^3.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
|
|
1
packages/metro-resolver-symlinks/test/__fixtures__/duplicates/node_modules/react-native/index.js
поставляемый
Normal file
1
packages/metro-resolver-symlinks/test/__fixtures__/duplicates/node_modules/react-native/index.js
поставляемый
Normal file
|
@ -0,0 +1 @@
|
|||
module.exports = {};
|
|
@ -12,7 +12,29 @@ function makeContext(
|
|||
const context = {
|
||||
originModulePath: "",
|
||||
doesFileExist: fs.existsSync,
|
||||
fileSystemLookup: (absoluteOrProjectRelativePath: string) => {
|
||||
if (!fs.existsSync(absoluteOrProjectRelativePath)) {
|
||||
return { exists: false };
|
||||
}
|
||||
|
||||
const stat = fs.statSync(absoluteOrProjectRelativePath);
|
||||
return {
|
||||
exists: true,
|
||||
type: stat.isFile() ? "f" : "d",
|
||||
realPath: path.resolve(absoluteOrProjectRelativePath),
|
||||
};
|
||||
},
|
||||
getPackage: (packageJsonPath: string) => {
|
||||
const json = fs.readFileSync(packageJsonPath, { encoding: "utf-8" });
|
||||
return JSON.parse(json);
|
||||
},
|
||||
getPackageForModule: (absoluteModulePath: string) => {
|
||||
if (!absoluteModulePath) {
|
||||
return null;
|
||||
}
|
||||
},
|
||||
isAssetFile: () => false,
|
||||
mainFields: ["react-native", "browser", "main"],
|
||||
nodeModulesPaths: [".", "..", "../.."],
|
||||
redirectModulePath: (modulePath: string) => modulePath,
|
||||
resolveRequest,
|
||||
|
@ -29,25 +51,27 @@ describe("makeResolver", () => {
|
|||
});
|
||||
|
||||
test("returns `react-native` with Metro <0.68", () => {
|
||||
process.chdir(useFixture("duplicates"));
|
||||
const fixture = useFixture("duplicates");
|
||||
process.chdir(fixture);
|
||||
|
||||
const resolveRequest = makeResolver();
|
||||
const context = makeContext(resolveRequest);
|
||||
|
||||
expect(resolveRequest(context, "react-native", "ios")).toEqual({
|
||||
filePath: path.join("node_modules", "react-native"),
|
||||
filePath: path.join(fixture, "node_modules", "react-native", "index.js"),
|
||||
type: "sourceFile",
|
||||
});
|
||||
});
|
||||
|
||||
test("returns `react-native` with Metro >=0.68", () => {
|
||||
process.chdir(useFixture("duplicates"));
|
||||
const fixture = useFixture("duplicates");
|
||||
process.chdir(fixture);
|
||||
|
||||
const resolveRequest = makeResolver();
|
||||
const context = makeContext(resolve, true);
|
||||
|
||||
expect(resolveRequest(context, "react-native", "ios")).toEqual({
|
||||
filePath: path.join("node_modules", "react-native"),
|
||||
filePath: path.join(fixture, "node_modules", "react-native", "index.js"),
|
||||
type: "sourceFile",
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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": "^14.0.0",
|
||||
"@react-native/babel-preset": "^0.75.0",
|
||||
"@react-native/metro-config": "^0.75.0",
|
||||
"@react-native-community/cli-types": "^15.0.0",
|
||||
"@react-native/babel-preset": "^0.76.0",
|
||||
"@react-native/metro-config": "^0.76.0",
|
||||
"@rnx-kit/babel-plugin-import-path-remapper": "*",
|
||||
"@rnx-kit/babel-preset-metro-react-native": "*",
|
||||
"@rnx-kit/eslint-config": "*",
|
||||
|
@ -51,12 +51,12 @@
|
|||
"@types/node": "^20.0.0",
|
||||
"eslint": "^9.0.0",
|
||||
"lodash-es": "^4.17.21",
|
||||
"metro": "^0.80.3",
|
||||
"metro-config": "^0.80.3",
|
||||
"metro-transform-worker": "^0.80.0",
|
||||
"metro": "^0.81.0",
|
||||
"metro-config": "^0.81.0",
|
||||
"metro-transform-worker": "^0.81.0",
|
||||
"prettier": "^3.0.0",
|
||||
"react": "^18.2.0",
|
||||
"react-native": "^0.75.0",
|
||||
"react": "18.3.1",
|
||||
"react-native": "^0.76.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"engines": {
|
||||
|
|
|
@ -23,6 +23,7 @@ export const esbuildTransformerConfig: Partial<TransformerConfigT> = {
|
|||
/**
|
||||
* Minifying is unnecessary as esbuild will take care of it.
|
||||
*/
|
||||
// @ts-expect-error Types broke in Metro 0.81
|
||||
minifierPath: require.resolve("./minify"),
|
||||
|
||||
/**
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
"@types/semver": "^7.0.0",
|
||||
"eslint": "^9.0.0",
|
||||
"jest": "^29.2.1",
|
||||
"metro": "^0.80.3",
|
||||
"metro": "^0.81.0",
|
||||
"prettier": "^3.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
|
|
|
@ -49,20 +49,20 @@
|
|||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@react-native-community/cli-types": "^14.0.0",
|
||||
"@react-native/assets-registry": "^0.75.0",
|
||||
"@react-native-community/cli-types": "^15.0.0",
|
||||
"@react-native/assets-registry": "^0.76.0",
|
||||
"@rnx-kit/eslint-config": "*",
|
||||
"@rnx-kit/scripts": "*",
|
||||
"@rnx-kit/tsconfig": "*",
|
||||
"@types/node": "^20.0.0",
|
||||
"@types/node-fetch": "^2.6.5",
|
||||
"eslint": "^9.0.0",
|
||||
"flow-remove-types": "~2.246.0",
|
||||
"metro": "^0.80.3",
|
||||
"metro-config": "^0.80.3",
|
||||
"metro-core": "^0.80.3",
|
||||
"metro-resolver": "^0.80.3",
|
||||
"metro-runtime": "^0.80.3",
|
||||
"flow-remove-types": "~2.258.0",
|
||||
"metro": "^0.81.0",
|
||||
"metro-config": "^0.81.0",
|
||||
"metro-core": "^0.81.0",
|
||||
"metro-resolver": "^0.81.0",
|
||||
"metro-runtime": "^0.81.0",
|
||||
"prettier": "^3.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
|
|
|
@ -38,17 +38,17 @@
|
|||
"devDependencies": {
|
||||
"@babel/core": "^7.20.0",
|
||||
"@babel/preset-env": "^7.20.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",
|
||||
"@react-native-community/cli": "^15.0.0",
|
||||
"@react-native-community/cli-platform-android": "^15.0.0",
|
||||
"@react-native-community/cli-platform-ios": "^15.0.0",
|
||||
"@react-native/metro-config": "^0.76.0",
|
||||
"@rnx-kit/eslint-config": "*",
|
||||
"@rnx-kit/scripts": "*",
|
||||
"@rnx-kit/tsconfig": "*",
|
||||
"eslint": "^9.0.0",
|
||||
"prettier": "^3.0.0",
|
||||
"react": "^18.2.0",
|
||||
"react-native": "^0.75.0",
|
||||
"react": "18.3.1",
|
||||
"react-native": "^0.76.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"engines": {
|
||||
|
@ -61,7 +61,7 @@
|
|||
],
|
||||
"requirements": {
|
||||
"development": [
|
||||
"react-native@0.75"
|
||||
"react-native@0.76"
|
||||
],
|
||||
"production": [
|
||||
"react-native@>=0.62 <1.0"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
platform :ios, '14.0'
|
||||
|
||||
require_relative '../node_modules/react-native-test-app/test_app'
|
||||
|
||||
workspace 'SampleCrossApp.xcworkspace'
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -29,9 +29,9 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@react-native-webapis/web-storage": "workspace:*",
|
||||
"react": "^18.2.0",
|
||||
"react-native": "^0.75.0",
|
||||
"react-native-windows": "^0.75.0"
|
||||
"react": "18.3.1",
|
||||
"react-native": "^0.76.0",
|
||||
"react-native-windows": "^0.76.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.20.0",
|
||||
|
@ -40,11 +40,11 @@
|
|||
"@babel/preset-env": "^7.20.0",
|
||||
"@babel/runtime": "^7.20.0",
|
||||
"@jridgewell/trace-mapping": "^0.3.18",
|
||||
"@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/babel-preset": "^0.75.0",
|
||||
"@react-native/metro-config": "^0.75.0",
|
||||
"@react-native-community/cli": "^15.0.0",
|
||||
"@react-native-community/cli-platform-android": "^15.0.0",
|
||||
"@react-native-community/cli-platform-ios": "^15.0.0",
|
||||
"@react-native/babel-preset": "^0.76.0",
|
||||
"@react-native/metro-config": "^0.76.0",
|
||||
"@rnx-kit/babel-preset-metro-react-native": "workspace:*",
|
||||
"@rnx-kit/build": "workspace:*",
|
||||
"@rnx-kit/cli": "workspace:*",
|
||||
|
@ -69,7 +69,7 @@
|
|||
"jest": "^29.2.1",
|
||||
"prettier": "^3.0.0",
|
||||
"react-native-test-app": "^4.0.0",
|
||||
"react-test-renderer": "^18.2.0",
|
||||
"react-test-renderer": "18.3.1",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"rnx-kit": {
|
||||
|
@ -184,7 +184,7 @@
|
|||
"@rnx-kit/scripts/align-deps-preset.cjs"
|
||||
],
|
||||
"requirements": [
|
||||
"react-native@0.75"
|
||||
"react-native@0.76"
|
||||
],
|
||||
"capabilities": [
|
||||
"core-android",
|
||||
|
|
|
@ -230,7 +230,7 @@ exports[`renders correctly 1`] = `
|
|||
}
|
||||
testID="react-native-value"
|
||||
>
|
||||
0.75.4
|
||||
0.76.6
|
||||
</Text>
|
||||
</View>
|
||||
<View
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
"yargs": "^16.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@react-native-community/cli-types": "^14.0.0",
|
||||
"@react-native-community/cli-types": "^15.0.0",
|
||||
"@rnx-kit/eslint-config": "*",
|
||||
"@rnx-kit/jest-preset": "*",
|
||||
"@rnx-kit/metro-serializer": "*",
|
||||
|
@ -47,7 +47,7 @@
|
|||
"@types/yargs": "^16.0.0",
|
||||
"eslint": "^9.0.0",
|
||||
"jest": "^29.2.1",
|
||||
"metro-source-map": "^0.80.0",
|
||||
"metro-source-map": "^0.81.0",
|
||||
"prettier": "^3.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
|
|
|
@ -67,19 +67,19 @@
|
|||
"@rnx-kit/tools-node": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@react-native-community/cli": "^14.0.0",
|
||||
"@react-native-community/cli-types": "^14.0.0",
|
||||
"@react-native-community/cli": "^15.0.0",
|
||||
"@react-native-community/cli-types": "^15.0.0",
|
||||
"@rnx-kit/eslint-config": "*",
|
||||
"@rnx-kit/scripts": "*",
|
||||
"@rnx-kit/tools-filesystem": "*",
|
||||
"@rnx-kit/tsconfig": "*",
|
||||
"@types/node": "^20.0.0",
|
||||
"eslint": "^9.0.0",
|
||||
"metro": "^0.80.3",
|
||||
"metro-config": "^0.80.3",
|
||||
"metro-core": "^0.80.3",
|
||||
"metro-resolver": "^0.80.3",
|
||||
"metro-source-map": "^0.80.0",
|
||||
"metro": "^0.81.0",
|
||||
"metro-config": "^0.81.0",
|
||||
"metro-core": "^0.81.0",
|
||||
"metro-resolver": "^0.81.0",
|
||||
"metro-source-map": "^0.81.0",
|
||||
"prettier": "^3.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
|
|
|
@ -9,7 +9,7 @@ cli({
|
|||
"microsoft/react-native",
|
||||
fileURLToPath(new URL("align-deps-preset.cjs", import.meta.url)),
|
||||
],
|
||||
requirements: ["react-native@0.75"],
|
||||
requirements: ["react-native@0.76"],
|
||||
write: process.argv.includes("--write"),
|
||||
"exclude-packages": ["@rnx-kit/metro-plugin-typescript"],
|
||||
});
|
||||
|
|
1739
yarn.lock
1739
yarn.lock
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче