{
  "schemaVersion": "ebb.rule.v1",
  "id": "nodejs.symbol.util.tousvstring",
  "ecosystem": "nodejs",
  "purl": "pkg:generic/nodejs",
  "affectedVersions": "vers:semver/>=20.8.0",
  "event": "deprecated",
  "severity": "low",
  "title": "Util.toUSVString is deprecated",
  "summary": "Node.js deprecates util.toUSVString (DEP0175: documentation-only since v20.8.0).",
  "replacement": "String.prototype.toWellFormed",
  "sources": [
    {
      "title": "Node.js deprecations: DEP0175",
      "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 code unchanged; check the replacement's argument and return-value differences."
    ],
    "steps": [
      {
        "id": "replace-symbol",
        "title": "Replace the usage",
        "instructions": "Replace each reported use of util.toUSVString with String.prototype.toWellFormed.",
        "targets": "usages"
      }
    ],
    "verification": [
      {
        "command": "npm run test --if-present",
        "purpose": "Run the repository tests when defined."
      }
    ]
  }
}
