From 3fd961c80e35e1f1025e2f9290beefed2a3c981e Mon Sep 17 00:00:00 2001 From: Armando Navarro Date: Tue, 7 Jul 2026 18:09:56 -0700 Subject: [PATCH] build: declare the ES2022 standard library in the tsconfigs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The lib declarations (es2018/es2019) understate every runtime this project supports — Node 20+ and the browsers Angular 21 supports all provide ES2022, and the Angular CLI generates new workspaces at ES2022. This also resolves the inconsistency of target es2020 sitting alongside lib es2018. Type-checking declaration only; compilation targets are unchanged, so emitted code is identical. --- tsconfig.base.json | 2 +- tsconfig.build.json | 2 +- tsconfig.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tsconfig.base.json b/tsconfig.base.json index 4fee8cd0d..af0766384 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -18,7 +18,7 @@ "node_modules/@types" ], "lib": [ - "es2018", + "es2022", "dom" ], "paths": { diff --git a/tsconfig.build.json b/tsconfig.build.json index f9f1e42f4..66c6016a6 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -5,7 +5,7 @@ "compilerOptions": { "outDir": "tools", "skipLibCheck": true, - "lib": ["es2019", "dom"], + "lib": ["es2022", "dom"], "module": "commonjs", "target": "ES2020", "plugins": [ diff --git a/tsconfig.json b/tsconfig.json index 2e77c7fb3..4f64a5584 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,7 @@ ], "lib": [ "dom", - "es2018" + "es2022" ] }, "angularCompilerOptions": {