diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ed3921b..727ee11 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: - node-version: [10.13, 10.x, 11.x, 12.x, 13.x, 14.x, 15.x] + node-version: [14.x, 16.x, 18.x] steps: - uses: actions/checkout@v1 diff --git a/CHANGELOG.md b/CHANGELOG.md index c0c92bf..e069314 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - properly execute args validation for nullable items array (#1328) ### Others - **Breaking Change**: update `class-validator` peer dependency to `>=0.13.0` +- **Breaking Change**: change build config to ES2019 - drop support for Node.js < 14.5 ## v1.2.0-rc.1 ### Features diff --git a/docs/installation.md b/docs/installation.md index e2ccb1b..ca4b2c3 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -39,11 +39,11 @@ It's important to set these options in the `tsconfig.json` file of our project: } ``` -`TypeGraphQL` is designed to work with Node.js LTS (10.3+, 12+) and the latest stable releases. It uses features from ES2018 so we should set our `tsconfig.json` file appropriately: +`TypeGraphQL` is designed to work with Node.js LTS and the latest stable releases. It uses features from ES2019 so we should set our `tsconfig.json` file appropriately: ```js { - "target": "es2018" // or newer if your node.js version supports this + "target": "es2019" // or newer if your node.js version supports this } ``` @@ -51,7 +51,7 @@ Due to using the `graphql-subscription` dependency that relies on an `AsyncItera ```json { - "lib": ["es2018", "esnext.asynciterable"] + "lib": ["es2019", "esnext.asynciterable"] } ``` @@ -60,9 +60,9 @@ All in all, the minimal `tsconfig.json` file example looks like this: ```json { "compilerOptions": { - "target": "es2018", + "target": "es2019", "module": "commonjs", - "lib": ["es2018", "esnext.asynciterable"], + "lib": ["es2019", "esnext.asynciterable"], "experimentalDecorators": true, "emitDecoratorMetadata": true } diff --git a/package.json b/package.json index 3cc57c8..1656e9e 100644 --- a/package.json +++ b/package.json @@ -121,7 +121,7 @@ "apollo" ], "engines": { - "node": ">= 10.13" + "node": ">= 14.5.0" }, "private": true } diff --git a/tsconfig.json b/tsconfig.json index d59283c..542c4c4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,10 +1,10 @@ { "compilerOptions": { /* Basic Options */ - "target": "es2018", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ + "target": "es2019", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ "lib": [ /* Specify library files to be included in the compilation. */ - "es2018", + "es2019", "esnext.asynciterable" ], // "allowJs": true, /* Allow javascript files to be compiled. */