{
  "schemaVersion": "ebb.rule.v1",
  "id": "nodejs.symbol.url.parse",
  "ecosystem": "nodejs",
  "purl": "pkg:generic/nodejs",
  "affectedVersions": "vers:semver/>=18.13.0",
  "event": "deprecated",
  "severity": "medium",
  "title": "url.parse is deprecated",
  "summary": "Node.js deprecates url.parse() because its behavior is not standardized and error-prone with security implications (DEP0169): documentation-only since v19.0.0 and v18.13.0, application runtime warning since v24.0.0.",
  "replacement": "The WHATWG URL API, new URL()",
  "sources": [
    {
      "title": "Node.js deprecations: DEP0169 url.parse",
      "url": "https://nodejs.org/api/deprecations.html",
      "accessedAt": "2026-10-21"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-21",
    "reviewedAt": "2026-10-21",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Keep the behavior of the call unchanged; check the replacement's argument and error handling differences."
    ],
    "steps": [
      {
        "id": "replace-symbol",
        "title": "Replace url.parse",
        "instructions": "Parse with new URL(input, base) and read its properties instead of the legacy url object; review inputs that are not absolute URLs.",
        "targets": "usages"
      }
    ],
    "verification": [
      {
        "command": "npm run test --if-present",
        "purpose": "Run the repository tests when defined."
      }
    ]
  }
}
