{
  "schemaVersion": "ebb.rule.v1",
  "id": "npm.package.angular.core.v18-and-older.end-of-support",
  "ecosystem": "npm",
  "purl": "pkg:npm/%40angular/core",
  "affectedVersions": "vers:npm/<19.0.0-0",
  "event": "end-of-support",
  "severity": "high",
  "title": "@angular/core v18 and older are no longer supported",
  "summary": "Angular's release schedule states that Angular versions v2 to v19 are no longer supported. Versions before v19 receive no fixes, including security fixes.",
  "replacement": "@angular/core@22",
  "sources": [
    {
      "title": "Angular release and support schedule",
      "url": "https://angular.dev/reference/releases",
      "accessedAt": "2026-10-21"
    },
    {
      "title": "Angular Update Guide",
      "url": "https://angular.dev/update-guide",
      "accessedAt": "2026-10-21"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-21",
    "reviewedAt": "2026-10-21",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "ng update accepts only a supported target major, and v19 is no longer supported, so no single ng update step from v18 or older reaches a supported major.",
      "Use the Angular Update Guide to plan each step, and do not skip majors without it."
    ],
    "steps": [
      {
        "id": "plan-update-path",
        "title": "Plan the update path",
        "instructions": "Read the Angular Update Guide for this version and list each intermediate major that the guide requires, ending at v22 (Active) or v21 (LTS). Record the Node.js and TypeScript versions each step needs.",
        "targets": "declaration"
      },
      {
        "id": "update-step-by-step",
        "title": "Update one major at a time",
        "instructions": "Run `ng update @angular/core@<next> @angular/cli@<next>` for each planned major, and apply that major's steps in the Angular Update Guide. Verify each step before the next.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "npm ls @angular/core",
        "purpose": "Confirm that @angular/core resolves to the target major."
      },
      {
        "command": "npm run build --if-present",
        "purpose": "Build the application on the target major."
      },
      {
        "command": "npm run test --if-present",
        "purpose": "Run the unit tests when the project defines them."
      }
    ]
  }
}
