{
  "schemaVersion": "ebb.rule.v1",
  "id": "nodejs.symbol.util.isboolean",
  "ecosystem": "nodejs",
  "purl": "pkg:generic/nodejs",
  "affectedVersions": "vers:semver/>=23.0.0",
  "event": "removed",
  "severity": "high",
  "title": "Util.isBoolean has been removed",
  "summary": "Node.js removed util.isBoolean (DEP0045: documentation-only since v4.0.0, runtime deprecation since v22.0.0, end-of-life since v23.0.0).",
  "replacement": "typeof arg === 'boolean'",
  "sources": [
    {
      "title": "Node.js deprecations: DEP0045",
      "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.isBoolean with typeof arg === 'boolean'.",
        "targets": "usages"
      }
    ],
    "verification": [
      {
        "command": "npm run test --if-present",
        "purpose": "Run the repository tests when defined."
      }
    ]
  }
}
