reactjs / react.dev

The React documentation website
https://react.dev/
Creative Commons Attribution 4.0 International
11.07k stars 7.55k forks source link

Recommend installing exact RC #6944

Closed eps1lon closed 5 months ago

eps1lon commented 5 months ago

npm install react@rc would add the latest RC with a caret range to package.json which is generally unsafe since any prerelease may contain breaking changes. Especially in our case where commit hashes are encoded in the prerelease version. The caret range might match a version that was release earlier due to alphanumeric ordering.

npm install --save-exact react@rc will not use the caret range. This is the default behavior of for PNPM so I'm less concerned with documenting install instructions. You're on the save side if you just prepend a p to the NPM command.

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
19-react-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 11, 2024 8:51pm
react-dev ✅ Ready (Inspect) Visit Preview Jun 11, 2024 8:51pm
github-actions[bot] commented 5 months ago

Size changes

## 📦 Next.js Bundle Analysis for react-dev This analysis was generated by the [Next.js Bundle Analysis action](https://github.com/hashicorp/nextjs-bundle-analysis). 🤖 This PR introduced no changes to the JavaScript bundle! 🙌