Skip to content
HALOWERK

Codewerk

lockfile diff

Parses package-lock.json (lockfileVersion 2/3 "packages" map), yarn.lock (v1), pnpm-lock.yaml, poetry.lock and pinned requirements.txt, normalises package names and versions and compares old and new state. Every change is classified as major, minor, patch, prerelease or downgrade with semver; multiple versions of one package are kept apart. Nothing is fetched.

POST https://code.halowerk.com/v1/lockfile-diff

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
formatstringNo
oldstringYes
newstringYes
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "old",
    "new"
  ],
  "properties": {
    "format": {
      "type": "string",
      "enum": [
        "auto",
        "npm",
        "yarn",
        "pnpm",
        "poetry",
        "requirements"
      ],
      "default": "auto"
    },
    "old": {
      "type": "string",
      "maxLength": 10000000
    },
    "new": {
      "type": "string",
      "maxLength": 10000000
    }
  }
}

Open original schema

Published input example

{
  "format": "requirements",
  "old": "requests==2.31.0\nflask==2.3.3\n",
  "new": "requests==2.32.3\nflask==3.0.0\nrich==13.7.1\n"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’