Skip to content

Commit 5fc2bda

Browse files
committed
chore!: drop support for Node.js <=22.11
Node.js 22.12 removes the need for the `--experimental-require-module` CLI flag when importing native ESM into CommonJS contexts. We'd like to migrate Reliability Kit to be ESM and we'd like for the teams who use it to not have to include this CLI flag. We're taking the decision to drop support for Node.js versions below 22.12 in order to support this. This is the first step towards us migrating to native ESM, see #1479.
1 parent 02f00f3 commit 5fc2bda

File tree

31 files changed

+102
-32
lines changed

31 files changed

+102
-32
lines changed

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"typescript": "^5.9.3"
4646
},
4747
"engines": {
48-
"node": "22.x || 24.x"
48+
"node": "^22.12 || ^24"
4949
},
5050
"volta": {
5151
"node": "24.12.0"

packages/app-info/docs/migration.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Emoji | Label | Meaning
1616
* [Node.js 18 is no longer supported](#nodejs-18-is-no-longer-supported)
1717
* [Migrating from v4 to v5](#migrating-from-v4-to-v5)
1818
* [Node.js 20 is no longer supported](#nodejs-20-is-no-longer-supported)
19+
* [Node.js 22.11 is no longer supported](#nodejs-2211-is-no-longer-supported)
1920

2021

2122
## Migrating from v1 to v2
@@ -44,3 +45,7 @@ Emoji | Label | Meaning
4445
### Node.js 20 is no longer supported
4546

4647
**:red_circle: Breaking:** this version drops support for Node.js v20. If your app is already using Node.js v22 then you may be able to migrate without code changes.
48+
49+
### Node.js 22.11 is no longer supported
50+
51+
**:red_circle: Breaking:** this version drops support for Node.js v22.11 or lower. If your app is already using Node.js v22.12 then you may be able to migrate without code changes. This is so that we can publish native ESM modules without requiring complex changes in our consuming applications. [See #1479 for more information](https://github.com/Financial-Times/dotcom-reliability-kit/issues/1479).

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": "22.x || 24.x"
14+
"node": "^22.12 || ^24"
1515
},
1616
"main": "lib/index.js",
1717
"types": "types/index.d.ts"

packages/client-metrics-web/docs/migration.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@ Emoji | Label | Meaning
1111

1212
* [Migrating from v0 to v1](#migrating-from-v0-to-v1)
1313
* [Node.js 20 is no longer supported](#nodejs-20-is-no-longer-supported)
14+
* [Node.js 22.11 is no longer supported](#nodejs-2211-is-no-longer-supported)
1415

1516

1617
## Migrating from v0 to v1
1718

1819
### Node.js 20 is no longer supported
1920

2021
**:red_circle: Breaking:** this version drops support for Node.js v20. If your app is already using Node.js v22 then you may be able to migrate without code changes.
22+
23+
### Node.js 22.11 is no longer supported
24+
25+
**:red_circle: Breaking:** this version drops support for Node.js v22.11 or lower. If your app is already using Node.js v22.12 then you may be able to migrate without code changes. This is so that we can publish native ESM modules without requiring complex changes in our consuming applications. [See #1479 for more information](https://github.com/Financial-Times/dotcom-reliability-kit/issues/1479).

packages/client-metrics-web/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: client-metrics-web\"",
1212
"license": "MIT",
1313
"engines": {
14-
"node": "22.x || 24.x"
14+
"node": "^22.12 || ^24"
1515
},
1616
"main": "lib/index.js",
1717
"types": "types/index.d.ts",

packages/crash-handler/docs/migration.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Emoji | Label | Meaning
1919
* [Node.js 18 is no longer supported](#nodejs-18-is-no-longer-supported)
2020
* [Migrating from v5 to v6](#migrating-from-v5-to-v6)
2121
* [Node.js 20 is no longer supported](#nodejs-20-is-no-longer-supported)
22+
* [Node.js 22.11 is no longer supported](#nodejs-2211-is-no-longer-supported)
2223

2324

2425
## Migrating from v1 to v2
@@ -73,3 +74,7 @@ You can safely migrate to this version of Crash Handler if your app is either _n
7374
### Node.js 20 is no longer supported
7475

7576
**:red_circle: Breaking:** this version drops support for Node.js v20. If your app is already using Node.js v22 then you may be able to migrate without code changes.
77+
78+
### Node.js 22.11 is no longer supported
79+
80+
**:red_circle: Breaking:** this version drops support for Node.js v22.11 or lower. If your app is already using Node.js v22.12 then you may be able to migrate without code changes. This is so that we can publish native ESM modules without requiring complex changes in our consuming applications. [See #1479 for more information](https://github.com/Financial-Times/dotcom-reliability-kit/issues/1479).

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": "22.x || 24.x"
14+
"node": "^22.12 || ^24"
1515
},
1616
"main": "lib/index.js",
1717
"types": "types/index.d.ts",

packages/errors/docs/migration.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Emoji | Label | Meaning
1616
* [Node.js 18 is no longer supported](#nodejs-18-is-no-longer-supported)
1717
* [Migrating from v4 to v5](#migrating-from-v4-to-v5)
1818
* [Node.js 20 is no longer supported](#nodejs-20-is-no-longer-supported)
19+
* [Node.js 22.11 is no longer supported](#nodejs-2211-is-no-longer-supported)
1920

2021

2122
## Migrating from v1 to v2
@@ -44,3 +45,7 @@ Emoji | Label | Meaning
4445
### Node.js 20 is no longer supported
4546

4647
**:red_circle: Breaking:** this version drops support for Node.js v20. If your app is already using Node.js v22 then you may be able to migrate without code changes.
48+
49+
### Node.js 22.11 is no longer supported
50+
51+
**:red_circle: Breaking:** this version drops support for Node.js v22.11 or lower. If your app is already using Node.js v22.12 then you may be able to migrate without code changes. This is so that we can publish native ESM modules without requiring complex changes in our consuming applications. [See #1479 for more information](https://github.com/Financial-Times/dotcom-reliability-kit/issues/1479).

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": "22.x || 24.x"
14+
"node": "^22.12 || ^24"
1515
},
1616
"main": "lib/index.js",
1717
"types": "types/index.d.ts"

0 commit comments

Comments
 (0)