{
  "schemaVersion": "ebb.rule.v1",
  "id": "nodejs.symbol.module.createrequirefrompath",
  "ecosystem": "nodejs",
  "purl": "pkg:generic/nodejs",
  "affectedVersions": "vers:semver/>=16.0.0",
  "event": "removed",
  "severity": "high",
  "title": "Module.createRequireFromPath has been removed",
  "summary": "Node.js removed module.createRequireFromPath (DEP0130: documentation-only since v12.2.0, runtime deprecation since v13.0.0, end-of-life since v16.0.0).",
  "replacement": "module.createRequire()",
  "sources": [
    {
      "title": "Node.js deprecations: DEP0130",
      "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 module.createRequireFromPath with module.createRequire().",
        "targets": "usages"
      }
    ],
    "verification": [
      {
        "command": "npm run test --if-present",
        "purpose": "Run the repository tests when defined."
      }
    ]
  }
}
