Maintain, retire and report
Yank a bad version
A yank withdraws a version that has a serious problem, for example a mistake that could cause harm.
- Open Publish, choose Manage on your package.
- Under Versions, choose Yank next to the bad version.
- Enter a reason and choose Yank version.
New installs of that version stop. Existing installs keep working. You cannot undo a yank, and the version number can never be used again. People see the version marked Yanked.
Prefer a new version for a small fix. Yank only when the old one should not be used.
Deprecate a package you are retiring
A package you no longer recommend can be deprecated. It stays installable.
- On Manage this package find Deprecate.
- Optionally write a message, for example "replaced by @acme/new-package" (up to 300 characters).
- Choose Mark as deprecated.
A Deprecated banner now appears on the package page. Use Update deprecation to change the message and Remove deprecation to reverse it.
Keep your listing honest
In Listing details keep the display name, summary, categories and tags accurate. Choose Private visibility to keep a package to your team only. Misleading listings get reported.
Reports
Everyone has a way to flag a problem. On any package, Report this package asks What's the problem? with these choices:
- Harmful or malicious behaviour
- Spam or misleading listing
- Copyright or trademark
- Does not work
- Inappropriate content
- Something else
Add optional Details up to 2,000 characters, then Send report. The PGB team looks at them.
If someone reports your package, check the claim, fix it in a new version, or yank the version if necessary.
Team work
Owners can Add a team member to a publisher. A Maintainer can publish versions and manage packages. An Owner can also add people. Give publishing rights only to people you trust, since a package runs with the permissions it declares in other people's projects.
Your public page
Each publisher has a Public page listing all its packages. A Verified mark means PGB confirmed your identity. Without it, you are shown as a community publisher.
Publish checklist
- Smallest set of permissions.
- No secrets, no
.envfiles. - A clear summary and README.
- A realistic first version number and license.
- Test installs yourself before announcing it.
- Plan for support: how will you ship fixes?
Try it yourself
- Open your test package's Manage page and set a deprecation message, then remove it.
- Find a package you do not own and open Report this package; read the choices without sending.
- Open My installs and see what a user sees.
Recap
- Yank withdraws a version; Deprecate warns about a whole package.
- Reports cover malware, spam, copyright, broken, inappropriate and other problems.
- Publisher roles: Maintainer and Owner.
- Keep listings accurate and permissions minimal.
Open Access Course
Free
forever- 6 structured lessons across 3 modules
- Interactive knowledge checks with instant feedback
- Verifiable completion certificate & PDF