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

[Breaking] Drop support for Node.js v16 #3530

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
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
16 changes: 16 additions & 0 deletions .changeset/five-cougars-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
'@commercetools-frontend/application-shell-connectors': major
'@commercetools-backend/eslint-config-node': major
'@commercetools-frontend/mc-dev-authentication': major
'@commercetools-frontend/eslint-config-mc-app': major
'@commercetools-frontend/babel-preset-mc-app': major
'@commercetools-frontend/application-config': major
'@commercetools-frontend/application-shell': major
'@commercetools-frontend/mc-html-template': major
'@commercetools-frontend/create-mc-app': major
'@commercetools-frontend/mc-scripts': major
'@commercetools-frontend/codemod': major
'@commercetools-local/playground': major
---

Drop support for Node.js v16, which reached EOL. The minimal required version is v18 but we recommend to use v20 or v22 if possible.
21 changes: 21 additions & 0 deletions .changeset/modern-suits-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
'@commercetools-frontend/application-shell-connectors': major
'@commercetools-backend/eslint-config-node': major
'@commercetools-frontend/mc-dev-authentication': major
'@commercetools-frontend/eslint-config-mc-app': major
'@commercetools-website/components-playground': major
'@commercetools-frontend/babel-preset-mc-app': major
'@commercetools-frontend/application-config': major
'@commercetools-frontend/application-shell': major
'@commercetools-frontend/mc-html-template': major
'@commercetools-backend/express': major
'@commercetools-backend/loggers': major
'@commercetools-frontend/create-mc-app': major
'@commercetools-frontend/mc-scripts': major
'@commercetools-local/visual-testing-app': major
'@commercetools-frontend/codemod': major
'@commercetools-frontend/cypress': major
'@commercetools-local/playground': major
---

Migrate to Vite v5. If you have Vite enabled via `ENABLE_EXPERIMENTAL_VITE_BUNDLER` and you are using `vite` as a dependency, make sure you upgrade to `v5` (see [Migration from v4](https://vitejs.dev/guide/migration.html)).
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
22
2 changes: 1 addition & 1 deletion application-templates/starter-typescript/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
2 changes: 1 addition & 1 deletion application-templates/starter/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
2 changes: 1 addition & 1 deletion custom-views-templates/starter-typescript/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
2 changes: 1 addition & 1 deletion custom-views-templates/starter/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
1 change: 1 addition & 0 deletions jest.stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = {
'compiled',
'.cache',
'.spec.js',
'.vercel',
'.visualspec.js',
'.visualroute.js',
'packages/jest-stylelint-runner/',
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"@tsconfig/cypress": "^1.0.1",
"@types/eslint": "^8.44.2",
"@types/jest": "^29.5.4",
"@types/node": "^18.17.14",
"@types/node": "^20.12.12",
"@types/rosie": "^0.0.45",
"@types/testing-library__jest-dom": "^5.14.9",
"@types/uuid": "^9.0.3",
Expand Down Expand Up @@ -186,7 +186,7 @@
}
},
"engines": {
"node": ">=18",
"node": ">=20",
"npm": ">=6",
"pnpm": ">=8"
},
Expand Down
4 changes: 2 additions & 2 deletions packages-backend/eslint-config-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
"eslint": "8.x"
},
"devDependencies": {
"@tsconfig/node16": "^16.1.1",
"@tsconfig/node22": "^22.0.0",
"eslint": "8.57.0"
},
"engines": {
"node": "16.x || >=18.0.0"
"node": "18.x || 20.x || >=22.0.0"
}
}
2 changes: 1 addition & 1 deletion packages-backend/eslint-config-node/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@tsconfig/node16/tsconfig.json"
"extends": "@tsconfig/node22/tsconfig.json"
}
4 changes: 2 additions & 2 deletions packages-backend/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
"@babel/runtime": "^7.22.15",
"@babel/runtime-corejs3": "^7.22.15",
"@types/express": "^4.17.17",
"@types/node": "^18.17.14",
"@types/node": "^20.12.12",
"express": "4.19.2",
"express-jwt": "8.4.1",
"jwks-rsa": "2.1.5"
},
"devDependencies": {
"@tsconfig/node16": "^16.1.1",
"@tsconfig/node22": "^22.0.0",
"@types/jsonwebtoken": "^9.0.2",
"jose": "2.0.7",
"msw": "0.49.3"
Expand Down
2 changes: 1 addition & 1 deletion packages-backend/express/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@tsconfig/node16/tsconfig.json"
"extends": "@tsconfig/node22/tsconfig.json"
}
2 changes: 1 addition & 1 deletion packages-backend/loggers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"winston": "3.13.0"
},
"devDependencies": {
"@tsconfig/node16": "^16.1.1",
"@tsconfig/node22": "^22.0.0",
"@types/express": "^4.17.17",
"express": "4.19.2"
}
Expand Down
2 changes: 1 addition & 1 deletion packages-backend/loggers/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@tsconfig/node16/tsconfig.json"
"extends": "@tsconfig/node22/tsconfig.json"
}
2 changes: 1 addition & 1 deletion packages/application-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@
"shelljs": "0.8.5"
},
"engines": {
"node": "16.x || >=18.0.0"
"node": "18.x || 20.x || >=22.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/application-shell-connectors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@
"react": "17.x"
},
"engines": {
"node": "16.x || >=18.0.0"
"node": "18.x || 20.x || >=22.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/application-shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,6 @@
"redux": "4.x"
},
"engines": {
"node": "16.x || >=18.0.0"
"node": "18.x || 20.x || >=22.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/babel-preset-mc-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
"core-js": "^3.32.2"
},
"engines": {
"node": "16.x || >=18.0.0"
"node": "18.x || 20.x || >=22.0.0"
}
}
4 changes: 2 additions & 2 deletions packages/codemod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
"devDependencies": {
"@commercetools-frontend/application-components": "workspace:*",
"@emotion/react": "^11.11.4",
"@tsconfig/node16": "^16.1.1",
"@tsconfig/node22": "^22.0.0",
"@types/glob": "8.1.0",
"@types/jscodeshift": "0.11.11",
"rimraf": "5.0.5",
"typescript": "5.0.4"
},
"engines": {
"node": "16.x || >=18.0.0"
"node": "18.x || 20.x || >=22.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/codemod/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node16/tsconfig.json",
"extends": "@tsconfig/node22/tsconfig.json",
"compilerOptions": {
"resolveJsonModule": true,
"outDir": "./build"
Expand Down
4 changes: 2 additions & 2 deletions packages/create-mc-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"semver": "7.6.1"
},
"devDependencies": {
"@tsconfig/node16": "^16.1.1"
"@tsconfig/node22": "^22.0.0"
},
"engines": {
"node": "16.x || >=18.0.0"
"node": "18.x || 20.x || >=22.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/create-mc-app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node16/tsconfig.json",
"extends": "@tsconfig/node22/tsconfig.json",
"compilerOptions": {
"resolveJsonModule": true
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"uuid": "9.0.1"
},
"devDependencies": {
"@tsconfig/node16": "^16.1.1",
"@tsconfig/node22": "^22.0.0",
"cypress": "12.17.4"
},
"peerDependencies": {
Expand Down
5 changes: 4 additions & 1 deletion packages/cypress/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"extends": "@tsconfig/node16/tsconfig.json",
"extends": "@tsconfig/node22/tsconfig.json",
"compilerOptions": {
"lib": ["ESNext", "DOM"]
},
"include": ["./src"]
}
2 changes: 1 addition & 1 deletion packages/eslint-config-mc-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
"eslint": "8.57.0"
},
"engines": {
"node": "16.x || >=18.0.0"
"node": "18.x || 20.x || >=22.0.0"
}
}
4 changes: 2 additions & 2 deletions packages/mc-dev-authentication/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
},
"devDependencies": {
"@commercetools-frontend/application-config": "workspace:*",
"@tsconfig/node16": "^16.1.1",
"@tsconfig/node22": "^22.0.0",
"@types/connect": "^3.4.36",
"connect": "^3.7.0"
},
"engines": {
"node": "16.x || >=18.0.0"
"node": "18.x || 20.x || >=22.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/mc-dev-authentication/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@tsconfig/node16/tsconfig.json"
"extends": "@tsconfig/node22/tsconfig.json"
}
4 changes: 2 additions & 2 deletions packages/mc-html-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
"uglifycss": "0.0.29"
},
"devDependencies": {
"@tsconfig/node16": "^16.1.1",
"@tsconfig/node22": "^22.0.0",
"@types/serialize-javascript": "^5.0.2",
"html-webpack-plugin": "5.6.0",
"webpack": "5.91.0"
},
"engines": {
"node": "16.x || >=18.0.0"
"node": "18.x || 20.x || >=22.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/mc-html-template/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@tsconfig/node16/tsconfig.json"
"extends": "@tsconfig/node22/tsconfig.json"
}
6 changes: 3 additions & 3 deletions packages/mc-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@
"terser-webpack-plugin": "5.3.10",
"thread-loader": "3.0.4",
"url": "^0.11.0",
"vite": "~4.5.3",
"vite": "~5.2.11",
"webpack": "5.91.0",
"webpack-bundle-analyzer": "4.10.2",
"webpack-dev-server": "4.15.2",
"webpackbar": "5.0.2"
},
"devDependencies": {
"@commercetools-test-data/custom-view": "^7.0.0",
"@tsconfig/node16": "^16.1.1",
"@tsconfig/node22": "^22.0.0",
"@types/fs-extra": "^11.0.1",
"@types/lodash": "^4.14.198",
"@types/mock-fs": "^4.13.1",
Expand All @@ -128,6 +128,6 @@
"rimraf": "5.0.5"
},
"engines": {
"node": "16.x || >=18.0.0"
"node": "18.x || 20.x || >=22.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/mc-scripts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node16/tsconfig.json",
"extends": "@tsconfig/node22/tsconfig.json",
"compilerOptions": {
"resolveJsonModule": true
}
Expand Down
4 changes: 2 additions & 2 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"@commercetools-test-data/commons": "7.4.0",
"@formatjs/cli": "6.2.10",
"@types/jest": "^29.5.4",
"@types/node": "^16.18.48",
"@types/node": "^20.12.12",
"@types/testing-library__jest-dom": "^5.14.9",
"@vercel/node": "^2.15.10",
"dotenv-flow": "^4.0.0",
Expand All @@ -78,7 +78,7 @@
},
"packageManager": "pnpm@8.15.8",
"engines": {
"node": ">=18",
"node": ">=20",
"pnpm": ">=8"
}
}
Loading
Loading