Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump minimum node version to 16.11 #1124

Merged
merged 7 commits into from
Mar 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .changeset/empty-donuts-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'skuba': major
---

deps: Require Node.js 16.11+

Node.js 14 will reach end of life by April 2023.

Consider upgrading the Node.js version for your project across:

- `.nvmrc`
- `package.json#/engines/node`
- CI/CD configuration (`.buildkite/pipeline.yml`, `Dockerfile`, etc.)
5 changes: 5 additions & 0 deletions .changeset/fluffy-eyes-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'skuba': patch
---

template/\*-package: Require Node.js 16.11+
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[![GitHub Release](https://github.com/seek-oss/skuba/workflows/Release/badge.svg?branch=master)](https://github.com/seek-oss/skuba/actions?query=workflow%3ARelease)
[![GitHub Validate](https://github.com/seek-oss/skuba/workflows/Validate/badge.svg?branch=master)](https://github.com/seek-oss/skuba/actions?query=workflow%3AValidate)
[![Node.js version](https://img.shields.io/badge/node-%3E%3D%2014.18-brightgreen)](https://nodejs.org/en/)
[![Node.js version](https://img.shields.io/badge/node-%3E%3D%2016.11-brightgreen)](https://nodejs.org/en/)
[![npm package](https://img.shields.io/npm/v/skuba)](https://www.npmjs.com/package/skuba)

---
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
]
},
"resolutions": {
"**/@types/node": ">=14.18"
"**/@types/node": ">=16.11"
},
"dependencies": {
"@esbuild-plugins/tsconfig-paths": "^0.1.0",
Expand All @@ -75,7 +75,7 @@
"@octokit/rest": "^19.0.0",
"@octokit/types": "^9.0.0",
"@types/jest": "^29.0.0",
"@types/node": ">=14.18",
"@types/node": ">=16.11",
"chalk": "^4.1.0",
"concurrently": "^7.0.0",
"dotenv": "^16.0.0",
Expand Down Expand Up @@ -155,7 +155,7 @@
}
},
"engines": {
"node": ">=14.18"
"node": ">=16.11"
},
"skuba": {
"build": "esbuild",
Expand Down
35 changes: 19 additions & 16 deletions template/oss-npm-package/_package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
{
"dependencies": {},
"name": "<%- moduleName %>",
"version": "0.0.0-semantically-released",
"description": "<%- description %>",
"devDependencies": {
"@types/node": "^16.18.3",
"commitizen": "^4.2.4",
"skuba": "*"
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/<%- orgName %>/<%- repoName %>.git"
},
"license": "MIT",
"sideEffects": false,
"main": "./lib-commonjs/index.js",
"module": "./lib-es2015/index.js",
"types": "./lib-types/index.d.ts",
"files": [
"lib*/**/*.d.ts",
"lib*/**/*.js",
"lib*/**/*.js.map",
"lib*/**/*.json"
],
"license": "MIT",
"main": "./lib-commonjs/index.js",
"module": "./lib-es2015/index.js",
"name": "<%- moduleName %>",
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/<%- orgName %>/<%- repoName %>.git"
},
"scripts": {
"build": "skuba build-package",
"commit": "cz",
Expand All @@ -35,7 +32,13 @@
"path": "cz-conventional-changelog"
}
},
"sideEffects": false,
"types": "./lib-types/index.d.ts",
"version": "0.0.0-semantically-released"
"dependencies": {},
"devDependencies": {
"@types/node": "^16.18.3",
"commitizen": "^4.2.4",
"skuba": "*"
},
"engines": {
"node": ">=16.11"
}
}
4 changes: 2 additions & 2 deletions template/oss-npm-package/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compilerOptions": {
"lib": ["ES2020"],
"lib": ["ES2022"],
"outDir": "lib",
"removeComments": false,
"target": "ES2020"
"target": "ES2022"
},
"exclude": ["lib*/**/*"],
"extends": "skuba/config/tsconfig.json"
Expand Down
35 changes: 19 additions & 16 deletions template/private-npm-package/_package.json
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorted the package json files

Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
{
"dependencies": {},
"name": "<%- moduleName %>",
"version": "0.0.0-semantically-released",
"description": "<%- description %>",
"devDependencies": {
"@types/node": "^16.18.3",
"commitizen": "^4.2.4",
"skuba": "*"
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/<%- orgName %>/<%- repoName %>.git"
},
"license": "UNLICENSED",
"sideEffects": false,
"main": "./lib-commonjs/index.js",
"module": "./lib-es2015/index.js",
"types": "./lib-types/index.d.ts",
"files": [
"lib*/**/*.d.ts",
"lib*/**/*.js",
"lib*/**/*.js.map",
"lib*/**/*.json"
],
"license": "UNLICENSED",
"main": "./lib-commonjs/index.js",
"module": "./lib-es2015/index.js",
"name": "<%- moduleName %>",
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/<%- orgName %>/<%- repoName %>.git"
},
"scripts": {
"build": "skuba build-package",
"commit": "cz",
Expand All @@ -35,7 +32,13 @@
"path": "cz-conventional-changelog"
}
},
"sideEffects": false,
"types": "./lib-types/index.d.ts",
"version": "0.0.0-semantically-released"
"dependencies": {},
"devDependencies": {
"@types/node": "^16.18.3",
"commitizen": "^4.2.4",
"skuba": "*"
},
"engines": {
"node": ">=16.11"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only change is this

}
}
4 changes: 2 additions & 2 deletions template/private-npm-package/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compilerOptions": {
"lib": ["ES2020"],
"lib": ["ES2022"],
"outDir": "lib",
"removeComments": false,
"target": "ES2020"
"target": "ES2022"
},
"exclude": ["lib*/**/*"],
"extends": "skuba/config/tsconfig.json"
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"compilerOptions": {
"baseUrl": "src",
"declaration": true,
"lib": ["ES2020"],
"lib": ["ES2022"],
"outDir": "lib",
"removeComments": false,
"target": "ES2020"
"target": "ES2022"
},
"exclude": ["integration/**/*", "lib*/**/*", "template/**/*"],
"extends": "./config/tsconfig.json"
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1885,10 +1885,10 @@
"@types/node" "*"
form-data "^3.0.0"

"@types/node@*", "@types/node@>=14.18", "@types/node@^12.7.1", "@types/node@^18.0.0":
version "18.13.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.13.0.tgz#0400d1e6ce87e9d3032c19eb6c58205b0d3f7850"
integrity sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==
"@types/node@*", "@types/node@>=16.11", "@types/node@^12.7.1", "@types/node@^18.0.0":
version "18.15.3"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.15.3.tgz#f0b991c32cfc6a4e7f3399d6cb4b8cf9a0315014"
integrity sha512-p6ua9zBxz5otCmbpb5D3U4B5Nanw6Pk3PPyX05xnxbB/fRv71N7CPmORg7uAD5P70T0xmx1pzAx/FUfa5X+3cw==

"@types/normalize-package-data@^2.4.0":
version "2.4.1"
Expand Down