From 73599b91608db2d8b1ab6f6b86de5f3473cd792d Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 6 Dec 2026 19:25:35 +0000 Subject: [PATCH] chore(deps): pin platform-aligned packages to their platform major in Dependabot TypeScript 7 (#29) breaks npm ci (Angular 22 needs typescript >=6.0 <6.1) and ApiDescription.Server 11 (#32) ships no net10.0 tool, breaking the build-time OpenAPI document. Ignore majors of .NET platform packages, Angular and its tooling, and @types/node; ignore TypeScript minors too. Platform upgrades become a deliberate change with an ADR. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_014HXNHHTdT6NsLeJnDKwCYr --- .github/dependabot.yml | 34 ++++++++++++++++++++++++++++++++++ CLAUDE.md | 2 ++ 2 files changed, 36 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9c2c2ab..85a02c5 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,17 +1,51 @@ version: 2 +# Platform-aligned packages are pinned to the platform's major version (and TypeScript to Angular's range). +# Platform upgrades (.NET 11, Angular 23, Node 24) happen deliberately, all packages together, with an ADR. updates: - package-ecosystem: nuget directory: / schedule: { interval: weekly } groups: { nuget-minor: { update-types: [minor, patch] } } + ignore: + # Major versions of these track the .NET major (11.x targets .NET 11; e.g. ApiDescription.Server 11 + # ships no net10.0 tool and breaks the build-time OpenAPI document). + - dependency-name: "Microsoft.Extensions.*" + update-types: ["version-update:semver-major"] + - dependency-name: "Microsoft.AspNetCore.*" + update-types: ["version-update:semver-major"] + - dependency-name: "Microsoft.EntityFrameworkCore*" + update-types: ["version-update:semver-major"] + # EF Core 10 is built against SqlClient 6.x. + - dependency-name: "Microsoft.Data.SqlClient" + update-types: ["version-update:semver-major"] - package-ecosystem: npm directory: /web schedule: { interval: weekly } groups: { npm-minor: { update-types: [minor, patch] } } + ignore: + # Angular 22 requires typescript >=6.0 <6.1 (peer dependency of @angular/build and compiler-cli). + - dependency-name: "typescript" + update-types: ["version-update:semver-major", "version-update:semver-minor"] + # Angular and its tooling move together, one major at a time (ng update). + - dependency-name: "@angular/*" + update-types: ["version-update:semver-major"] + - dependency-name: "@angular-devkit/*" + update-types: ["version-update:semver-major"] + - dependency-name: "angular-eslint" + update-types: ["version-update:semver-major"] + - dependency-name: "@angular-eslint/*" + update-types: ["version-update:semver-major"] + # Types must match the Node 22 runtime. + - dependency-name: "@types/node" + update-types: ["version-update:semver-major"] - package-ecosystem: npm directory: /tests/e2e schedule: { interval: weekly } groups: { e2e-minor: { update-types: [minor, patch] } } + ignore: + # Types must match the Node 22 runtime. + - dependency-name: "@types/node" + update-types: ["version-update:semver-major"] - package-ecosystem: github-actions directory: / schedule: { interval: monthly } diff --git a/CLAUDE.md b/CLAUDE.md index b6276f6..82190dd 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -100,6 +100,8 @@ Always run build + tests for every area you touched before declaring a task done - **Learn:** when a reviewer corrects a repeated mistake, propose a one-line rule for this file or a nested `CLAUDE.md` in the PR (via `/retro`). - Do not add new dependencies (NuGet/npm) without noting why in the PR. +- Platform packages (.NET `Microsoft.*`, Angular, TypeScript, `@types/node`) stay on the platform's major line; + `.github/dependabot.yml` ignores their majors. Platform upgrades are a deliberate, all-together change with an ADR. - Use GitHub only through `gh api` REST calls (`docs/sdlc/github-rest.md`); `gh pr`/`gh issue` use GraphQL, which cloud sessions block. - Do not put model names or vendor model IDs in code comments, commits or PR text.