Files
90c0a7681f 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 [email protected]
  └── incompatible with [email protected]
unmet-range 0.0.1
  ├── incompatible with [email protected]
  └── incompatible with [email protected]
```

Closes NDX-382

---------

Co-authored-by: Sebastian "Sebbie" Silbermann <[email protected]>
2024-11-06 09:12:23 +09:00

674 B

default should print

⚠ 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
  ├── ✕ unmet peer react@"^18.2.0 || 19.0.0-rc-aaaaaaaa-20240101": found 19.0.0-rc-7c8e5e7a-20241101
  └── ✕ unmet peer react-dom@"^18.2.0 || 19.0.0-rc-aaaaaaaa-20240101": found 19.0.0-rc-7c8e5e7a-20241101
unmet-range 0.0.1
  ├── ✕ unmet peer react@"^18.0.0 || ^19.0.0": found 19.0.0-rc-7c8e5e7a-20241101
  └── ✕ unmet peer react-dom@"< 19": found 19.0.0-rc-7c8e5e7a-20241101