diff --git a/CHANGELOG.md b/CHANGELOG.md index f272952a62..d027757856 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [1.60.1](https://github.com/aws/jsii/compare/v1.60.0...v1.60.1) (2022-06-09) + +### Bug Fixes + +* **@aws-cdk/check-node** fails to load on older (EOL) releases of node ([#3588](https://github.com/aws/jsii/pull/3588)) ([a1582bf](https://github.com/aws/jsii/commit/a1582bf7d9cc4081dd89e51efb4b3bc76b6e407e)) + ## [1.60.0](https://github.com/aws/jsii/compare/v1.59.0...v1.60.0) (2022-06-08) diff --git a/lerna.json b/lerna.json index 567b856b3a..bc92c4d20b 100644 --- a/lerna.json +++ b/lerna.json @@ -10,5 +10,5 @@ "rejectCycles": true } }, - "version": "1.60.0" + "version": "1.60.1" } diff --git a/packages/@jsii/check-node/src/constants.ts b/packages/@jsii/check-node/src/constants.ts index d91a0d794c..7cf2cc1953 100644 --- a/packages/@jsii/check-node/src/constants.ts +++ b/packages/@jsii/check-node/src/constants.ts @@ -27,8 +27,6 @@ export class NodeRelease { // Past end-of-life releases new NodeRelease(13, { endOfLife: new Date('2020-06-01') }), new NodeRelease(15, { endOfLife: new Date('2021-06-01') }), - - // Deprecated releases new NodeRelease(12, { endOfLife: new Date('2022-04-30'), supportedRange: '^12.7.0', diff --git a/packages/@jsii/check-node/tsconfig.json b/packages/@jsii/check-node/tsconfig.json index 9ffe2e5dea..b7e5c54869 100644 --- a/packages/@jsii/check-node/tsconfig.json +++ b/packages/@jsii/check-node/tsconfig.json @@ -1,9 +1,14 @@ { "extends": "../../../tsconfig-base", "compilerOptions": { + "target": "es2018", // Needs to target older releases of node or else it'll crash on start when using those "outDir": "./lib", "rootDir": "./src", }, - "include": ["src/**/*.ts"], - "exclude": ["jest.config.ts"], + "include": [ + "src/**/*.ts" + ], + "exclude": [ + "jest.config.ts" + ], } diff --git a/packages/@jsii/runtime/webpack.config.js b/packages/@jsii/runtime/webpack.config.js index 12366cf655..81ebe00e7b 100644 --- a/packages/@jsii/runtime/webpack.config.js +++ b/packages/@jsii/runtime/webpack.config.js @@ -18,7 +18,7 @@ module.exports = { iife: false, }, devtool: 'source-map', - target: 'node14.5', + target: 'node12', // Continue to target node 12 so that check-node does not fail to load on it. node: { global: false, __filename: false,