next-codemod(upgrade): warn peer dependencies not met (#71693)
### Why? After the upgrade, there might be an incompatibility with the `peerDependencies` of the existing dependencies. Therefore, we run a check for it to warn the user at the end of the upgrade. ## Testing Plan ### Unmet Peer Dependencies with Range and Prerelease ``` pnpm test:upgrade-fixture bin/__testfixtures__/peer-dep-out-of-range ``` CLI output includes: ```⚠ Found 2 dependencies that seem incompatible with the upgraded package versions. You may have to update these packages to their latest version or file an issue to ask for support of the upgraded libraries. unmet-prerelease 0.0.1 ├── incompatible with react@19.0.0-rc-7c8e5e7a-20241101 └── incompatible with react-dom@19.0.0-rc-7c8e5e7a-20241101 unmet-range 0.0.1 ├── incompatible with react@19.0.0-rc-7c8e5e7a-20241101 └── incompatible with react-dom@19.0.0-rc-7c8e5e7a-20241101 ``` Closes NDX-382 --------- Co-authored-by:Sebastian "Sebbie" Silbermann <sebastian.silbermann@vercel.com>
Showing
Please
register
or
sign in
to comment