Skip to content
HALOWERK

Package and Supply Chain Security

npm channel promotion distance

npm channel promotion compares two tag targets by semantic precedence and change class. Use it when an agent needs reviewing a proposed channel switch.

POST https://paket.halowerk.com/v1/npm-channel-promotion-distance

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
packagestringYes
as_ofstringNo
fromstringYes
tostringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "package": {
      "type": "string",
      "maxLength": 214,
      "pattern": "^\\s*(?:@[a-zA-Z0-9][a-zA-Z0-9._-]*/)?[a-zA-Z0-9][a-zA-Z0-9._-]*\\s*$"
    },
    "as_of": {
      "type": "string",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
    },
    "from": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1
    },
    "to": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1
    }
  },
  "required": [
    "package",
    "from",
    "to"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "package": "semver",
  "as_of": "2026-11-25",
  "from": "legacy",
  "to": "latest"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’