Repository navigation
feat: warn when a plugin's update url says it's deprecated - #1383
Merged
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Lets a plugin's update url (its
latest.json) say the plugin is deprecated, similar to npm'sdeprecatedfield but for https plugins:{ "schemaVersion": 1, "url": "https://plugins.dprint.dev/foo-1.0.0.wasm", "version": "1.0.0", "deprecated": "Use bar instead." }dprint config add <name>anddprint config updatethen warn withPlugin <name> is deprecated: <message>.config updatewarns even when the plugin is already on its latest version. Like npm:The control character replacement that the npm deprecation warning did inline is now a shared
replace_control_charshelper. Older CLIs ignore the new property, since unknown keys inlatest.jsonare already skipped.Notes:
npm:specifiers don't readlatest.json, so they only see npm's own deprecation. A plugin that moved to npm should be deprecated there too.latest.jsonis deprecated and whose npm package version is also deprecated gets both warnings, since they're separate signals.config add <url>doesn't readlatest.json, so there's no warning there. The interactive picker reads the info file, so a deprecated plugin should be removed from the info file.