{
  "schemaVersion": "ebb.rule.v1",
  "id": "npm.package.istanbul.deprecated",
  "ecosystem": "npm",
  "purl": "pkg:npm/istanbul",
  "affectedVersions": "vers:npm/0.1.0|0.1.1|0.1.2|0.1.3|0.1.4|0.1.5|0.1.6|0.1.7|0.1.8|0.1.9|0.1.10|0.1.11|0.1.12|0.1.13|0.1.14|0.1.15|0.1.16|0.1.17|0.1.18|0.1.19|0.1.20|0.1.21|0.1.22|0.1.23|0.1.24|0.1.25|0.1.26|0.1.27|0.1.28|0.1.29|0.1.30|0.1.31|0.1.32|0.1.33|0.1.34|0.1.35|0.1.36|0.1.37|0.1.38|0.1.39|0.1.40|0.1.41|0.1.42|0.1.43|0.1.44|0.1.45|0.1.46|0.2.0|0.2.1|0.2.2|0.2.3|0.2.4|0.2.5|0.2.6|0.2.7|0.2.8|0.2.9|0.2.10|0.2.11|0.2.12|0.2.13|0.2.14|0.2.15|0.2.16|0.3.0|0.3.1|0.3.2|0.3.3|0.3.4|0.3.5|0.3.6|0.3.7|0.3.8|0.3.9|0.3.10|0.3.11|0.3.13|0.3.14|0.3.15|0.3.16|0.3.17|0.3.18|0.3.19|0.3.20|0.3.21|0.3.22|0.4.0|0.4.1|0.4.2|0.4.3|0.4.4|0.4.5",
  "event": "deprecated",
  "severity": "medium",
  "title": "istanbul is deprecated",
  "summary": "npm states that istanbul is no longer maintained and recommends nyc.",
  "replacement": "nyc",
  "sources": [
    {
      "title": "istanbul package deprecation notice",
      "url": "https://www.npmjs.com/package/istanbul",
      "accessedAt": "2026-10-16"
    },
    {
      "title": "istanbul version metadata",
      "url": "https://registry.npmjs.org/istanbul",
      "accessedAt": "2026-10-16"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-16",
    "reviewedAt": "2026-10-16",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Preserve test execution, include and exclude patterns, source maps, reporters, and coverage thresholds."
    ],
    "steps": [
      {
        "id": "replace-istanbul",
        "title": "Replace Istanbul CLI",
        "instructions": "Replace istanbul with nyc in dependencies, scripts, and coverage configuration.",
        "targets": "all"
      },
      {
        "id": "compare-coverage",
        "title": "Compare coverage output",
        "instructions": "Run the same test suite and compare covered files, reporters, and enforced thresholds.",
        "targets": "usages"
      }
    ],
    "verification": [
      {
        "command": "npm run test --if-present",
        "purpose": "Run the instrumented test suite and coverage checks."
      }
    ]
  }
}
