From 0f904d2cabb47e93d2191e73469eb6cf557571e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20My=C5=9Bliwiec?= Date: Wed, 5 Apr 2023 13:31:07 +0200 Subject: [PATCH] chore: update minimum engine version to 16 --- integration/auto-mock/tsconfig.json | 2 +- integration/cors/tsconfig.json | 2 +- integration/graphql-code-first/tsconfig.json | 2 +- integration/graphql-schema-first/tsconfig.json | 2 +- integration/hello-world/tsconfig.json | 2 +- integration/hooks/tsconfig.json | 2 +- integration/injector/tsconfig.json | 2 +- integration/inspector/tsconfig.json | 2 +- integration/microservices/tsconfig.json | 2 +- integration/module-utils/tsconfig.json | 2 +- integration/mongoose/tsconfig.json | 2 +- integration/nest-application/app-locals/tsconfig.json | 2 +- integration/nest-application/get-url/tsconfig.json | 2 +- integration/nest-application/global-prefix/tsconfig.json | 2 +- integration/nest-application/raw-body/tsconfig.json | 2 +- integration/nest-application/sse/tsconfig.json | 2 +- integration/nest-application/use-body-parser/tsconfig.json | 2 +- integration/repl/tsconfig.json | 2 +- integration/scopes/tsconfig.json | 2 +- integration/send-files/tsconfig.json | 2 +- integration/typeorm/tsconfig.json | 2 +- integration/versioning/tsconfig.json | 2 +- integration/websockets/tsconfig.json | 2 +- package.json | 2 +- sample/01-cats-app/tsconfig.json | 2 +- sample/02-gateways/tsconfig.json | 2 +- sample/03-microservices/tsconfig.json | 2 +- sample/04-grpc/tsconfig.json | 2 +- sample/05-sql-typeorm/tsconfig.json | 2 +- sample/06-mongoose/tsconfig.json | 2 +- sample/07-sequelize/tsconfig.json | 2 +- sample/08-webpack/tsconfig.json | 2 +- sample/10-fastify/tsconfig.json | 2 +- sample/11-swagger/tsconfig.json | 2 +- sample/12-graphql-schema-first/tsconfig.json | 2 +- sample/13-mongo-typeorm/tsconfig.json | 2 +- sample/14-mongoose-base/tsconfig.json | 2 +- sample/15-mvc/tsconfig.json | 2 +- sample/16-gateways-ws/tsconfig.json | 2 +- sample/17-mvc-fastify/tsconfig.json | 2 +- sample/18-context/tsconfig.json | 2 +- sample/19-auth-jwt/tsconfig.json | 2 +- sample/20-cache/tsconfig.json | 2 +- sample/21-serializer/tsconfig.json | 2 +- sample/22-graphql-prisma/tsconfig.json | 2 +- sample/23-graphql-code-first/tsconfig.json | 2 +- sample/24-serve-static/tsconfig.json | 2 +- sample/25-dynamic-modules/tsconfig.json | 2 +- sample/26-queues/tsconfig.json | 2 +- sample/27-scheduling/tsconfig.json | 2 +- sample/28-sse/tsconfig.json | 2 +- sample/29-file-upload/tsconfig.json | 2 +- sample/30-event-emitter/tsconfig.json | 2 +- sample/31-graphql-federation-code-first/gateway/tsconfig.json | 2 +- .../posts-application/tsconfig.json | 2 +- .../users-application/tsconfig.json | 2 +- .../32-graphql-federation-schema-first/gateway/tsconfig.json | 2 +- .../posts-application/tsconfig.json | 2 +- .../users-application/tsconfig.json | 2 +- sample/33-graphql-mercurius/tsconfig.json | 2 +- tools/gulp/tsconfig.json | 3 +-- tsconfig.json | 3 +-- 62 files changed, 62 insertions(+), 64 deletions(-) diff --git a/integration/auto-mock/tsconfig.json b/integration/auto-mock/tsconfig.json index bfc9f6f7963..cef623d14c9 100644 --- a/integration/auto-mock/tsconfig.json +++ b/integration/auto-mock/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/cors/tsconfig.json b/integration/cors/tsconfig.json index bfc9f6f7963..cef623d14c9 100644 --- a/integration/cors/tsconfig.json +++ b/integration/cors/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/graphql-code-first/tsconfig.json b/integration/graphql-code-first/tsconfig.json index bfc9f6f7963..cef623d14c9 100644 --- a/integration/graphql-code-first/tsconfig.json +++ b/integration/graphql-code-first/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/graphql-schema-first/tsconfig.json b/integration/graphql-schema-first/tsconfig.json index bfc9f6f7963..cef623d14c9 100644 --- a/integration/graphql-schema-first/tsconfig.json +++ b/integration/graphql-schema-first/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/hello-world/tsconfig.json b/integration/hello-world/tsconfig.json index bfc9f6f7963..cef623d14c9 100644 --- a/integration/hello-world/tsconfig.json +++ b/integration/hello-world/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/hooks/tsconfig.json b/integration/hooks/tsconfig.json index bfc9f6f7963..cef623d14c9 100644 --- a/integration/hooks/tsconfig.json +++ b/integration/hooks/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/injector/tsconfig.json b/integration/injector/tsconfig.json index bfc9f6f7963..cef623d14c9 100644 --- a/integration/injector/tsconfig.json +++ b/integration/injector/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/inspector/tsconfig.json b/integration/inspector/tsconfig.json index bfc9f6f7963..cef623d14c9 100644 --- a/integration/inspector/tsconfig.json +++ b/integration/inspector/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/microservices/tsconfig.json b/integration/microservices/tsconfig.json index bfc9f6f7963..cef623d14c9 100644 --- a/integration/microservices/tsconfig.json +++ b/integration/microservices/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/module-utils/tsconfig.json b/integration/module-utils/tsconfig.json index bfc9f6f7963..cef623d14c9 100644 --- a/integration/module-utils/tsconfig.json +++ b/integration/module-utils/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/mongoose/tsconfig.json b/integration/mongoose/tsconfig.json index bfc9f6f7963..cef623d14c9 100644 --- a/integration/mongoose/tsconfig.json +++ b/integration/mongoose/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/nest-application/app-locals/tsconfig.json b/integration/nest-application/app-locals/tsconfig.json index 957e23bb21f..c3692649c05 100644 --- a/integration/nest-application/app-locals/tsconfig.json +++ b/integration/nest-application/app-locals/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/nest-application/get-url/tsconfig.json b/integration/nest-application/get-url/tsconfig.json index 957e23bb21f..c3692649c05 100644 --- a/integration/nest-application/get-url/tsconfig.json +++ b/integration/nest-application/get-url/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/nest-application/global-prefix/tsconfig.json b/integration/nest-application/global-prefix/tsconfig.json index 957e23bb21f..c3692649c05 100644 --- a/integration/nest-application/global-prefix/tsconfig.json +++ b/integration/nest-application/global-prefix/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/nest-application/raw-body/tsconfig.json b/integration/nest-application/raw-body/tsconfig.json index 957e23bb21f..c3692649c05 100644 --- a/integration/nest-application/raw-body/tsconfig.json +++ b/integration/nest-application/raw-body/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/nest-application/sse/tsconfig.json b/integration/nest-application/sse/tsconfig.json index 4db84193e95..261e01453c3 100644 --- a/integration/nest-application/sse/tsconfig.json +++ b/integration/nest-application/sse/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "lib": ["dom"], diff --git a/integration/nest-application/use-body-parser/tsconfig.json b/integration/nest-application/use-body-parser/tsconfig.json index 261f9bff228..999ab15b777 100644 --- a/integration/nest-application/use-body-parser/tsconfig.json +++ b/integration/nest-application/use-body-parser/tsconfig.json @@ -8,7 +8,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist" diff --git a/integration/repl/tsconfig.json b/integration/repl/tsconfig.json index bfc9f6f7963..cef623d14c9 100644 --- a/integration/repl/tsconfig.json +++ b/integration/repl/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/scopes/tsconfig.json b/integration/scopes/tsconfig.json index bfc9f6f7963..cef623d14c9 100644 --- a/integration/scopes/tsconfig.json +++ b/integration/scopes/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/send-files/tsconfig.json b/integration/send-files/tsconfig.json index bfc9f6f7963..cef623d14c9 100644 --- a/integration/send-files/tsconfig.json +++ b/integration/send-files/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/typeorm/tsconfig.json b/integration/typeorm/tsconfig.json index bfc9f6f7963..cef623d14c9 100644 --- a/integration/typeorm/tsconfig.json +++ b/integration/typeorm/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/versioning/tsconfig.json b/integration/versioning/tsconfig.json index bfc9f6f7963..cef623d14c9 100644 --- a/integration/versioning/tsconfig.json +++ b/integration/versioning/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/integration/websockets/tsconfig.json b/integration/websockets/tsconfig.json index bfc9f6f7963..cef623d14c9 100644 --- a/integration/websockets/tsconfig.json +++ b/integration/websockets/tsconfig.json @@ -7,7 +7,7 @@ "noLib": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": true, "outDir": "./dist", diff --git a/package.json b/package.json index cd140d80dbc..5bd36170271 100644 --- a/package.json +++ b/package.json @@ -176,7 +176,7 @@ "ws": "8.13.0" }, "engines": { - "node": ">= 12.9.0" + "node": ">= 16" }, "collective": { "type": "opencollective", diff --git a/sample/01-cats-app/tsconfig.json b/sample/01-cats-app/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/01-cats-app/tsconfig.json +++ b/sample/01-cats-app/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/02-gateways/tsconfig.json b/sample/02-gateways/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/02-gateways/tsconfig.json +++ b/sample/02-gateways/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/03-microservices/tsconfig.json b/sample/03-microservices/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/03-microservices/tsconfig.json +++ b/sample/03-microservices/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/04-grpc/tsconfig.json b/sample/04-grpc/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/04-grpc/tsconfig.json +++ b/sample/04-grpc/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/05-sql-typeorm/tsconfig.json b/sample/05-sql-typeorm/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/05-sql-typeorm/tsconfig.json +++ b/sample/05-sql-typeorm/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/06-mongoose/tsconfig.json b/sample/06-mongoose/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/06-mongoose/tsconfig.json +++ b/sample/06-mongoose/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/07-sequelize/tsconfig.json b/sample/07-sequelize/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/07-sequelize/tsconfig.json +++ b/sample/07-sequelize/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/08-webpack/tsconfig.json b/sample/08-webpack/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/08-webpack/tsconfig.json +++ b/sample/08-webpack/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/10-fastify/tsconfig.json b/sample/10-fastify/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/10-fastify/tsconfig.json +++ b/sample/10-fastify/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/11-swagger/tsconfig.json b/sample/11-swagger/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/11-swagger/tsconfig.json +++ b/sample/11-swagger/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/12-graphql-schema-first/tsconfig.json b/sample/12-graphql-schema-first/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/12-graphql-schema-first/tsconfig.json +++ b/sample/12-graphql-schema-first/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/13-mongo-typeorm/tsconfig.json b/sample/13-mongo-typeorm/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/13-mongo-typeorm/tsconfig.json +++ b/sample/13-mongo-typeorm/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/14-mongoose-base/tsconfig.json b/sample/14-mongoose-base/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/14-mongoose-base/tsconfig.json +++ b/sample/14-mongoose-base/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/15-mvc/tsconfig.json b/sample/15-mvc/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/15-mvc/tsconfig.json +++ b/sample/15-mvc/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/16-gateways-ws/tsconfig.json b/sample/16-gateways-ws/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/16-gateways-ws/tsconfig.json +++ b/sample/16-gateways-ws/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/17-mvc-fastify/tsconfig.json b/sample/17-mvc-fastify/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/17-mvc-fastify/tsconfig.json +++ b/sample/17-mvc-fastify/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/18-context/tsconfig.json b/sample/18-context/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/18-context/tsconfig.json +++ b/sample/18-context/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/19-auth-jwt/tsconfig.json b/sample/19-auth-jwt/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/19-auth-jwt/tsconfig.json +++ b/sample/19-auth-jwt/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/20-cache/tsconfig.json b/sample/20-cache/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/20-cache/tsconfig.json +++ b/sample/20-cache/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/21-serializer/tsconfig.json b/sample/21-serializer/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/21-serializer/tsconfig.json +++ b/sample/21-serializer/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/22-graphql-prisma/tsconfig.json b/sample/22-graphql-prisma/tsconfig.json index e268e37aa3d..d9c82ca9758 100755 --- a/sample/22-graphql-prisma/tsconfig.json +++ b/sample/22-graphql-prisma/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/23-graphql-code-first/tsconfig.json b/sample/23-graphql-code-first/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/23-graphql-code-first/tsconfig.json +++ b/sample/23-graphql-code-first/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/24-serve-static/tsconfig.json b/sample/24-serve-static/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/24-serve-static/tsconfig.json +++ b/sample/24-serve-static/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/25-dynamic-modules/tsconfig.json b/sample/25-dynamic-modules/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/25-dynamic-modules/tsconfig.json +++ b/sample/25-dynamic-modules/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/26-queues/tsconfig.json b/sample/26-queues/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/26-queues/tsconfig.json +++ b/sample/26-queues/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/27-scheduling/tsconfig.json b/sample/27-scheduling/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/27-scheduling/tsconfig.json +++ b/sample/27-scheduling/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/28-sse/tsconfig.json b/sample/28-sse/tsconfig.json index 4e6e210f140..1bbdea209f3 100644 --- a/sample/28-sse/tsconfig.json +++ b/sample/28-sse/tsconfig.json @@ -5,7 +5,7 @@ "removeComments": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/29-file-upload/tsconfig.json b/sample/29-file-upload/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/29-file-upload/tsconfig.json +++ b/sample/29-file-upload/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/30-event-emitter/tsconfig.json b/sample/30-event-emitter/tsconfig.json index a0e283732ac..d670b01d5b2 100644 --- a/sample/30-event-emitter/tsconfig.json +++ b/sample/30-event-emitter/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/31-graphql-federation-code-first/gateway/tsconfig.json b/sample/31-graphql-federation-code-first/gateway/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/31-graphql-federation-code-first/gateway/tsconfig.json +++ b/sample/31-graphql-federation-code-first/gateway/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/31-graphql-federation-code-first/posts-application/tsconfig.json b/sample/31-graphql-federation-code-first/posts-application/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/31-graphql-federation-code-first/posts-application/tsconfig.json +++ b/sample/31-graphql-federation-code-first/posts-application/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/31-graphql-federation-code-first/users-application/tsconfig.json b/sample/31-graphql-federation-code-first/users-application/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/31-graphql-federation-code-first/users-application/tsconfig.json +++ b/sample/31-graphql-federation-code-first/users-application/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/32-graphql-federation-schema-first/gateway/tsconfig.json b/sample/32-graphql-federation-schema-first/gateway/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/32-graphql-federation-schema-first/gateway/tsconfig.json +++ b/sample/32-graphql-federation-schema-first/gateway/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/32-graphql-federation-schema-first/posts-application/tsconfig.json b/sample/32-graphql-federation-schema-first/posts-application/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/32-graphql-federation-schema-first/posts-application/tsconfig.json +++ b/sample/32-graphql-federation-schema-first/posts-application/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/32-graphql-federation-schema-first/users-application/tsconfig.json b/sample/32-graphql-federation-schema-first/users-application/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/32-graphql-federation-schema-first/users-application/tsconfig.json +++ b/sample/32-graphql-federation-schema-first/users-application/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/sample/33-graphql-mercurius/tsconfig.json b/sample/33-graphql-mercurius/tsconfig.json index e268e37aa3d..d9c82ca9758 100644 --- a/sample/33-graphql-mercurius/tsconfig.json +++ b/sample/33-graphql-mercurius/tsconfig.json @@ -6,7 +6,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, - "target": "es2017", + "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/tools/gulp/tsconfig.json b/tools/gulp/tsconfig.json index 6438b3c5aee..0432178305b 100644 --- a/tools/gulp/tsconfig.json +++ b/tools/gulp/tsconfig.json @@ -3,7 +3,6 @@ "experimentalDecorators": true, "noUnusedParameters": false, "noUnusedLocals": false, - "lib": ["es2015", "dom", "es2016.array.include"], "module": "commonjs", "moduleResolution": "node", "outDir": "../../dist/tools/gulp", @@ -12,7 +11,7 @@ "noImplicitThis": true, "noEmitOnError": true, "noImplicitAny": false, - "target": "es5", + "target": "ES2021", "types": [ "node" ], diff --git a/tsconfig.json b/tsconfig.json index 25997000079..89fc99832e3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,11 +8,10 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "useUnknownInCatchVariables": false, - "target": "es6", + "target": "ES2021", "sourceMap": true, "allowJs": false, "outDir": "dist", - "lib": ["es7"], "baseUrl": ".", "paths": { "@nestjs/common": ["./packages/common"],