You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds an upgrade diagnostics feature: a new npmx.diagnostics.upgrade configuration (default true), a diagnostic rule that emits hints when newer package versions or matching prerelease tags exist, a CodeAction provider that offers quick-fix updates, and a new UPGRADE_MESSAGE_PREFIX constant. It moves version-handling logic out of src/utils/package.ts into a new src/utils/version.ts, introducing parseVersion, formatVersion, getPrereleaseId, and lt, and updates imports across consumers. Tests were adjusted to cover the new version utilities.
The pull request description accurately relates to the changeset, describing the diagnostic rule for detecting outdated packages and offering quick fixes to upgrade.
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing touches
📝 Generate docstrings
🧪 Generate unit tests (beta)
Create PR with unit tests
Post copyable unit tests in a comment
Commit unit tests in branch feat/check-upgrade
No actionable comments were generated in the recent review. 🎉
Comment @coderabbitai help to get the list of available commands and usage tips.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #2
This PR add a diagnostic rule that detects outdated package versions and offers a quick fix to upgrade: