Skip to content

Commit

Permalink
fix(align-deps): add profile for 0.77 (#3481)
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 authored Jan 20, 2025
1 parent 049d365 commit 16b7ee6
Show file tree
Hide file tree
Showing 7 changed files with 220 additions and 52 deletions.
5 changes: 5 additions & 0 deletions .changeset/lucky-poets-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rnx-kit/align-deps": patch
---

Added profile for 0.77
100 changes: 50 additions & 50 deletions packages/align-deps/README.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions packages/align-deps/src/presets/microsoft/react-native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { profile as profile_0_73 } from "./react-native/profile-0.73";
import { profile as profile_0_74 } from "./react-native/profile-0.74";
import { profile as profile_0_75 } from "./react-native/profile-0.75";
import { profile as profile_0_76 } from "./react-native/profile-0.76";
import { profile as profile_0_77 } from "./react-native/profile-0.77";

// 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 @@ -36,4 +37,5 @@ export const preset: Readonly<Preset> = {
"0.74": profile_0_74,
"0.75": profile_0_75,
"0.76": profile_0_76,
"0.77": profile_0_77,
};
158 changes: 158 additions & 0 deletions packages/align-deps/src/presets/microsoft/react-native/profile-0.77.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
import type { Package, Profile } from "../../../types";
import { profile as profile_0_76 } from "./profile-0.76";

const reactNative: Package = {
name: "react-native",
version: "^0.77.0",
capabilities: ["react", "core/metro-config", "community/cli"],
};

export const profile: Profile = {
...profile_0_76,

/*********
* React *
*********/

react: {
name: "react",
version: "18.3.1",
},
"react-dom": {
name: "react-dom",
version: "^18.3.1",
capabilities: ["react"],
},
"react-test-renderer": {
name: "react-test-renderer",
version: "18.3.1",
capabilities: ["react"],
devOnly: true,
},

/********
* Core *
********/

core: reactNative,
"core-android": reactNative,
"core-ios": reactNative,
"core-macos": {
name: "react-native-macos",
version: "^0.77.0",
capabilities: ["react"],
},
"core-visionos": {
name: "@callstack/react-native-visionos",
version: "^0.77.0",
capabilities: ["react"],
},
"core-windows": {
name: "react-native-windows",
version: "^0.77.0",
capabilities: ["core"],
},
"core/metro-config": {
name: "@react-native/metro-config",
version: "^0.77.0",
devOnly: true,
},

/*********
* Tools *
*********/

"babel-preset-react-native": {
name: "@react-native/babel-preset",
version: "^0.77.0",
devOnly: true,
},
"community/cli": {
name: "@react-native-community/cli",
version: "^15.0.1",
capabilities: ["community/cli-android", "community/cli-ios"],
devOnly: true,
},
"community/cli-android": {
name: "@react-native-community/cli-platform-android",
version: "^15.0.1",
devOnly: true,
},
"community/cli-ios": {
name: "@react-native-community/cli-platform-ios",
version: "^15.0.1",
devOnly: true,
},
metro: {
name: "metro",
version: "^0.81.0",
devOnly: true,
},
"metro-config": {
name: "metro-config",
version: "^0.81.0",
devOnly: true,
},
"metro-core": {
name: "metro-core",
version: "^0.81.0",
devOnly: true,
},
"metro-react-native-babel-transformer": {
name: "@react-native/metro-babel-transformer",
version: "^0.77.0",
devOnly: true,
},
"metro-resolver": {
name: "metro-resolver",
version: "^0.81.0",
devOnly: true,
},
"metro-runtime": {
name: "metro-runtime",
version: "^0.81.0",
devOnly: true,
},

/*********************
* Community Modules *
*********************/

animation: {
name: "react-native-reanimated",
version: "^3.16.7",
},
clipboard: {
name: "@react-native-clipboard/clipboard",
version: "^1.16.0",
},
gestures: {
name: "react-native-gesture-handler",
version: "^2.22.0",
},
popover: {
name: "react-native-popover-view",
version: "^6.0.1",
},
"safe-area": {
name: "react-native-safe-area-context",
version: "^5.1.0",
},
screens: {
name: "react-native-screens",
version: "^4.5.0",
},
svg: {
name: "react-native-svg",
version: "^15.11.1",
},
"test-app": {
name: "react-native-test-app",
version: "^4.0.9",
devOnly: true,
},
webview: {
name: "react-native-webview",
version: "^13.13.1",
},
};
3 changes: 3 additions & 0 deletions packages/align-deps/test/preset.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { profile as profile_0_73 } from "../src/presets/microsoft/react-native/p
import { profile as profile_0_74 } from "../src/presets/microsoft/react-native/profile-0.74";
import { profile as profile_0_75 } from "../src/presets/microsoft/react-native/profile-0.75";
import { profile as profile_0_76 } from "../src/presets/microsoft/react-native/profile-0.76";
import { profile as profile_0_77 } from "../src/presets/microsoft/react-native/profile-0.77";

describe("filterPreset()", () => {
test("returns no profiles if requirements cannot be satisfied", () => {
Expand Down Expand Up @@ -41,6 +42,7 @@ describe("filterPreset()", () => {
"0.74": profile_0_74,
"0.75": profile_0_75,
"0.76": profile_0_76,
"0.77": profile_0_77,
});
});

Expand All @@ -55,6 +57,7 @@ describe("filterPreset()", () => {
"0.74": profile_0_74,
"0.75": profile_0_75,
"0.76": profile_0_76,
"0.77": profile_0_77,
});
});

Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"peerDependencies": {
"react": "16.11.0 || 16.13.1 || 17.0.1 || 17.0.2 || 18.0.0 || 18.1.0 || 18.2.0 || ^18.2.0 || 18.3.1",
"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 || ^0.70.0 || ^0.71.0 || ^0.72.0 || ^0.73.0 || ^0.74.0 || ^0.75.0 || ^0.76.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 || ^0.70.0 || ^0.71.0 || ^0.72.0 || ^0.73.0 || ^0.74.0 || ^0.75.0 || ^0.76.0 || ^0.77.0"
},
"devDependencies": {
"@babel/core": "^7.20.0",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4257,7 +4257,7 @@ __metadata:
typescript: "npm:^5.0.0"
peerDependencies:
react: 16.11.0 || 16.13.1 || 17.0.1 || 17.0.2 || 18.0.0 || 18.1.0 || 18.2.0 || ^18.2.0 || 18.3.1
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 || ^0.70.0 || ^0.71.0 || ^0.72.0 || ^0.73.0 || ^0.74.0 || ^0.75.0 || ^0.76.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 || ^0.70.0 || ^0.71.0 || ^0.72.0 || ^0.73.0 || ^0.74.0 || ^0.75.0 || ^0.76.0 || ^0.77.0
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 16b7ee6

Please sign in to comment.