Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: react-native RC2 fixes #2424

Merged
merged 1 commit into from
Jun 24, 2024
Merged

fix: react-native RC2 fixes #2424

merged 1 commit into from
Jun 24, 2024

Conversation

blakef
Copy link
Contributor

@blakef blakef commented Jun 21, 2024

Summary:

  1. Removing ~ npm version range from the template looking for installs > 0.75.0. This effectively forces version pinning against the react native release version. For example:
  npx @react-native-community/cli init Foo --version 0.75.0-rc.2

Would install @react-native-community/[email protected] template only. We have a plan to do something more comprehensive, but this is affecting the release and had to be paused. There are 2 exceptions:

  • nightly - always points to the nightly tag
  • 0.75.0-rc.1 - points to 0.75.0-rc.1.1 to unblock the RC1 release
  1. Fixed a bug which disabled using --template and --version for installs > 0.75.0, as the release candidates were < 0.75.0.

Test Plan:

  1. node ./packages/cli/build/bin.js init RN075 --version 0.75.0-rc.1, but since 0.75.0-rc.1 hasn't been released yet, when you come to install in RN075 npm askes you for other versions. If you install 0.75.0-rc.0 it works, which gives me more confidence for 0.75.0-rc.1's release.
  2. node ./packages/cli/build/bin.js init RN075 --version nightly
  3. node ./packages/cli/build/bin.js init RN075 --version next - will only work once we do the react-native RC1 release.
  4. I still want to test out various combinations of --version and --template.

Checklist

  • Documentation is up to date to reflect these changes.
  • Follows commit message convention described in CONTRIBUTING.md

@blakef blakef requested a review from cortinico June 21, 2024 20:18
@blakef blakef requested review from adamTrz and thymikee as code owners June 21, 2024 20:18
1. Removing ~ npm version range from the template looking for installs >
0.75.0. This effectively forces version pinning against the react native
release version.  For example:

  npx @react-native-community/cli init Foo --version 0.75.0-rc2

Would install @react-native-community/[email protected] template only.
We have a plan to do something more comprehensive, but this is affecting
the release and had to be paused. There are 2 exceptions:

- nightly - always points to the nightly tag
- 0.75.0-rc.1 - points to 0.75.0-rc.1.1 to unblock the RC1 release

2. Fixed a bug which disabled using --template and --version for installs >
0.75.0, as the release candidates were < 0.75.0.
@blakef blakef force-pushed the fix/rc2-release-fixes branch from d5dad7c to 0d3f7e3 Compare June 21, 2024 22:34
@blakef blakef removed request for thymikee and adamTrz June 21, 2024 23:06
Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

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

Ok, let's unblock this release then. @blakef please cleanup these comments and version-specific code in a follow-up PR

@thymikee thymikee merged commit b1830b8 into main Jun 24, 2024
10 checks passed
@thymikee thymikee deleted the fix/rc2-release-fixes branch June 24, 2024 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants