Skip to content

Commit

Permalink
build!: bump Node.js to 22.12.0
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Node.js 22.12.0 or above is required.
  • Loading branch information
Jiralite committed Jan 24, 2025
1 parent 2cbf418 commit 40e98c1
Show file tree
Hide file tree
Showing 47 changed files with 376 additions and 559 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Node.js v20
- name: Install Node.js v22
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22

- name: Install dependencies
uses: ./packages/actions/src/pnpmCache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deprecate-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Node.js v20
- name: Install Node.js v22
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22

- name: Install dependencies
uses: ./packages/actions/src/pnpmCache
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
with:
ref: ${{ inputs.ref || '' }}

- name: Install Node.js v20
- name: Install Node.js v22
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22

- name: Install dependencies
uses: ./packages/actions/src/pnpmCache
Expand Down Expand Up @@ -215,10 +215,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Node.js v20
- name: Install Node.js v22
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22

- name: Install dependencies
uses: ./packages/actions/src/pnpmCache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-dev-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Node.js v20
- name: Install Node.js v22
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22

- name: Install dependencies
uses: ./packages/actions/src/pnpmCache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ jobs:
with:
fetch-depth: 0

- name: Install Node.js v20
- name: Install Node.js v22
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
registry-url: https://registry.npmjs.org/

- name: Check the current development version
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Node.js v20
- name: Install Node.js v22
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22

- name: Install dependencies
uses: ./packages/actions/src/pnpmCache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Node.js v20
- name: Install Node.js v22
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
registry-url: https://registry.npmjs.org/

- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
with:
fetch-depth: 0

- name: Install Node.js v20
- name: Install Node.js v22
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22

- name: Install dependencies
uses: ./packages/actions/src/pnpmCache
Expand Down
4 changes: 2 additions & 2 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@tailwindcss/typography": "^0.5.15",
"@testing-library/react": "^15.0.7",
"@testing-library/user-event": "^14.5.2",
"@types/node": "^20.17.10",
"@types/node": "^22.10.10",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@vitejs/plugin-react": "^4.3.4",
Expand All @@ -101,6 +101,6 @@
"vitest": "^2.1.8"
},
"engines": {
"node": ">=20"
"node": ">=22.12.0"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
}
},
"engines": {
"node": ">=20"
"node": ">=22.12.0"
},
"packageManager": "pnpm@9.15.2"
"packageManager": "pnpm@9.15.4"
}
4 changes: 2 additions & 2 deletions packages/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"undici": "6.21.0"
},
"devDependencies": {
"@types/node": "^20.17.10",
"@types/node": "^22.10.10",
"@vitest/coverage-v8": "^2.1.8",
"cross-env": "^7.0.3",
"eslint": "^8.57.1",
Expand All @@ -66,6 +66,6 @@
"vitest": "^2.1.8"
},
"engines": {
"node": ">=20"
"node": ">=22.12.0"
}
}
2 changes: 1 addition & 1 deletion packages/api-extractor-model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/node": "^20.17.10",
"@types/node": "^22.10.10",
"cross-env": "^7.0.3",
"eslint": "^8.57.1",
"eslint-config-neon": "^0.1.62",
Expand Down
4 changes: 2 additions & 2 deletions packages/api-extractor-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@microsoft/tsdoc": "0.14.2"
},
"devDependencies": {
"@types/node": "^20.17.10",
"@types/node": "^22.10.10",
"cross-env": "^7.0.3",
"eslint": "^8.57.1",
"eslint-config-neon": "^0.1.62",
Expand All @@ -61,6 +61,6 @@
"typescript": "~5.5.4"
},
"engines": {
"node": ">=20"
"node": ">=22.12.0"
}
}
4 changes: 2 additions & 2 deletions packages/api-extractor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@microsoft/tsdoc": "0.14.2",
"@microsoft/tsdoc-config": "0.16.2",
"@rushstack/node-core-library": "4.1.0",
"@rushstack/rig-package": "0.5.1",
"@rushstack/rig-package": "0.5.3",
"@rushstack/ts-command-line": "4.17.1",
"colors": "~1.4.0",
"lodash": "~4.17.21",
Expand All @@ -66,7 +66,7 @@
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/lodash": "^4.17.13",
"@types/node": "^20.17.10",
"@types/node": "^22.10.10",
"@types/resolve": "^1.20.6",
"@types/semver": "^7.5.8",
"cpy-cli": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/brokers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

## Installation

**Node.js 20 or newer is required.**
**Node.js 22.12.0 or newer is required.**

```sh
npm install @discordjs/brokers
Expand Down
4 changes: 2 additions & 2 deletions packages/brokers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@discordjs/api-extractor": "workspace:^",
"@discordjs/scripts": "workspace:^",
"@favware/cliff-jumper": "^4.1.0",
"@types/node": "^20.17.10",
"@types/node": "^22.10.10",
"@vitest/coverage-v8": "^2.1.8",
"cross-env": "^7.0.3",
"esbuild-plugin-version-injector": "^1.2.1",
Expand All @@ -89,7 +89,7 @@
"vitest": "^2.1.8"
},
"engines": {
"node": ">=20"
"node": ">=22.12.0"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion packages/builders/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

## Installation

**Node.js 20 or newer is required.**
**Node.js 22.12.0 or newer is required.**

```sh
npm install @discordjs/builders
Expand Down
4 changes: 2 additions & 2 deletions packages/builders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"@discordjs/api-extractor": "workspace:^",
"@discordjs/scripts": "workspace:^",
"@favware/cliff-jumper": "^4.1.0",
"@types/node": "^20.17.10",
"@types/node": "^22.10.10",
"@vitest/coverage-v8": "^2.1.8",
"cross-env": "^7.0.3",
"esbuild-plugin-version-injector": "^1.2.1",
Expand All @@ -90,7 +90,7 @@
"vitest": "^2.1.8"
},
"engines": {
"node": ">=20"
"node": ">=22.12.0"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion packages/collection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

## Installation

**Node.js 20 or newer is required.**
**Node.js 22.12.0 or newer is required.**

```sh
npm install @discordjs/collection
Expand Down
4 changes: 2 additions & 2 deletions packages/collection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@discordjs/api-extractor": "workspace:^",
"@discordjs/scripts": "workspace:^",
"@favware/cliff-jumper": "^4.1.0",
"@types/node": "^20.17.10",
"@types/node": "^22.10.10",
"@vitest/coverage-v8": "^2.1.8",
"cross-env": "^7.0.3",
"esbuild-plugin-version-injector": "^1.2.1",
Expand All @@ -78,7 +78,7 @@
"vitest": "^2.1.8"
},
"engines": {
"node": ">=20"
"node": ">=22.12.0"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

## Installation

**Node.js 20 or newer is required.**
**Node.js 22.12.0 or newer is required.**

```sh
npm install @discordjs/core
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"@discordjs/api-extractor": "workspace:^",
"@discordjs/scripts": "workspace:^",
"@favware/cliff-jumper": "^4.1.0",
"@types/node": "^20.17.10",
"@types/node": "^22.10.10",
"@vitest/coverage-v8": "^2.1.8",
"cross-env": "^7.0.3",
"esbuild-plugin-version-injector": "^1.2.1",
Expand All @@ -90,7 +90,7 @@
"vitest": "^2.1.8"
},
"engines": {
"node": ">=20"
"node": ">=22.12.0"
},
"publishConfig": {
"access": "public",
Expand Down
4 changes: 2 additions & 2 deletions packages/create-discord-bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"devDependencies": {
"@discordjs/api-extractor": "workspace:^",
"@favware/cliff-jumper": "^4.1.0",
"@types/node": "^20.17.10",
"@types/node": "^22.10.10",
"@types/prompts": "^2.4.9",
"@types/validate-npm-package-name": "^4.0.2",
"@vitest/coverage-v8": "^2.1.8",
Expand All @@ -73,7 +73,7 @@
"vitest": "^2.1.8"
},
"engines": {
"node": ">=20"
"node": ">=22.12.0"
},
"publishConfig": {
"access": "public",
Expand Down
3 changes: 3 additions & 0 deletions packages/create-discord-bot/template/JavaScript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@
"eslint-formatter-pretty": "^6.0.1",
"prettier": "^3.4.2",
"zod": "^3.24.1"
},
"engines": {
"node": ">=22.12.0"
}
}
5 changes: 4 additions & 1 deletion packages/create-discord-bot/template/TypeScript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@
},
"devDependencies": {
"@sapphire/ts-config": "^5.0.1",
"@types/node": "^20.17.10",
"@types/node": "^22.10.10",
"eslint": "^8.57.1",
"eslint-config-neon": "^0.1.62",
"eslint-formatter-pretty": "^6.0.1",
"prettier": "^3.4.2",
"typescript": "~5.5.4",
"zod": "^3.24.1"
},
"engines": {
"node": ">=22.12.0"
}
}
2 changes: 1 addition & 1 deletion packages/discord.js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ discord.js is a powerful [Node.js](https://nodejs.org) module that allows you to

## Installation

**Node.js 20 or newer is required.**
**Node.js 22.12.0 or newer is required.**

```sh
npm install discord.js
Expand Down
2 changes: 1 addition & 1 deletion packages/discord.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"@discordjs/docgen": "workspace:^",
"@discordjs/scripts": "workspace:^",
"@favware/cliff-jumper": "^4.1.0",
"@types/node": "^20.17.10",
"@types/node": "^22.10.10",
"@typescript-eslint/eslint-plugin": "^8.19.0",
"@typescript-eslint/parser": "^8.19.0",
"cross-env": "^7.0.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/docgen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"devDependencies": {
"@favware/cliff-jumper": "^4.1.0",
"@types/jsdoc-to-markdown": "^7.0.6",
"@types/node": "^20.17.10",
"@types/node": "^22.10.10",
"cross-env": "^7.0.3",
"eslint": "^8.57.1",
"eslint-config-neon": "^0.1.62",
Expand All @@ -79,7 +79,7 @@
"typescript": "~5.5.4"
},
"engines": {
"node": ">=20"
"node": ">=22.12.0"
},
"publishConfig": {
"access": "public",
Expand Down
Loading

0 comments on commit 40e98c1

Please sign in to comment.