From ce93f2be691877a32e6bbed903ad1824fcab0474 Mon Sep 17 00:00:00 2001 From: Neeraj Gartia Date: Fri, 19 Jan 2024 02:02:28 +0530 Subject: [PATCH] updates docs and compilation target to es2022 Signed-off-by: Neeraj Gartia --- CONTRIBUTING.md | 2 +- packages/client/README.md | 2 +- packages/client/tsconfig.json | 2 +- packages/nest/tsconfig.json | 2 +- packages/react/tsconfig.json | 2 +- packages/server/tsconfig.json | 2 +- packages/shared/tsconfig.json | 2 +- tsconfig.json | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0fb4e5159..d0ae60647 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,7 +8,7 @@ node 16+, npm 8+ are recommended. ### Compilation Target(s) -We target `es2015`, and publish both ES-modules and CommonJS modules. +We target `es2022`, and publish both ES-modules and CommonJS modules. ### Installation and Dependencies diff --git a/packages/client/README.md b/packages/client/README.md index 844234ce2..2faf5eb92 100644 --- a/packages/client/README.md +++ b/packages/client/README.md @@ -47,7 +47,7 @@ ### Requirements -- ES2015-compatible web browser (Chrome, Edge, Firefox, etc) +- es2022-compatible web browser (Chrome, Edge, Firefox, etc) ### Install diff --git a/packages/client/tsconfig.json b/packages/client/tsconfig.json index 85c98d802..85151a65a 100644 --- a/packages/client/tsconfig.json +++ b/packages/client/tsconfig.json @@ -9,7 +9,7 @@ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ /* Language and Environment */ - "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ + "target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ "lib": [ "ES2022", "DOM" diff --git a/packages/nest/tsconfig.json b/packages/nest/tsconfig.json index 3ee02ca8b..6e6e93df3 100644 --- a/packages/nest/tsconfig.json +++ b/packages/nest/tsconfig.json @@ -9,7 +9,7 @@ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ /* Language and Environment */ - "target": "ES2015", + "target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ "lib": [ "ES2022" diff --git a/packages/react/tsconfig.json b/packages/react/tsconfig.json index d064cec90..6b81b00fe 100644 --- a/packages/react/tsconfig.json +++ b/packages/react/tsconfig.json @@ -10,7 +10,7 @@ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ /* Language and Environment */ - "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ + "target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ "lib": [ "ES2022", "DOM" diff --git a/packages/server/tsconfig.json b/packages/server/tsconfig.json index 34b32c820..e5c099528 100644 --- a/packages/server/tsconfig.json +++ b/packages/server/tsconfig.json @@ -9,7 +9,7 @@ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ /* Language and Environment */ - "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ + "target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ "lib": [ "ES2022", ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ diff --git a/packages/shared/tsconfig.json b/packages/shared/tsconfig.json index 5306e103c..a126eef92 100644 --- a/packages/shared/tsconfig.json +++ b/packages/shared/tsconfig.json @@ -9,7 +9,7 @@ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ /* Language and Environment */ - "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ + "target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ "lib": [ "ES2022" ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ diff --git a/tsconfig.json b/tsconfig.json index 409274e83..3c5c245ba 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,7 @@ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ /* Language and Environment */ - "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ + "target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ "lib": [ "ES2022", "DOM"