Skip to content

Commit

Permalink
feat: upgrade nodeJS support to v22
Browse files Browse the repository at this point in the history
BREAKING CHANGE: NodeJS v22 is now required
  • Loading branch information
SimeonC committed Nov 28, 2024
1 parent c596be7 commit c8e45c5
Show file tree
Hide file tree
Showing 14 changed files with 150 additions and 99 deletions.
5 changes: 0 additions & 5 deletions .github/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ runs:
- name: Set shas
uses: nrwl/nx-set-shas@v3

- name: Unset header
shell: bash
# checkout@v2 adds a header that makes branch protection report errors ):
run: git config --local --unset http.https://github.com/.extraheader

- name: Set git author config
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
token: ${{ secrets.RELEASE_BOT_TOKEN }}

- uses: ./.github/setup

Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
registry=https://registry.npmjs.org/
legacy-peer-deps=true
save-exact=true
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.8.1
v22.11.0
205 changes: 130 additions & 75 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
},
"workspaces": ["packages/*"],
"devDependencies": {
"@auto-it/all-contributors": "11.1.1",
"@auto-it/first-time-contributor": "11.1.1",
"@auto-it/npm": "11.1.1",
"@auto-it/released": "11.1.1",
"@auto-it/slack": "11.1.1",
"@auto-it/all-contributors": "11.3.0",
"@auto-it/first-time-contributor": "11.3.0",
"@auto-it/npm": "11.3.0",
"@auto-it/released": "11.3.0",
"@auto-it/slack": "11.3.0",
"@commitlint/cli": "17.7.2",
"@commitlint/config-lerna-scopes": "17.7.0",
"@emotion/babel-plugin": "^11.11.0",
Expand All @@ -55,7 +55,7 @@
"@vitest/coverage-v8": "1.6.0",
"@vitest/ui": "1.6.0",
"auditjs": "4.0.41",
"auto": "11.1.1",
"auto": "11.3.0",
"eslint": "8.57.0",
"eslint-plugin-eslint-plugin": "5.1.1",
"file-loader": "^6.2.0",
Expand All @@ -67,7 +67,7 @@
"lint-staged": "^14.0.1",
"lodash": "^4.17.21",
"nx": "19.3.0",
"prettier": "3.0.3",
"prettier": "3.4.1",
"storybook": "^6.5.16",
"type-fest": "4.4.0",
"typescript": "5.4.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/audit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@types/treeify": "1.0.0"
},
"engines": {
"node": ">= 16.16.0"
"node": ">= 22.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/audit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import CVSS, {
type DetailedVectorObject,
type VectorMetric,
} from '@turingpointde/cvss.js';
import definitions from '@turingpointde/cvss.js/lib/cvss_3_0.json' assert { type: 'json' };
import definitions from '@turingpointde/cvss.js/lib/cvss_3_0.json' with { type: 'json' };
import chalk from 'chalk';
import { execa } from 'execa';
import fs from 'fs-extra';
Expand Down
2 changes: 1 addition & 1 deletion packages/commitlint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@commitlint/cli": "^17"
},
"engines": {
"node": ">= 16.16.0"
"node": ">= 22.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"vite-tsconfig-paths": "4.3.2"
},
"engines": {
"node": ">= 16.16.0"
"node": ">= 22.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@typescript-eslint/utils": "7.13.1",
"eslint-doc-generator": "1.5.3",
"fs-extra": "11.1.1",
"prettier": "3.0.3",
"prettier": "3.4.1",
"type-fest": "4.4.0",
"typescript": "5.1.6",
"vite": "5.3.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/nx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"glob": "^10.3.3",
"lodash": "4.17.21",
"minimist": "^1.2.8",
"prettier": "^3.0.0",
"prettier": "^3.4.1",
"prettier-package-json": "2.8.0",
"publint": "0.2.0",
"semver": "7.5.4",
Expand All @@ -53,7 +53,7 @@
"typescript": "5.1.6"
},
"engines": {
"node": ">= 16.16.0"
"node": ">= 22.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"prettier": "^3"
},
"engines": {
"node": ">= 16.16.0"
"node": ">= 22.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/vite-import-massager-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ export default class ImportMassagingPlugin implements Plugin {
if (!isNodeModules) {
return /\.[cm]?[tj]sx?$/.test(id) && this.includesImport(code);
}
const isTransformPackage = this.configs.some(
(c) => c.transformPackages?.some((pkg) => id.includes(pkg)),
const isTransformPackage = this.configs.some((c) =>
c.transformPackages?.some((pkg) => id.includes(pkg)),
);
return isTransformPackage && this.includesImport(code);
}
Expand Down

0 comments on commit c8e45c5

Please sign in to comment.