Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/nervous-actors-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rnx-kit/dep-check": patch
---

Add profile for react-native 0.69
5 changes: 5 additions & 0 deletions .changeset/slow-files-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rnx-kit/react-native-auth": patch
---

Declare support for react-native 0.69
94 changes: 47 additions & 47 deletions packages/dep-check/README.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions packages/dep-check/src/presets/microsoft/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import profile_0_65 from "./profile-0.65";
import profile_0_66 from "./profile-0.66";
import profile_0_67 from "./profile-0.67";
import profile_0_68 from "./profile-0.68";
import profile_0_69 from "./profile-0.69";

// Also export this by name for scripts to work around a bug where this module
// is wrapped twice, i.e. `{ default: { default: preset } }`, when imported as
Expand All @@ -20,6 +21,7 @@ export const preset: Readonly<ProfileMap> = {
"0.66": profile_0_66,
"0.67": profile_0_67,
"0.68": profile_0_68,
"0.69": profile_0_69,
};

export default preset;
10 changes: 7 additions & 3 deletions packages/dep-check/src/presets/microsoft/profile-0.65.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import profile_0_64 from "./profile-0.64";

const reactNative: Package = {
name: "react-native",
version: "^0.65.0-0",
version: "^0.65.0",
capabilities: ["react"],
};

Expand All @@ -30,12 +30,12 @@ const profile: Profile = {
"core-ios": reactNative,
"core-macos": {
name: "react-native-macos",
version: "^0.65.0-0",
version: "^0.65.0",
capabilities: ["react"],
},
"core-windows": {
name: "react-native-windows",
version: "^0.65.0-0",
version: "^0.65.0",
capabilities: ["core"],
},

Expand Down Expand Up @@ -68,6 +68,10 @@ const profile: Profile = {
name: "hermes-engine",
version: "~0.8.1",
},
hooks: {
name: "@react-native-community/hooks",
version: "^2.8.0",
},
jest: {
name: "jest",
version: "^26.6.3",
Expand Down
10 changes: 7 additions & 3 deletions packages/dep-check/src/presets/microsoft/profile-0.66.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import profile_0_65 from "./profile-0.65";

const reactNative: Package = {
name: "react-native",
version: "^0.66.0-0",
version: "^0.66.0",
capabilities: ["react"],
};

Expand All @@ -30,12 +30,12 @@ const profile: Profile = {
"core-ios": reactNative,
"core-macos": {
name: "react-native-macos",
version: "^0.66.0-0",
version: "^0.66.0",
capabilities: ["react"],
},
"core-windows": {
name: "react-native-windows",
version: "^0.66.0-0",
version: "^0.66.0",
capabilities: ["core"],
},

Expand Down Expand Up @@ -108,6 +108,10 @@ const profile: Profile = {
name: "react-native-screens",
version: "^3.9.0",
},
storage: {
name: "@react-native-async-storage/async-storage",
version: "^1.15.9",
},
"test-app": {
name: "react-native-test-app",
version: "^1.0.6",
Expand Down
15 changes: 12 additions & 3 deletions packages/dep-check/src/presets/microsoft/profile-0.67.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import profile_0_66 from "./profile-0.66";

const reactNative: Package = {
name: "react-native",
version: "^0.67.0-0",
version: "^0.67.0",
capabilities: ["react"],
};

Expand All @@ -30,19 +30,28 @@ const profile: Profile = {
"core-ios": reactNative,
"core-macos": {
name: "react-native-macos",
version: "^0.67.0-0",
version: "^0.67.0",
capabilities: ["react"],
},
"core-windows": {
name: "react-native-windows",
version: "^0.67.0-0",
version: "^0.67.0",
capabilities: ["core"],
},

animation: {
name: "react-native-reanimated",
version: "^2.2.4",
},
storage: {
name: "@react-native-async-storage/async-storage",
version: "^1.15.16",
},
"test-app": {
name: "react-native-test-app",
version: "^1.1.7",
devOnly: true,
},
};

export default profile;
23 changes: 20 additions & 3 deletions packages/dep-check/src/presets/microsoft/profile-0.68.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import profile_0_67 from "./profile-0.67";

const reactNative: Package = {
name: "react-native",
version: "^0.68.0-0",
version: "^0.68.0",
capabilities: ["react"],
};

Expand All @@ -30,12 +30,12 @@ const profile: Profile = {
"core-ios": reactNative,
"core-macos": {
name: "react-native-macos",
version: "^0.68.0-0",
version: "^0.68.0",
capabilities: ["react"],
},
"core-windows": {
name: "react-native-windows",
version: "^0.68.0-0",
version: "^0.68.0",
capabilities: ["core"],
},

Expand All @@ -48,6 +48,10 @@ const profile: Profile = {
version: "^0.67.0",
devOnly: true,
},
"datetime-picker": {
name: "@react-native-community/datetimepicker",
version: "^6.0.2",
},
gestures: {
name: "react-native-gesture-handler",
version: "^2.3.2",
Expand Down Expand Up @@ -90,6 +94,19 @@ const profile: Profile = {
name: "react-native-screens",
version: "^3.13.1",
},
storage: {
name: "@react-native-async-storage/async-storage",
version: "^1.17.3",
},
"test-app": {
name: "react-native-test-app",
version: "^1.3.5",
devOnly: true,
},
webview: {
name: "react-native-webview",
version: "^11.18.1",
},
};

export default profile;
106 changes: 106 additions & 0 deletions packages/dep-check/src/presets/microsoft/profile-0.69.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
import type { Profile, Package } from "../../types";
import profile_0_68 from "./profile-0.68";

const reactNative: Package = {
name: "react-native",
version: "^0.69.0",
capabilities: ["react"],
};

const profile: Profile = {
...profile_0_68,
react: {
name: "react",
version: "18.0.0",
},
"react-dom": {
name: "react-dom",
version: "^18.0.0",
capabilities: ["react"],
},
"react-test-renderer": {
name: "react-test-renderer",
version: "18.0.0",
capabilities: ["react"],
devOnly: true,
},
core: reactNative,
"core-android": reactNative,
"core-ios": reactNative,
"core-macos": {
name: "react-native-macos",
version: "^0.69.0",
capabilities: ["react"],
},
"core-windows": {
name: "react-native-windows",
version: "^0.69.0",
capabilities: ["core"],
},
"babel-preset-react-native": {
name: "metro-react-native-babel-preset",
version: "^0.70.3",
devOnly: true,
},
gestures: {
name: "react-native-gesture-handler",
version: "^2.4.2",
},
metro: {
name: "metro",
version: "^0.70.1",
devOnly: true,
},
"metro-config": {
name: "metro-config",
version: "^0.70.1",
devOnly: true,
},
"metro-core": {
name: "metro-core",
version: "^0.70.1",
devOnly: true,
},
"metro-react-native-babel-transformer": {
name: "metro-react-native-babel-transformer",
version: "^0.70.1",
devOnly: true,
},
"metro-resolver": {
name: "metro-resolver",
version: "^0.70.1",
devOnly: true,
},
"metro-runtime": {
name: "metro-runtime",
version: "^0.70.1",
devOnly: true,
},
netinfo: {
name: "@react-native-community/netinfo",
version: "^8.0.0",
},
popover: {
name: "react-native-popover-view",
version: "^5.0.0",
},
"safe-area": {
name: "react-native-safe-area-context",
version: "^4.3.1",
},
sqlite: {
name: "react-native-sqlite-storage",
version: "^6.0.1",
},
"test-app": {
name: "react-native-test-app",
version: "^1.3.10",
devOnly: true,
},
webview: {
name: "react-native-webview",
version: "^11.22.2",
},
};

export default profile;
3 changes: 2 additions & 1 deletion packages/dep-check/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ export type ProfileVersion =
| "0.65"
| "0.66"
| "0.67"
| "0.68";
| "0.68"
| "0.69";

export type ProfileMap = Record<ProfileVersion, Profile>;

Expand Down
7 changes: 7 additions & 0 deletions packages/dep-check/test/__snapshots__/profiles.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,12 @@ Object {
"version": "^2.5.1",
},
},
"0.69": Object {
"format": Object {
"devOnly": true,
"name": "prettier",
"version": "^2.5.1",
},
},
}
`;
2 changes: 1 addition & 1 deletion packages/dep-check/test/profiles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe("getProfileVersionsFor()", () => {

test("returns profiles for bigger version ranges", () => {
const profiles = getProfileVersionsFor(">=0.64.2");
expect(profiles).toEqual(["0.64", "0.65", "0.66", "0.67", "0.68"]);
expect(profiles).toEqual(["0.64", "0.65", "0.66", "0.67", "0.68", "0.69"]);
});

test("returns profiles for multiple version ranges", () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/dep-check/test/vigilant.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ describe("makeVigilantCommand()", () => {
},
peerDependencies: {
react: "17.0.2",
"react-native": "0.64.3 || 0.65.2 || ^0.64.2 || ^0.65.0-0",
"react-native": "0.64.3 || 0.65.2 || ^0.64.2 || ^0.65.0",
},
});
});
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@rnx-kit/eslint-config": "*",
"@rnx-kit/scripts": "*",
"@types/node": "^16.0.0",
"react-native": "^0.66.0-0"
"react-native": "^0.66.0"
},
"depcheck": {
"ignoreMatches": [
Expand Down
2 changes: 1 addition & 1 deletion packages/metro-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@types/metro-config": "^0.66.0",
"metro-config": "^0.66.2",
"prettier": "^2.0.0",
"react-native": "^0.66.0-0",
"react-native": "^0.66.0",
"type-fest": "^2.1.0",
"typescript": "^4.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/metro-serializer-esbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@types/semver": "^7.0.0",
"lodash-es": "^4.17.21",
"metro": "^0.66.2",
"react-native": "^0.66.0-0"
"react-native": "^0.66.0"
},
"depcheck": {
"ignoreMatches": [
Expand Down
6 changes: 3 additions & 3 deletions packages/react-native-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
"lint:kt": "ktlint --relative --verbose 'android/src/**/*.kt'"
},
"peerDependencies": {
"react": "16.11.0 || 16.13.1 || 17.0.1 || 17.0.2",
"react-native": "^0.62.3 || ^0.63.2 || ^0.64.2 || ^0.65.0-0 || ^0.66.0-0 || ^0.67.0-0 || ^0.68.0-0"
"react": "16.11.0 || 16.13.1 || 17.0.1 || 17.0.2 || 18.0.0",
"react-native": "^0.62.3 || ^0.63.2 || ^0.64.2 || ^0.65.0 || ^0.66.0 || ^0.67.0 || ^0.68.0 || ^0.69.0"
},
"devDependencies": {
"@rnx-kit/scripts": "*",
"@types/react-native": "^0.64.0",
"react": "17.0.2",
"react-native": "^0.66.0-0"
"react-native": "^0.66.0"
},
"eslintConfig": {
"extends": "@rnx-kit/eslint-config"
Expand Down
6 changes: 3 additions & 3 deletions packages/test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
},
"dependencies": {
"react": "17.0.2",
"react-native": "^0.66.0-0",
"react-native-macos": "^0.66.0-0",
"react-native-windows": "^0.66.0-0"
"react-native": "^0.66.0",
"react-native-macos": "^0.66.0",
"react-native-windows": "^0.66.0"
},
"devDependencies": {
"@babel/core": "^7.12.9",
Expand Down
Loading