Skip to content

Commit c5ad32f

Browse files
committed
chore!: drop support for Node.js 18
Node.js 18 goes end-of-life in April. We can release major versions ahead of then - people can switch early if their apps are already running on Node.js 20+
1 parent 8628248 commit c5ad32f

File tree

19 files changed

+57
-57
lines changed

19 files changed

+57
-57
lines changed

.circleci/config.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ references:
1414
- image: cimg/node:<< parameters.node-version >>
1515
parameters:
1616
node-version:
17-
default: "20.12" # We default to the highest active LTS
17+
default: "22.13" # We default to the highest active LTS
1818
type: string
1919

2020
workspace_root: &workspace_root ~/project
@@ -151,29 +151,29 @@ workflows:
151151
name: build-v<< matrix.node-version >>
152152
matrix:
153153
parameters:
154-
node-version: [ "22.0", "20.12", "18.20" ]
154+
node-version: [ "22.13", "20.18" ]
155155
- test:
156156
requires:
157157
- build-v<< matrix.node-version >>
158158
name: test-v<< matrix.node-version >>
159159
matrix:
160160
parameters:
161-
node-version: [ "22.0", "20.12", "18.20" ]
161+
node-version: [ "22.13", "20.18" ]
162162
- lint:
163163
requires:
164164
- build-v<< matrix.node-version >>
165165
name: lint-v<< matrix.node-version >>
166166
matrix:
167167
parameters:
168-
node-version: [ "22.0", "20.12", "18.20" ]
168+
node-version: [ "22.13", "20.18" ]
169169
- release-please:
170170
filters:
171171
<<: *filters_only_main
172172
requires:
173173
# We release on the highest active LTS version of
174174
# Node.js that we support
175-
- test-v20.12
176-
- lint-v20.12
175+
- test-v22.13
176+
- lint-v22.13
177177

178178
build-test-publish:
179179
jobs:
@@ -183,7 +183,7 @@ workflows:
183183
name: build-v<< matrix.node-version >>
184184
matrix:
185185
parameters:
186-
node-version: [ "22.0", "20.12", "18.20" ]
186+
node-version: [ "22.13", "20.18" ]
187187
- test:
188188
filters:
189189
<<: *filters_release_build
@@ -192,7 +192,7 @@ workflows:
192192
name: test-v<< matrix.node-version >>
193193
matrix:
194194
parameters:
195-
node-version: [ "22.0", "20.12", "18.20" ]
195+
node-version: [ "22.13", "20.18" ]
196196
- lint:
197197
filters:
198198
<<: *filters_release_build
@@ -201,16 +201,16 @@ workflows:
201201
name: lint-v<< matrix.node-version >>
202202
matrix:
203203
parameters:
204-
node-version: [ "22.0", "20.12", "18.20" ]
204+
node-version: [ "22.13", "20.18" ]
205205
- publish:
206206
context: npm-publish-token
207207
filters:
208208
<<: *filters_release_build
209209
requires:
210210
# We release on the highest active LTS version of
211211
# Node.js that we support
212-
- lint-v20.12
213-
- test-v20.12
212+
- lint-v22.13
213+
- test-v22.13
214214

215215
build-test-prepublish:
216216
jobs:
@@ -220,7 +220,7 @@ workflows:
220220
name: build-v<< matrix.node-version >>
221221
matrix:
222222
parameters:
223-
node-version: [ "22.0", "20.12", "18.20" ]
223+
node-version: [ "22.13", "20.18" ]
224224
- test:
225225
filters:
226226
<<: *filters_prerelease_build
@@ -229,7 +229,7 @@ workflows:
229229
name: test-v<< matrix.node-version >>
230230
matrix:
231231
parameters:
232-
node-version: [ "22.0", "20.12", "18.20" ]
232+
node-version: [ "22.13", "20.18" ]
233233
- lint:
234234
filters:
235235
<<: *filters_prerelease_build
@@ -238,16 +238,16 @@ workflows:
238238
name: lint-v<< matrix.node-version >>
239239
matrix:
240240
parameters:
241-
node-version: [ "22.0", "20.12", "18.20" ]
241+
node-version: [ "22.13", "20.18" ]
242242
- prepublish:
243243
context: npm-publish-token
244244
filters:
245245
<<: *filters_prerelease_build
246246
requires:
247247
# We release on the highest active LTS version of
248248
# Node.js that we support
249-
- lint-v20.12
250-
- test-v20.12
249+
- lint-v22.13
250+
- test-v22.13
251251

252252
nightly:
253253
triggers:
@@ -261,12 +261,12 @@ workflows:
261261
name: build-v<< matrix.node-version >>
262262
matrix:
263263
parameters:
264-
node-version: [ "22.0", "20.12", "18.20" ]
264+
node-version: [ "22.13", "20.18" ]
265265
- test:
266266
requires:
267267
- build-v<< matrix.node-version >>
268268
context: next-nightly-build
269269
name: test-v<< matrix.node-version >>
270270
matrix:
271271
parameters:
272-
node-version: [ "22.0", "20.12", "18.20" ]
272+
node-version: [ "22.13", "20.18" ]

package-lock.json

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@
4646
"typescript": "^5.7.3"
4747
},
4848
"engines": {
49-
"node": "18.x || 20.x || 22.x"
49+
"node": "20.x || 22.x"
5050
},
5151
"volta": {
52-
"node": "20.10.0"
52+
"node": "22.13.0"
5353
},
5454
"lint-staged": {
5555
"**/*.js": [

packages/app-info/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"bugs": "https://github.com/Financial-Times/dotcom-reliability-kit/issues?q=label:\"package: app-info\"",
1212
"license": "MIT",
1313
"engines": {
14-
"node": "18.x || 20.x || 22.x"
14+
"node": "20.x || 22.x"
1515
},
1616
"main": "lib/index.js",
1717
"types": "types/index.d.ts"

packages/crash-handler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"bugs": "https://github.com/Financial-Times/dotcom-reliability-kit/issues?q=label:\"package: crash-handler\"",
1212
"license": "MIT",
1313
"engines": {
14-
"node": "18.x || 20.x || 22.x"
14+
"node": "20.x || 22.x"
1515
},
1616
"main": "lib/index.js",
1717
"types": "types/index.d.ts",

packages/errors/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"bugs": "https://github.com/Financial-Times/dotcom-reliability-kit/issues?q=label:\"package: errors\"",
1212
"license": "MIT",
1313
"engines": {
14-
"node": "18.x || 20.x || 22.x"
14+
"node": "20.x || 22.x"
1515
},
1616
"main": "lib/index.js",
1717
"types": "types/index.d.ts"

packages/eslint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"bugs": "https://github.com/Financial-Times/dotcom-reliability-kit/issues?q=label:\"package: eslint-config\"",
1212
"license": "MIT",
1313
"engines": {
14-
"node": "18.x || 20.x || 22.x"
14+
"node": "20.x || 22.x"
1515
},
1616
"main": "lib/index.js",
1717
"types": "types/index.d.ts",

packages/fetch-error-handler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"bugs": "https://github.com/Financial-Times/dotcom-reliability-kit/issues?q=label:\"package: fetch-error-handler\"",
1212
"license": "MIT",
1313
"engines": {
14-
"node": "18.x || 20.x || 22.x"
14+
"node": "20.x || 22.x"
1515
},
1616
"main": "lib/index.js",
1717
"types": "types/index.d.ts",

packages/log-error/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ This will automatically [serialize error objects](https://github.com/Financial-T
6161
app: {
6262
commit: '137da65185397a7d699ed54c3052d10d83e82137',
6363
name: 'example-app',
64-
nodeVersion: '18.17.0',
64+
nodeVersion: '22.13.0',
6565
region: 'EU',
6666
releaseDate: '2022-07-25T01:37:00Z'
6767
}
@@ -95,7 +95,7 @@ The information logged looks like this:
9595
app: {
9696
commit: '137da65185397a7d699ed54c3052d10d83e82137',
9797
name: 'example-app',
98-
nodeVersion: '18.17.0',
98+
nodeVersion: '22.13.0',
9999
region: 'EU',
100100
releaseDate: '2022-07-25T01:37:00Z'
101101
}
@@ -129,7 +129,7 @@ The information logged looks like this:
129129
app: {
130130
commit: '137da65185397a7d699ed54c3052d10d83e82137',
131131
name: 'example-app',
132-
nodeVersion: '18.17.0',
132+
nodeVersion: '22.13.0',
133133
region: 'EU',
134134
releaseDate: '2022-07-25T01:37:00Z'
135135
}
@@ -262,7 +262,7 @@ When this option is defined, the logged data looks includes request data:
262262
app: {
263263
commit: '137da65185397a7d699ed54c3052d10d83e82137',
264264
name: 'example-app',
265-
nodeVersion: '18.17.0',
265+
nodeVersion: '22.13.0',
266266
region: 'EU',
267267
releaseDate: '2022-07-25T01:37:00Z'
268268
}

packages/log-error/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"bugs": "https://github.com/Financial-Times/dotcom-reliability-kit/issues?q=label:\"package: log-error\"",
1212
"license": "MIT",
1313
"engines": {
14-
"node": "18.x || 20.x || 22.x"
14+
"node": "20.x || 22.x"
1515
},
1616
"main": "lib/index.js",
1717
"types": "types/index.d.ts",

packages/logger/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"bugs": "https://github.com/Financial-Times/dotcom-reliability-kit/issues?q=label:\"package: logger\"",
1212
"license": "MIT",
1313
"engines": {
14-
"node": "18.x || 20.x || 22.x"
14+
"node": "20.x || 22.x"
1515
},
1616
"main": "lib/index.js",
1717
"types": "types/index.d.ts",

0 commit comments

Comments
 (0)