Marking an NPM package as superseded means that it will no longer be used as an update source for plugins.
It can be used to change the NPM package that provides updates to a plugin.
To change the update source for a plugin from one NPM package to another:
- Add
"_superseded_package": "old_package_name_here"to the plugin's section ofmanifestOverrides.json. - Change the
"_npm_package_name"of the plugin to the new package name inmanifests.json.
A sample pull request that does this can be found here.
Explanation:
Changing "_npm_package_name" in manifest.json is the important part. It causes the plugin updater to check the new NPM package for updates, rather than the old.
Setting "_superseded_package": "outdated_package" in manifestOverrides.json causes outdated_package to be ignored as a source of plugin updates. While not required, it prevents warnings and provides a record of the change in maintenance.