Skip to content

fix: Pin exact versions of RN CLI dependencies#1893

Merged
thymikee merged 1 commit into
react-native-community:mainfrom
huntie:rfc-version-pinning
Mar 29, 2023
Merged

fix: Pin exact versions of RN CLI dependencies#1893
thymikee merged 1 commit into
react-native-community:mainfrom
huntie:rfc-version-pinning

Conversation

@huntie

@huntie huntie commented Mar 28, 2023

Copy link
Copy Markdown
Collaborator

Summary:

In the React Native repo, we are pinning all versions of @react-native-community/cli dependencies in order to simplify the possible dependency trees of the framework.

Unfortunately, we recently had our version of @react-native-community/cli pinned to "11.0.0-alpha.2", thinking this was sufficient. However (in contexts without a lockfile, such as the RN template) cross-dependencies of packages in this repo using caret versions (e.g. ^11.0.0) meant that adjacent packages could pre-emptively pull in new versions. Therefore, on Friday we unexpectedly received a bump of @react-native-community/cli-plugin-metro at 11.0.0 in our 0.72-rc branch, which broke the RC (and main branch CI).

Relates to:

@huntie huntie force-pushed the rfc-version-pinning branch from d5900a0 to 41ac9c7 Compare March 28, 2023 10:18
Comment thread packages/cli/package.json Outdated

@thymikee thymikee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, let's do it to be compatible with how RN consumes the CLI

@huntie huntie changed the title RFC: Policy - Pin exact versions of RN CLI dependencies fix: Pin exact versions of RN CLI dependencies Mar 28, 2023
@huntie huntie force-pushed the rfc-version-pinning branch from 41ac9c7 to acf7c57 Compare March 28, 2023 17:13
@huntie huntie marked this pull request as ready for review March 28, 2023 17:13
@huntie huntie requested a review from adamTrz as a code owner March 28, 2023 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants