From 2ca8d28c40994745018b4bbc6ec83ab472bb35af Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 11 Sep 2026 06:15:24 +0200 Subject: [PATCH] chore(renovate): hold typescript below v7 until astro check supports it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TypeScript 7 (the native/Corsa compiler) does not ship the programmatic API astro check relies on. astro check fails outright once typescript resolves to 7.x: The TypeScript module loaded (found 7.0.2) does not expose the programmatic API that `astro check` relies on. TypeScript's native compiler (7.0 and later) does not ship this API yet. @astrojs/language-server is already at its latest published release (2.16.16) with no newer version to pick up, so there is no fix to upgrade into yet. astro check is the only thing type-checking .astro files in this repo, so it stays in the lint script rather than being dropped to make a version number fit. Add a packageRule constraining typescript to `<7.0.0` so renovate stops proposing v7 bumps, with a description pointing at the missing API and the upstream tracking issue so the hold reads as a decision rather than an unexplained pin. 6.x patch releases still flow normally. Supersedes #12585, which stays open for renovate to retire once this lands (closing it directly would only suppress 7.0.2 specifically — 7.0.3 would come back next week, red again, with no record of why). Upstream tracking: https://github.com/withastro/roadmap/discussions/1321 Co-Authored-By: Claude Sonnet 5 Change-Id: Ibeb3452b2cb5e6258624031fb5e8e06022779a23 --- renovate.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/renovate.json b/renovate.json index 75e31f8797..10bf65b810 100644 --- a/renovate.json +++ b/renovate.json @@ -29,6 +29,11 @@ "description": "config:best-practices pulls in security:minimumReleaseAgeNpm, which sets npm to 3 days via a packageRule. packageRules beat top-level config, so the 7 day cooldown carried over from .github/dependabot.yml has to be re-asserted here or npm silently runs at 3 days. Same rule as the monorepo.", "matchDatasources": ["npm"], "minimumReleaseAge": "7 days" + }, + { + "description": "TypeScript 7 (the native/Corsa compiler) does not ship the programmatic API astro check relies on, so astro check fails outright on install with a TS7 compiler: 'The TypeScript module loaded ... does not expose the programmatic API that astro check relies on.' astro check is the only thing type-checking .astro files, so it stays on rather than being dropped from lint. Tracked upstream at https://github.com/withastro/roadmap/discussions/1321; lift this once astro/@astrojs/language-server support it.", + "matchPackageNames": ["typescript"], + "allowedVersions": "<7.0.0" } ] }