vlt / docs

  • PricingBenchmarks (opens in new window)Community (opens in new window)Feedback
  • Read
  • Packages
  • Versions & Dist-tags
  • Staging
  • Trusted Publishers
  • Projects
  • GitHub
  • Members & Invitations
  • Account & User
  • Connected Apps
  • version.deprecate
  • Parameters
  • version.undeprecate
  • Parameters
  • version.unpublish
  • Parameters
  • distTag.set
  • Parameters
  • distTag.delete
  • Parameters
  1. Registry
  2. /
  3. Agent Resources
  4. /
  5. MCP
  6. /
  7. Tools
  8. /
  9. Versions & Dist-tags

Versions & Dist-tags

Deprecate or unpublish a single version, and move or remove dist-tags.

A version's $id looks like /account/<account>/registry/<registry>/package/<name>/v/<version>, and a dist-tag's like …/package/<name>/dist-tag/<tag>, with the package name percent-encoded. Follow a package's version-collection and dist-tag-collection links to find them.

Example call
{
  "name": "distTag.set",
  "arguments": {
    "target": "/account/acme/registry/main/package/%40acme%2Futils/dist-tag/latest",
    "input": { "version": "2.1.0" }
  }
}

version.deprecate

Mark the version as deprecated.

  • Target: a Version that is still served
  • Privilege: package:write
  • Hints: Untrusted content

Parameters

ParameterTypeRequiredDescription
targetstringYesThe $id of the version.
input.messagestringYesDeprecation message shown to users. Must not be empty.

version.undeprecate

Clear the deprecation of the version.

  • Target: a Version. Only offered while the version is deprecated.
  • Privilege: package:write
  • Hints: Idempotent

Parameters

ParameterTypeRequiredDescription
targetstringYesThe $id of the version.

version.unpublish

Unpublish the version. This cannot be undone.

  • Target: a published Version
  • Privilege: package:write
  • Hints: Destructive Idempotent

Parameters

ParameterTypeRequiredDescription
targetstringYesThe $id of the version.

distTag.set

Point the dist-tag at another version.

  • Target: a DistTag
  • Privilege: package:write
  • Hints: Idempotent

Parameters

ParameterTypeRequiredDescription
targetstringYesThe $id of the dist-tag.
input.versionstringYesThe version string to point this dist-tag at. 1–255 characters. Other properties are ignored.

distTag.delete

Remove the dist-tag. The version it points at stays published.

  • Target: a DistTag. Not offered on latest.
  • Privilege: package:write
  • Hints: Destructive Idempotent

Parameters

ParameterTypeRequiredDescription
targetstringYesThe $id of the dist-tag.

Previous: PackagesSearch a registry, resolve versions, and deprecate, unpublish or change the visibility of a package.Next: StagingApprove or reject versions staged with npm stage publish.

On this page

  • version.deprecate
  • Parameters
  • version.undeprecate
  • Parameters
  • version.unpublish
  • Parameters
  • distTag.set
  • Parameters
  • distTag.delete
  • Parameters
Edit this page

Deploy your package on vlt.io

Publish scoped and private packages, manage organizations and access, and give every developer and CI environment a consistent source for public and private JavaScript dependencies.

Publish now