Skip to content

Commit

Permalink
fix: node 10.x is end-of-life so default to 14.x (projen#1052)
Browse files Browse the repository at this point in the history
Fixes projen#1034 
Fixes projen#1050

BREAKING CHANGE: The default minimum Node.js version for node projects is now 14.x since Node 10.x is now end-of-life. Therefore we also change the default build container for JSII projects is now jsii/superchain:node14.

Co-authored-by: Elad Ben-Israel <[email protected]>
  • Loading branch information
dontirun and Elad Ben-Israel authored Sep 12, 2021
1 parent 402cf6b commit 581ee96
Show file tree
Hide file tree
Showing 18 changed files with 63 additions and 63 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions .github/workflows/release.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .github/workflows/upgrade.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const project = new JsiiProject({

projenDevDependency: false, // because I am projen
releaseToNpm: true,
minNodeVersion: '10.17.0',
minNodeVersion: '14.17.0',
codeCov: true,
defaultReleaseBranch: 'main',
gitpod: true,
Expand Down
4 changes: 2 additions & 2 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 19 additions & 19 deletions src/__tests__/__snapshots__/integ.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/__tests__/__snapshots__/jsii.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/__tests__/dev-env.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ describe('dev environment docker options', () => {
});

// WHEN
project.gitpod?.addDockerImage(DevEnvironmentDockerImage.fromImage('jsii/superchain'));
project.gitpod?.addDockerImage(DevEnvironmentDockerImage.fromImage('jsii/superchain:node14'));
project.devContainer?.addDockerImage(DevEnvironmentDockerImage.fromImage('jsii/uberchain'));


// THEN
const outdir = synthSnapshot(project);
const gitpodSnapshot = outdir[GITPOD_FILE];
expect(gitpodSnapshot).toContain('image: jsii/superchain');
expect(gitpodSnapshot).toContain('image: jsii/superchain:node14');

const devContainerSnapshot = outdir[DEVCONTAINER_FILE];
expect(devContainerSnapshot).toStrictEqual({
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/integration/cdk8s/cdk8s.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
exports.options = {
minNodeVersion: '10.17.0',
minNodeVersion: '14.17.0',
repository: 'https://github.com/awslabs/cdk8s.git',
authorName: 'Amazon Web Services',
authorUrl: 'https://aws.amazon.com',
Expand Down
Loading

0 comments on commit 581ee96

Please sign in to comment.