Skip to content

Commit

Permalink
chore(deps): deprecate NodeJS pre 18.* (#1163)
Browse files Browse the repository at this point in the history
  • Loading branch information
jusiskin authored Dec 19, 2023
1 parent f5edaeb commit 84955d1
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ It offers high-level object-oriented abstractions to define render farm infrastr
using the power of Python and Typescript.

The RFDK is available in:
- Javascript, Typescript ([Node.js >= 18.0.0](https://nodejs.org/download/release/latest-v18.x/))
- Javascript, Typescript ([Node.js >= 18.0.0](https://nodejs.org/download/release/latest-v18.x/) officially supported, [Node.js >= 14.15.0](https://nodejs.org/download/release/latest-v14.x/) unofficially supported)
- We recommend using an [Active LTS Release](https://nodejs.org/en/about/releases/)
- Python ([Python >= 3.6](https://www.python.org/downloads/))

Expand Down
2 changes: 1 addition & 1 deletion integ/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@
"constructs": "^10.0.0"
},
"engines": {
"node": ">= 18.0.0"
"node": ">= 14.15.0"
}
}
2 changes: 1 addition & 1 deletion lambda-layers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"watch": "tsc -w"
},
"engines": {
"node": ">= 18.0.0"
"node": ">= 14.15.0"
},
"stability": "stable",
"maturity": "stable",
Expand Down
4 changes: 2 additions & 2 deletions packages/aws-rfdk/docs/upgrade/upgrading-1.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Updating Node.js

Node 14 is End of Life and RFDK >= 1.3.x no longer supports it. Node.js 18.0.0 is the minimum version
that RFDK now supports.
Node 14 is End of Life and RFDK >= 1.3.x no longer officially supports it. Node.js 18.0.0 is now
the minimum officially supported version that RFDK now supports.

You can follow our [installation guide](CONTRIBUTING.md#installing-nodejs) for Node.js to upgrade to the latest version.
6 changes: 6 additions & 0 deletions packages/aws-rfdk/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@

export * from './core';
export * as deadline from './deadline';

// Emit a warning for NodeJS versions earlier than 18.x
const version = process.versions.node.split('.').map(parseInt);
if (version[0] < 18) {
process.emitWarning(`RFDK officially supports NodeJS 18 or greater, but got ${process.versions.node}`);
}
2 changes: 1 addition & 1 deletion packages/aws-rfdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"constructs": "^10.0.0"
},
"engines": {
"node": ">= 18.0.0"
"node": ">= 14.15.0"
},
"stability": "stable",
"maturity": "stable"
Expand Down
2 changes: 1 addition & 1 deletion tools/pkglint/lib/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ export class MustHaveNodeEnginesDeclaration extends ValidationRule {
public readonly name = 'package-info/engines';

public validate(pkg: PackageJson): void {
expectJSON(this.name, pkg, 'engines.node', '>= 18.0.0');
expectJSON(this.name, pkg, 'engines.node', '>= 14.15.0');
}
}

Expand Down

0 comments on commit 84955d1

Please sign in to comment.