From e1dab49fd2e18db1d3b1877df579220996d5fcc2 Mon Sep 17 00:00:00 2001 From: Neeraj Gartia Date: Tue, 16 Jan 2024 00:30:36 +0530 Subject: [PATCH 1/3] adds cause option to errors and updates compiler option to es2022 Signed-off-by: Neeraj Gartia --- packages/client/package.json | 4 ++-- packages/client/tsconfig.json | 4 ++-- packages/nest/package.json | 4 ++-- packages/nest/tsconfig.json | 4 ++-- packages/react/package.json | 4 ++-- packages/react/tsconfig.json | 4 ++-- packages/server/package.json | 4 ++-- packages/server/tsconfig.json | 4 ++-- packages/shared/package.json | 4 ++-- packages/shared/src/errors/flag-not-found-error.ts | 4 ++-- packages/shared/src/errors/general-error.ts | 4 ++-- packages/shared/src/errors/invalid-context-error.ts | 4 ++-- packages/shared/src/errors/open-feature-error-abstract.ts | 4 ++-- packages/shared/src/errors/parse-error.ts | 4 ++-- packages/shared/src/errors/provider-not-ready-error.ts | 4 ++-- packages/shared/src/errors/targeting-key-missing-error.ts | 4 ++-- packages/shared/src/errors/type-mismatch-error.ts | 4 ++-- packages/shared/tsconfig.json | 4 ++-- tsconfig.json | 4 ++-- 19 files changed, 38 insertions(+), 38 deletions(-) diff --git a/packages/client/package.json b/packages/client/package.json index 3e5ddc45d..c89258bdf 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -17,8 +17,8 @@ "test": "jest --verbose", "lint": "eslint ./", "clean": "shx rm -rf ./dist", - "build:web-esm": "esbuild src/index.ts --bundle --external:@openfeature/core --sourcemap --target=es2016 --platform=browser --format=esm --outfile=./dist/esm/index.js --analyze", - "build:web-cjs": "esbuild src/index.ts --bundle --external:@openfeature/core --sourcemap --target=es2016 --platform=browser --format=cjs --outfile=./dist/cjs/index.js --analyze", + "build:web-esm": "esbuild src/index.ts --bundle --external:@openfeature/core --sourcemap --target=es2022 --platform=browser --format=esm --outfile=./dist/esm/index.js --analyze", + "build:web-cjs": "esbuild src/index.ts --bundle --external:@openfeature/core --sourcemap --target=es2022 --platform=browser --format=cjs --outfile=./dist/cjs/index.js --analyze", "build:rollup-types": "rollup -c ../../rollup.config.mjs", "build": "npm run clean && npm run build:web-esm && npm run build:web-cjs && npm run build:rollup-types", "postbuild": "shx cp ./../../package.esm.json ./dist/esm/package.json", diff --git a/packages/client/tsconfig.json b/packages/client/tsconfig.json index 0d1267ce9..85c98d802 100644 --- a/packages/client/tsconfig.json +++ b/packages/client/tsconfig.json @@ -11,7 +11,7 @@ /* Language and Environment */ "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ "lib": [ - "ES2020", + "ES2022", "DOM" ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ // "jsx": "preserve", /* Specify what JSX code is generated. */ @@ -24,7 +24,7 @@ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ /* Modules */ - "module": "ES2020", /* Specify what module code is generated. */ + "module": "ES2022", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ diff --git a/packages/nest/package.json b/packages/nest/package.json index 09e023264..688d8a8d1 100644 --- a/packages/nest/package.json +++ b/packages/nest/package.json @@ -17,8 +17,8 @@ "test": "jest --verbose", "lint": "eslint ./", "clean": "shx rm -rf ./dist", - "build:esm": "esbuild src/index.ts --bundle --external:@nestjs/* --external:@openfeature/server-sdk --sourcemap --target=es2016 --platform=node --format=esm --outfile=./dist/esm/index.js --analyze", - "build:cjs": "esbuild src/index.ts --bundle --external:@nestjs/* --external:@openfeature/server-sdk --sourcemap --target=es2016 --platform=node --format=cjs --outfile=./dist/cjs/index.js --analyze", + "build:esm": "esbuild src/index.ts --bundle --external:@nestjs/* --external:@openfeature/server-sdk --sourcemap --target=es2022 --platform=node --format=esm --outfile=./dist/esm/index.js --analyze", + "build:cjs": "esbuild src/index.ts --bundle --external:@nestjs/* --external:@openfeature/server-sdk --sourcemap --target=es2022 --platform=node --format=cjs --outfile=./dist/cjs/index.js --analyze", "build:rollup-types": "rollup -c ../../rollup.config.mjs", "build": "npm run clean && npm run build:esm && npm run build:cjs && npm run build:rollup-types", "postbuild": "shx cp ./../../package.esm.json ./dist/esm/package.json", diff --git a/packages/nest/tsconfig.json b/packages/nest/tsconfig.json index 1931d31bc..3ee02ca8b 100644 --- a/packages/nest/tsconfig.json +++ b/packages/nest/tsconfig.json @@ -12,7 +12,7 @@ "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ "lib": [ - "ES2020" + "ES2022" ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ // "jsx": "preserve", /* Specify what JSX code is generated. */ @@ -27,7 +27,7 @@ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ /* Modules */ - "module": "ES2020", + "module": "ES2022", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ "moduleResolution": "node", diff --git a/packages/react/package.json b/packages/react/package.json index 306173548..94bf15382 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -17,8 +17,8 @@ "test": "jest --verbose", "lint": "eslint ./", "clean": "shx rm -rf ./dist", - "build:react-esm": "esbuild src/index.ts --bundle --external:react --external:@openfeature/web-sdk --sourcemap --target=es2016 --platform=browser --format=esm --outfile=./dist/esm/index.js --analyze", - "build:react-cjs": "esbuild src/index.ts --bundle --external:react --external:@openfeature/web-sdk --sourcemap --target=es2016 --platform=browser --format=cjs --outfile=./dist/cjs/index.js --analyze", + "build:react-esm": "esbuild src/index.ts --bundle --external:react --external:@openfeature/web-sdk --sourcemap --target=es2022 --platform=browser --format=esm --outfile=./dist/esm/index.js --analyze", + "build:react-cjs": "esbuild src/index.ts --bundle --external:react --external:@openfeature/web-sdk --sourcemap --target=es2022 --platform=browser --format=cjs --outfile=./dist/cjs/index.js --analyze", "build:rollup-types": "rollup -c ../../rollup.config.mjs", "build": "npm run clean && npm run build:react-esm && npm run build:react-cjs && npm run build:rollup-types", "postbuild": "shx cp ./../../package.esm.json ./dist/esm/package.json", diff --git a/packages/react/tsconfig.json b/packages/react/tsconfig.json index 42ff0cccf..d064cec90 100644 --- a/packages/react/tsconfig.json +++ b/packages/react/tsconfig.json @@ -12,7 +12,7 @@ /* Language and Environment */ "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ "lib": [ - "ES2020", + "ES2022", "DOM" ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ // "jsx": "preserve", /* Specify what JSX code is generated. */ @@ -25,7 +25,7 @@ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ /* Modules */ - "module": "ES2020", /* Specify what module code is generated. */ + "module": "ES2022", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ diff --git a/packages/server/package.json b/packages/server/package.json index a72a20945..4dab25722 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -17,8 +17,8 @@ "test": "jest --verbose", "lint": "eslint ./", "clean": "shx rm -rf ./dist", - "build:esm": "esbuild src/index.ts --bundle --external:@openfeature/core --sourcemap --target=es2016 --platform=node --format=esm --outfile=./dist/esm/index.js --analyze", - "build:cjs": "esbuild src/index.ts --bundle --external:@openfeature/core --sourcemap --target=es2016 --platform=node --format=cjs --outfile=./dist/cjs/index.js --analyze", + "build:esm": "esbuild src/index.ts --bundle --external:@openfeature/core --sourcemap --target=es2022 --platform=node --format=esm --outfile=./dist/esm/index.js --analyze", + "build:cjs": "esbuild src/index.ts --bundle --external:@openfeature/core --sourcemap --target=es2022 --platform=node --format=cjs --outfile=./dist/cjs/index.js --analyze", "build:rollup-types": "rollup -c ../../rollup.config.mjs", "build": "npm run clean && npm run build:esm && npm run build:cjs && npm run build:rollup-types", "postbuild": "shx cp ./../../package.esm.json ./dist/esm/package.json", diff --git a/packages/server/tsconfig.json b/packages/server/tsconfig.json index 1168d18e1..34b32c820 100644 --- a/packages/server/tsconfig.json +++ b/packages/server/tsconfig.json @@ -11,7 +11,7 @@ /* Language and Environment */ "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ "lib": [ - "ES2020", + "ES2022", ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ // "jsx": "preserve", /* Specify what JSX code is generated. */ // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */ @@ -23,7 +23,7 @@ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ /* Modules */ - "module": "ES2020", /* Specify what module code is generated. */ + "module": "ES2022", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ diff --git a/packages/shared/package.json b/packages/shared/package.json index ea3f628fd..7d80efa89 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -19,8 +19,8 @@ "lint": "eslint ./", "clean": "shx rm -rf ./dist", "type": "tsc --project ./tsconfig.json --declaration --emitDeclarationOnly", - "build:esm": "esbuild src/index.ts --bundle --external:events --sourcemap --target=es2016 --format=esm --outfile=./dist/esm/index.js --analyze", - "build:cjs": "esbuild src/index.ts --bundle --external:events --sourcemap --target=es2016 --format=cjs --outfile=./dist/cjs/index.js --analyze", + "build:esm": "esbuild src/index.ts --bundle --external:events --sourcemap --target=es2022 --format=esm --outfile=./dist/esm/index.js --analyze", + "build:cjs": "esbuild src/index.ts --bundle --external:events --sourcemap --target=es2022 --format=cjs --outfile=./dist/cjs/index.js --analyze", "build:rollup-types": "rollup -c ../../rollup.config.mjs", "build": "npm run clean && npm run build:esm && npm run build:cjs && npm run build:rollup-types", "postbuild": "shx cp ./../../package.esm.json ./dist/esm/package.json", diff --git a/packages/shared/src/errors/flag-not-found-error.ts b/packages/shared/src/errors/flag-not-found-error.ts index e30261971..ef2be8620 100644 --- a/packages/shared/src/errors/flag-not-found-error.ts +++ b/packages/shared/src/errors/flag-not-found-error.ts @@ -3,8 +3,8 @@ import { ErrorCode } from '../evaluation'; export class FlagNotFoundError extends OpenFeatureError { code: ErrorCode; - constructor(message?: string) { - super(message); + constructor(message?: string, options?: ErrorOptions) { + super(message, options); Object.setPrototypeOf(this, FlagNotFoundError.prototype); this.name = 'FlagNotFoundError'; this.code = ErrorCode.FLAG_NOT_FOUND; diff --git a/packages/shared/src/errors/general-error.ts b/packages/shared/src/errors/general-error.ts index c00588396..f3d6e81dd 100644 --- a/packages/shared/src/errors/general-error.ts +++ b/packages/shared/src/errors/general-error.ts @@ -3,8 +3,8 @@ import { ErrorCode } from '../evaluation'; export class GeneralError extends OpenFeatureError { code: ErrorCode; - constructor(message?: string) { - super(message); + constructor(message?: string, options?: ErrorOptions) { + super(message, options); Object.setPrototypeOf(this, GeneralError.prototype); this.name = 'GeneralError'; this.code = ErrorCode.GENERAL; diff --git a/packages/shared/src/errors/invalid-context-error.ts b/packages/shared/src/errors/invalid-context-error.ts index c38edc890..73ed41270 100644 --- a/packages/shared/src/errors/invalid-context-error.ts +++ b/packages/shared/src/errors/invalid-context-error.ts @@ -3,8 +3,8 @@ import { ErrorCode } from '../evaluation'; export class InvalidContextError extends OpenFeatureError { code: ErrorCode; - constructor(message?: string) { - super(message); + constructor(message?: string, options?: ErrorOptions) { + super(message, options); Object.setPrototypeOf(this, InvalidContextError.prototype); this.name = 'InvalidContextError'; this.code = ErrorCode.INVALID_CONTEXT; diff --git a/packages/shared/src/errors/open-feature-error-abstract.ts b/packages/shared/src/errors/open-feature-error-abstract.ts index 68c811a13..4ce07bca1 100644 --- a/packages/shared/src/errors/open-feature-error-abstract.ts +++ b/packages/shared/src/errors/open-feature-error-abstract.ts @@ -2,8 +2,8 @@ import { ErrorCode } from '../evaluation'; export abstract class OpenFeatureError extends Error { abstract code: ErrorCode; - constructor(message?: string) { - super(message); + constructor(message?: string, options?: ErrorOptions) { + super(message, options); Object.setPrototypeOf(this, OpenFeatureError.prototype); this.name = 'OpenFeatureError'; } diff --git a/packages/shared/src/errors/parse-error.ts b/packages/shared/src/errors/parse-error.ts index 046bc5d4b..d4fc05fcc 100644 --- a/packages/shared/src/errors/parse-error.ts +++ b/packages/shared/src/errors/parse-error.ts @@ -3,8 +3,8 @@ import { ErrorCode } from '../evaluation'; export class ParseError extends OpenFeatureError { code: ErrorCode; - constructor(message?: string) { - super(message); + constructor(message?: string, options?: ErrorOptions) { + super(message, options); Object.setPrototypeOf(this, ParseError.prototype); this.name = 'ParseError'; this.code = ErrorCode.PARSE_ERROR; diff --git a/packages/shared/src/errors/provider-not-ready-error.ts b/packages/shared/src/errors/provider-not-ready-error.ts index 7aeea524d..495a3826c 100644 --- a/packages/shared/src/errors/provider-not-ready-error.ts +++ b/packages/shared/src/errors/provider-not-ready-error.ts @@ -3,8 +3,8 @@ import { ErrorCode } from '../evaluation'; export class ProviderNotReadyError extends OpenFeatureError { code: ErrorCode; - constructor(message?: string) { - super(message); + constructor(message?: string, options?: ErrorOptions) { + super(message, options); Object.setPrototypeOf(this, ProviderNotReadyError.prototype); this.name = 'ProviderNotReadyError'; this.code = ErrorCode.PROVIDER_NOT_READY; diff --git a/packages/shared/src/errors/targeting-key-missing-error.ts b/packages/shared/src/errors/targeting-key-missing-error.ts index ae4ec6138..c53135e89 100644 --- a/packages/shared/src/errors/targeting-key-missing-error.ts +++ b/packages/shared/src/errors/targeting-key-missing-error.ts @@ -3,8 +3,8 @@ import { ErrorCode } from '../evaluation'; export class TargetingKeyMissingError extends OpenFeatureError { code: ErrorCode; - constructor(message?: string) { - super(message); + constructor(message?: string, options?: ErrorOptions) { + super(message, options); Object.setPrototypeOf(this, TargetingKeyMissingError.prototype); this.name = 'TargetingKeyMissingError'; this.code = ErrorCode.TARGETING_KEY_MISSING; diff --git a/packages/shared/src/errors/type-mismatch-error.ts b/packages/shared/src/errors/type-mismatch-error.ts index 358d9869b..0cc5bbff1 100644 --- a/packages/shared/src/errors/type-mismatch-error.ts +++ b/packages/shared/src/errors/type-mismatch-error.ts @@ -3,8 +3,8 @@ import { ErrorCode } from '../evaluation'; export class TypeMismatchError extends OpenFeatureError { code: ErrorCode; - constructor(message?: string) { - super(message); + constructor(message?: string, options?: ErrorOptions) { + super(message, options); Object.setPrototypeOf(this, TypeMismatchError.prototype); this.name = 'TypeMismatchError'; this.code = ErrorCode.TYPE_MISMATCH; diff --git a/packages/shared/tsconfig.json b/packages/shared/tsconfig.json index adf8d22c8..5306e103c 100644 --- a/packages/shared/tsconfig.json +++ b/packages/shared/tsconfig.json @@ -11,7 +11,7 @@ /* Language and Environment */ "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ "lib": [ - "ES2020" + "ES2022" ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ // "jsx": "preserve", /* Specify what JSX code is generated. */ // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */ @@ -23,7 +23,7 @@ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ /* Modules */ - "module": "ES2020", /* Specify what module code is generated. */ + "module": "ES2022", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ diff --git a/tsconfig.json b/tsconfig.json index e7a7b3538..409274e83 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,7 @@ /* Language and Environment */ "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ "lib": [ - "ES2020", + "ES2022", "DOM" ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ // "jsx": "preserve", /* Specify what JSX code is generated. */ @@ -24,7 +24,7 @@ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ /* Modules */ - "module": "ES2020", /* Specify what module code is generated. */ + "module": "ES2022", /* Specify what module code is generated. */ // "rootDir": "./", /* Specify the root folder within your source files. */ "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ From a85efd1224e9aae07dfbd33c68d5f2ca8f28fb24 Mon Sep 17 00:00:00 2001 From: Neeraj Gartia Date: Fri, 19 Jan 2024 02:02:28 +0530 Subject: [PATCH 2/3] 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" From 16c31c9ae749b555e30669b9766e6258efa43a80 Mon Sep 17 00:00:00 2001 From: Neeraj Gartia Date: Fri, 19 Jan 2024 02:21:29 +0530 Subject: [PATCH 3/3] fixes character case Signed-off-by: Neeraj Gartia --- 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 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/client/README.md b/packages/client/README.md index 2faf5eb92..c9e733283 100644 --- a/packages/client/README.md +++ b/packages/client/README.md @@ -47,7 +47,7 @@ ### Requirements -- es2022-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 85151a65a..6337d1932 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": "es2022", /* 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 6e6e93df3..7fba90b70 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": "es2022", + "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 6b81b00fe..ce6ea3feb 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": "es2022", /* 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 e5c099528..12f2abfc1 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": "es2022", /* 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 a126eef92..7729e02b5 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": "es2022", /* 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 3c5c245ba..541252c67 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": "es2022", /* 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"