From 385c5da7ad36f954817afd7358b48eb61629f5f7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 11 Jul 2026 17:47:36 +0000 Subject: [PATCH 1/5] fix(deps): update dependency typescript to v7 --- package.json | 2 +- yarn.lock | 128 ++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 128 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7e94bd462..9a3153c7a 100644 --- a/package.json +++ b/package.json @@ -148,7 +148,7 @@ "prettier": "3.8.5", "recast": "0.23.12", "tsx": "4.23.0", - "typescript": "6.0.3" + "typescript": "7.0.2" }, "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e", "resolutions": { diff --git a/yarn.lock b/yarn.lock index 46906d4b6..2529635e8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2104,6 +2104,106 @@ "@typescript-eslint/types" "8.63.0" eslint-visitor-keys "^5.0.0" +"@typescript/typescript-aix-ppc64@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz#cdc7ce81d60f1e09034960ddfb1fb880d7a776b6" + integrity sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ== + +"@typescript/typescript-darwin-arm64@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-darwin-arm64/-/typescript-darwin-arm64-7.0.2.tgz#a55fdfcfa58df58d27db2237cde6a5c1e35a7235" + integrity sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA== + +"@typescript/typescript-darwin-x64@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-darwin-x64/-/typescript-darwin-x64-7.0.2.tgz#38d1c9172800a91d707bec64d2a370a016634db4" + integrity sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA== + +"@typescript/typescript-freebsd-arm64@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-freebsd-arm64/-/typescript-freebsd-arm64-7.0.2.tgz#f1ff8810030b35d2b5be0db6a2dc650460ea94fa" + integrity sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ== + +"@typescript/typescript-freebsd-x64@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-freebsd-x64/-/typescript-freebsd-x64-7.0.2.tgz#3d86b03f353c5b1ba95162eb6ce35533bfc294bd" + integrity sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw== + +"@typescript/typescript-linux-arm64@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-linux-arm64/-/typescript-linux-arm64-7.0.2.tgz#d9334d96d6dac6ff85da9c865588948de939e91f" + integrity sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ== + +"@typescript/typescript-linux-arm@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-linux-arm/-/typescript-linux-arm-7.0.2.tgz#ad94b41e1aee2a4dcc6a298c7b67c43345fde32e" + integrity sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ== + +"@typescript/typescript-linux-loong64@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-linux-loong64/-/typescript-linux-loong64-7.0.2.tgz#2965aee4fc873360139d893daafe6397a29138ad" + integrity sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ== + +"@typescript/typescript-linux-mips64el@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-linux-mips64el/-/typescript-linux-mips64el-7.0.2.tgz#1a887a311bed3a833f80bfd4a9ed37c271936cf0" + integrity sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA== + +"@typescript/typescript-linux-ppc64@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-linux-ppc64/-/typescript-linux-ppc64-7.0.2.tgz#8b63c9b2f445b393eb4e43ec21da225dade3577d" + integrity sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA== + +"@typescript/typescript-linux-riscv64@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-linux-riscv64/-/typescript-linux-riscv64-7.0.2.tgz#b6e8a35c289b3ea97a92a41d461aaeed0d3b36e1" + integrity sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ== + +"@typescript/typescript-linux-s390x@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-linux-s390x/-/typescript-linux-s390x-7.0.2.tgz#2ef96693be4861f6d17965427e5b009cbbed1a3e" + integrity sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw== + +"@typescript/typescript-linux-x64@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-linux-x64/-/typescript-linux-x64-7.0.2.tgz#73269cb0baba50aea0ca060445a6b88e583f1ce2" + integrity sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A== + +"@typescript/typescript-netbsd-arm64@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-netbsd-arm64/-/typescript-netbsd-arm64-7.0.2.tgz#3a3649f97fafa210b4e6e3798c15e06605c8a901" + integrity sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA== + +"@typescript/typescript-netbsd-x64@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-netbsd-x64/-/typescript-netbsd-x64-7.0.2.tgz#47ec59491a40c470d2807dc4d2b825528fd979ab" + integrity sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA== + +"@typescript/typescript-openbsd-arm64@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-openbsd-arm64/-/typescript-openbsd-arm64-7.0.2.tgz#796be8da0bd989d8a3fb96f2801e38a8365b4baf" + integrity sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ== + +"@typescript/typescript-openbsd-x64@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-openbsd-x64/-/typescript-openbsd-x64-7.0.2.tgz#d37fe2a729eb942c076c454ee7f1815faf7d560f" + integrity sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg== + +"@typescript/typescript-sunos-x64@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-sunos-x64/-/typescript-sunos-x64-7.0.2.tgz#aba8d3464c3565a7044789baba96916bd4ab2c88" + integrity sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g== + +"@typescript/typescript-win32-arm64@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-win32-arm64/-/typescript-win32-arm64-7.0.2.tgz#b9de50a17196383f62620b5f9d0a2f34ad3b60d7" + integrity sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ== + +"@typescript/typescript-win32-x64@7.0.2": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@typescript/typescript-win32-x64/-/typescript-win32-x64-7.0.2.tgz#cf3b7b0d6ce5635daca4c8e01c189cdcde47ec3c" + integrity sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g== + "@ungap/structured-clone@^1.3.0": version "1.3.0" resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.3.0.tgz#d06bbb384ebcf6c505fde1c3d0ed4ddffe0aaff8" @@ -7827,7 +7927,33 @@ typed-array-length@^1.0.7: possible-typed-array-names "^1.0.0" reflect.getprototypeof "^1.0.6" -typescript@6.0.3, typescript@^6.0.3: +typescript@7.0.2: + version "7.0.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-7.0.2.tgz#9ec773d7954a8c182c17cc5bbd575aa28bc51582" + integrity sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA== + optionalDependencies: + "@typescript/typescript-aix-ppc64" "7.0.2" + "@typescript/typescript-darwin-arm64" "7.0.2" + "@typescript/typescript-darwin-x64" "7.0.2" + "@typescript/typescript-freebsd-arm64" "7.0.2" + "@typescript/typescript-freebsd-x64" "7.0.2" + "@typescript/typescript-linux-arm" "7.0.2" + "@typescript/typescript-linux-arm64" "7.0.2" + "@typescript/typescript-linux-loong64" "7.0.2" + "@typescript/typescript-linux-mips64el" "7.0.2" + "@typescript/typescript-linux-ppc64" "7.0.2" + "@typescript/typescript-linux-riscv64" "7.0.2" + "@typescript/typescript-linux-s390x" "7.0.2" + "@typescript/typescript-linux-x64" "7.0.2" + "@typescript/typescript-netbsd-arm64" "7.0.2" + "@typescript/typescript-netbsd-x64" "7.0.2" + "@typescript/typescript-openbsd-arm64" "7.0.2" + "@typescript/typescript-openbsd-x64" "7.0.2" + "@typescript/typescript-sunos-x64" "7.0.2" + "@typescript/typescript-win32-arm64" "7.0.2" + "@typescript/typescript-win32-x64" "7.0.2" + +typescript@^6.0.3: version "6.0.3" resolved "https://registry.yarnpkg.com/typescript/-/typescript-6.0.3.tgz#90251dc007916e972786cb94d74d15b185577d21" integrity sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw== From 20ec4cf1e98f1fc0c0cf2918ca3bd43fef972cd1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 11 Jul 2026 21:44:00 +0000 Subject: [PATCH 2/5] chore: add changeset for renovate dependency update --- .changeset/renovate-385c5da.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/renovate-385c5da.md diff --git a/.changeset/renovate-385c5da.md b/.changeset/renovate-385c5da.md new file mode 100644 index 000000000..1d6c10e46 --- /dev/null +++ b/.changeset/renovate-385c5da.md @@ -0,0 +1,5 @@ +--- +'counterfact': patch +--- + +Updated dependency `typescript` to `7.0.2`. From 6f46bab19122baa15137c20b970be692d5581bd3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Jul 2026 15:15:48 +0000 Subject: [PATCH 3/5] fix: harden TypeScript 7 compatibility shims --- eslint.config.cjs | 21 ++++++++++++--------- src/server/transpiler.ts | 4 ++-- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/eslint.config.cjs b/eslint.config.cjs index 46006cd34..0a063f7f5 100644 --- a/eslint.config.cjs +++ b/eslint.config.cjs @@ -4,20 +4,23 @@ const fs = require("fs"); const Module = require("module"); const path = require("path"); -const compatibleTypeScriptPath = path.join( - __dirname, - "node_modules", - "precinct", - "node_modules", - "typescript", - "lib", - "typescript.js", -); +function resolveCompatibleTypeScriptPath() { + try { + return require.resolve("typescript", { + paths: [path.join(__dirname, "node_modules", "precinct", "node_modules")], + }); + } catch { + return undefined; + } +} + +const compatibleTypeScriptPath = resolveCompatibleTypeScriptPath(); const originalResolveFilename = Module._resolveFilename; Module._resolveFilename = function resolveFilename(request, parent, ...rest) { if ( request === "typescript" && + compatibleTypeScriptPath !== undefined && fs.existsSync(compatibleTypeScriptPath) && ["/@typescript-eslint/", "/ts-api-utils/"].some((segment) => parent?.filename?.includes(segment.replaceAll("/", path.sep)), diff --git a/src/server/transpiler.ts b/src/server/transpiler.ts index bcd50302e..7781ca235 100644 --- a/src/server/transpiler.ts +++ b/src/server/transpiler.ts @@ -162,7 +162,7 @@ export class Transpiler extends EventTarget { debug("error transpiling %s after %s: %o", sourcePath, eventName, error); this.dispatchEvent(new Event("error")); - throw new Error("could not transpile", { cause: error }); + throw new Error(`could not transpile ${sourcePath}`, { cause: error }); } const fullDestination = pathJoin( @@ -188,7 +188,7 @@ export class Transpiler extends EventTarget { ); this.dispatchEvent(new Event("error")); - throw new Error("could not transpile", { cause: error }); + throw new Error(`could not transpile ${sourcePath}`, { cause: error }); } this.dispatchEvent(new Event("write")); From 199c1d25c3fc663a54622c1e2802c90856c067a2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Jul 2026 15:19:17 +0000 Subject: [PATCH 4/5] fix: address TypeScript 7 review follow-ups --- eslint.config.cjs | 3 +++ src/server/module-dependency-graph.ts | 6 +++--- src/server/transpiler.ts | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/eslint.config.cjs b/eslint.config.cjs index 0a063f7f5..94dffdba2 100644 --- a/eslint.config.cjs +++ b/eslint.config.cjs @@ -6,6 +6,9 @@ const path = require("path"); function resolveCompatibleTypeScriptPath() { try { + // precinct still installs a TypeScript 6 copy that matches the current + // typescript-eslint peer range, so prefer that compiler for parser internals + // until the eslint stack natively supports TypeScript 7. return require.resolve("typescript", { paths: [path.join(__dirname, "node_modules", "precinct", "node_modules")], }); diff --git a/src/server/module-dependency-graph.ts b/src/server/module-dependency-graph.ts index 58aff72e1..14c44191b 100644 --- a/src/server/module-dependency-graph.ts +++ b/src/server/module-dependency-graph.ts @@ -16,7 +16,7 @@ function isNode(value: unknown): value is AstNode { return typeof value === "object" && value !== null; } -function stringLiteralValue(value: unknown): string | undefined { +function extractStringLiteral(value: unknown): string | undefined { return isNode(value) && typeof value.value === "string" ? value.value : undefined; @@ -29,7 +29,7 @@ function dependencyIn(node: AstNode): string | undefined { node.type === "ExportNamedDeclaration" || node.type === "ImportExpression" ) { - return stringLiteralValue(node.source); + return extractStringLiteral(node.source); } if ( @@ -39,7 +39,7 @@ function dependencyIn(node: AstNode): string | undefined { node.callee.name === "require" && Array.isArray(node.arguments) ) { - return stringLiteralValue(node.arguments[0]); + return extractStringLiteral(node.arguments[0]); } } diff --git a/src/server/transpiler.ts b/src/server/transpiler.ts index 7781ca235..356a57be1 100644 --- a/src/server/transpiler.ts +++ b/src/server/transpiler.ts @@ -155,6 +155,8 @@ export class Transpiler extends EventTarget { this.destinationPath, "--rootDir", this.sourcePath, + // TypeScript 7's CLI supports --noCheck, which preserves the prior + // transpileModule behavior of skipping type-checking during cache builds. "--noCheck", sourcePath, ]); From d4c163830e015f300ace925f6f1e43a0aa9cde3a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Jul 2026 15:21:00 +0000 Subject: [PATCH 5/5] chore: fix merged changeset version notes --- .changeset/renovate-8bc1dd8.md | 2 +- .changeset/renovate-9aff90f.md | 2 +- .changeset/renovate-d5034f6.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.changeset/renovate-8bc1dd8.md b/.changeset/renovate-8bc1dd8.md index 057bb03b9..d29bcad3d 100644 --- a/.changeset/renovate-8bc1dd8.md +++ b/.changeset/renovate-8bc1dd8.md @@ -2,4 +2,4 @@ 'counterfact': patch --- -Updated dependency `astro` to `7.0.7`. +Updated dependency `astro` to `7.1.1`. diff --git a/.changeset/renovate-9aff90f.md b/.changeset/renovate-9aff90f.md index 9579b57e9..d29bcad3d 100644 --- a/.changeset/renovate-9aff90f.md +++ b/.changeset/renovate-9aff90f.md @@ -2,4 +2,4 @@ 'counterfact': patch --- -Updated dependency `astro` to `7.1.0`. +Updated dependency `astro` to `7.1.1`. diff --git a/.changeset/renovate-d5034f6.md b/.changeset/renovate-d5034f6.md index 515a33749..64910b3ff 100644 --- a/.changeset/renovate-d5034f6.md +++ b/.changeset/renovate-d5034f6.md @@ -2,4 +2,4 @@ 'counterfact': patch --- -Updated dependency `posthog-node` to `5.41.0`. +Updated dependency `posthog-node` to `5.45.2`.