Skip to content

Commit a955ef5

Browse files
committed
chore: require Node.js 24 or higher
BREAKING CHANGE: Compas now requires Node.js 24 or higher. This allows us to deprecate various features which are now available at runtime.
1 parent fc3c393 commit a955ef5

10 files changed

Lines changed: 17 additions & 17 deletions

File tree

‎.github/workflows/checks.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
timeout-minutes: 15
1212
strategy:
1313
matrix:
14-
node: [22]
14+
node: [24]
1515
runs-on: ubuntu-latest
1616
env:
1717
CI: true
@@ -41,7 +41,7 @@ jobs:
4141
timeout-minutes: 15
4242
strategy:
4343
matrix:
44-
node: [22]
44+
node: [24]
4545
runs-on: ubuntu-latest
4646
env:
4747
CI: true
@@ -71,8 +71,8 @@ jobs:
7171
timeout-minutes: 15
7272
strategy:
7373
matrix:
74-
node: [20, 22, 24]
75-
postgresVersion: [12, 14, 16]
74+
node: [24, 25]
75+
postgresVersion: [16, 17]
7676
runs-on: ubuntu-latest
7777
env:
7878
CI: true
@@ -116,7 +116,7 @@ jobs:
116116
timeout-minutes: 15
117117
strategy:
118118
matrix:
119-
node: [22]
119+
node: [24]
120120
postgresVersion: [14]
121121
runs-on: ubuntu-latest
122122
env:

‎.github/workflows/create-release.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v5
1616

17-
- name: Node.js 20
17+
- name: Node.js 24
1818
uses: actions/setup-node@v5
1919
with:
20-
node-version: 20
20+
node-version: 24
2121
cache: "npm"
2222
cache-dependency-path: "**/package.json"
2323

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ using Compas.
3636

3737
## Requirements
3838

39-
- Node.js >= 16
40-
- Yarn 1.x.x / NPM
39+
- Node.js >= 24
40+
- NPM
4141

4242
## Why
4343

‎docs/generators/introduction.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ routers and database clients.
66

77
## Installation
88

9-
Compas requires at least Node.js 18 or higher.
9+
Compas requires at least Node.js 24 or higher.
1010

1111
```shell
1212
npm install --save-dev --save-exact @compas/code-gen # npm
@@ -41,7 +41,7 @@ paths:
4141
Compas can generate a Typescript API client with the following signature:
4242
4343
```ts
44-
declare function apiUserList(axiosInstance: AxiosInstance): Promise<string[]>;
44+
declare function apiUserList(axiosInstance: AxiosInstance): Promise<Array<string>>;
4545
```
4646
4747
Or a typed Koa compatible router which can be used like:

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"docs:serve": "vitepress serve docs"
1111
},
1212
"engines": {
13-
"node": ">=18"
13+
"node": ">=24"
1414
},
1515
"devDependencies": {
1616
"@lightbase/eslint-config": "3.4.0",

‎packages/cli/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@
4343
"access": "public"
4444
},
4545
"engines": {
46-
"node": ">=18"
46+
"node": ">=24"
4747
}
4848
}

‎packages/code-gen/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
"access": "public"
3737
},
3838
"engines": {
39-
"node": ">=18"
39+
"node": ">=24"
4040
}
4141
}

‎packages/server/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@
4242
"access": "public"
4343
},
4444
"engines": {
45-
"node": ">=18"
45+
"node": ">=24"
4646
}
4747
}

‎packages/stdlib/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@
4242
"access": "public"
4343
},
4444
"engines": {
45-
"node": ">=18"
45+
"node": ">=24"
4646
}
4747
}

‎packages/store/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@
4646
"access": "public"
4747
},
4848
"engines": {
49-
"node": ">=18"
49+
"node": ">=24"
5050
}
5151
}

0 commit comments

Comments
 (0)