{
  "schemaVersion": "ebb.rule.v1",
  "id": "npm.package.types.diff.deprecated",
  "ecosystem": "npm",
  "purl": "pkg:npm/%40types/diff",
  "affectedVersions": "vers:npm/8.0.0",
  "event": "deprecated",
  "severity": "low",
  "title": "@types/diff is deprecated",
  "summary": "npm marks @types/diff as deprecated: \"This is a stub types definition. diff provides its own type definitions, so you do not need this installed.\"",
  "replacement": "diff",
  "sources": [
    {
      "title": "@types/diff on npm",
      "url": "https://www.npmjs.com/package/@types/diff",
      "accessedAt": "2026-10-19"
    },
    {
      "title": "@types/diff version metadata",
      "url": "https://registry.npmjs.org/@types%2fdiff",
      "accessedAt": "2026-10-19"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-19",
    "reviewedAt": "2026-10-19",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "@types/diff only declares types; diff now ships its own declarations, so no conflicting ambient definition may remain."
    ],
    "steps": [
      {
        "id": "remove-types-package",
        "title": "Remove the stub types package",
        "instructions": "Remove @types/diff from devDependencies and any explicit reference to it, such as a tsconfig.json compilerOptions.types entry.",
        "targets": "declaration"
      },
      {
        "id": "use-bundled-types",
        "title": "Use the bundled declarations",
        "instructions": "Keep diff on a version that ships its own type definitions and import its types from diff.",
        "targets": "usages"
      }
    ],
    "verification": [
      {
        "command": "npm run build --if-present",
        "purpose": "Type-check and build with diff's own declarations."
      },
      {
        "command": "npm run test --if-present",
        "purpose": "Run the repository tests when defined."
      }
    ]
  }
}
