From 95db35b6c32cd1b4a9ced80e6f66e7b6a85774d6 Mon Sep 17 00:00:00 2001 From: "pulse-triage[bot]" <249995291+pulse-triage[bot]@users.noreply.github.com> Date: Sat, 19 Sep 2026 21:03:12 +0100 Subject: [PATCH] fix(frontend): declare ES2022 lib for .at() usage The frontend source uses Array.prototype.at()/String.prototype.at() in 83 places, but tsconfig declared only the ES2020 lib. Type-checking passed only because @types/node 20 shipped an .at() compatibility polyfill; @types/node 26 removes it, which is why Dependabot #2099 failed Frontend tsc with TS2550. Declare ES2022 so the compiler knows the runtime methods the code already relies on. Build target stays ES2020. Change-source: pulse-maintainer --- frontend-modern/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend-modern/tsconfig.json b/frontend-modern/tsconfig.json index e327489238..ae8d2a28e2 100644 --- a/frontend-modern/tsconfig.json +++ b/frontend-modern/tsconfig.json @@ -3,7 +3,7 @@ "target": "ES2020", "useDefineForClassFields": true, "module": "ESNext", - "lib": ["ES2020", "DOM", "DOM.Iterable"], + "lib": ["ES2020", "ES2022", "DOM", "DOM.Iterable"], "skipLibCheck": true, "jsx": "preserve", "jsxImportSource": "solid-js",