-
Notifications
You must be signed in to change notification settings - Fork 26.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(next-codemod): suggest pre-release codemods by their "stable" v…
…ersion (#71158) ### What? Suggest pre-released codemods by their "stable" version. ### Why? It is because if we suggest by the version range `(installed ~ target)`, pre-released codemods for the target version are not suggested when upgrading. Let's say we have a codemod for `v15.0.0-canary.x`, and we're upgrading from `v15.x` -> `v15.x`. Our initial version is higher than the codemod's version, so the codemod **will not be** suggested. This is not ideal as the codemods for pre-releases are also targeting the major version. Also, when the user attempts to run the upgrade command twice, and have installed the target version, the behavior must be **idempotent** and suggest the codemods including the pre-releases of the target version. https://github.com/user-attachments/assets/db1ab0c0-fc4e-4170-bc91-b0a096b04cef
- Loading branch information
1 parent
d8c0539
commit 1bc31e7
Showing
4 changed files
with
54 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.