Skip to content

Commit f823d70

Browse files
authored
Update supported Node versions and bot-sdk dependency (#519)
* Support node 24, drop node 20 Support current & active LTS releases of Node * Update Jasmine for Node 22 support This also required explicitly designating the test Typescript files as CommonJS (*.cts) * Replace util methods removed in Node 24 for tests * Update and pin matrix-bot-sdk Pin it because updates are often breaking & don't use true semver
1 parent c31c1aa commit f823d70

33 files changed

+1765
-1371
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
docs:
1010
runs-on: ubuntu-22.04
11-
container: node:20
11+
container: node:22
1212
steps:
1313
- uses: actions/checkout@v3
1414

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
lint:
1212
runs-on: ubuntu-22.04
13-
container: node:20
13+
container: node:22
1414
steps:
1515
- uses: actions/checkout@v2
1616
- run: yarn --strict-semver --frozen-lockfile
@@ -19,7 +19,7 @@ jobs:
1919
test:
2020
strategy:
2121
matrix:
22-
node-version: [20, 21]
22+
node-version: [22, 24]
2323
runs-on: ubuntu-22.04
2424
steps:
2525
- uses: actions/checkout@v2
@@ -32,7 +32,7 @@ jobs:
3232
- run: yarn build && yarn test
3333
test-postgres:
3434
runs-on: ubuntu-22.04
35-
container: node:20
35+
container: node:22
3636
services:
3737
postgres:
3838
image: postgres:latest

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
22

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ First of all, thank you for considering making a change to one of our projects.
6161
### 🖌️ Code style
6262

6363
Each repository contains an `eslint` configuration which will dictate the style of the code. All code should be written in
64-
TypeScript. At time of writing, we target ES2020 (the latest version supported by Node 14). The CI will lint your code automatically,
64+
TypeScript. At time of writing, we target ES2022 (supported by Node 22). The CI will lint your code automatically,
6565
but you can save yourself some time by running (`yarn lint`/`npm lint`) to check locally.
6666

6767
### 🧪 Tests / CI

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This library sits on top of the
55
and provides an API for setting up bridges quickly. Check out the
66
[HOW-TO](HOWTO.md) for a step-by-step tutorial on setting up a new bridge.
77

8-
`matrix-appservice-bridge` requires Node JS 18.x or greater.
8+
`matrix-appservice-bridge` requires Node JS 22.x or greater.
99

1010
If you are looking to contribute to this library, please check out our [CONTRIBUTING](./CONTRIBUTING.md) guide.
1111

changelog.d/519.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update matrix-bot-sdk to `0.7.1-element.14`.

changelog.d/519.removal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Drop support for Node 20 & 21, add support for Node 22 & 24.

docs/platforms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Node.JS version falls from Active to Maintenance, we will migrate projects to th
1414
For users who are on distributions packaging only Maintenance versions of Node.JS, we'd suggest either using Docker
1515
or an alternative Node.JS source.
1616

17-
At time of writing (January 2024) we support 20.X and 21.X as they are the Active and Current releases of Node.JS.
17+
At time of writing (August 2025) we support 22.X and 24.X as they are the Active and Current releases of Node.JS.
1818

1919
Bridge projects do not provide long term support to odd-versioned Node.JS releases, as these are short lived non-LTS
2020
versions and are difficult to support since they have a 6 month shelf life.

examples/encryption/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"matrix-appservice-bridge": "file:../.."
1616
},
1717
"devDependencies": {
18-
"@types/express": "^4.17.13",
19-
"@types/node": "^18",
20-
"typescript": "^5.0.4"
18+
"@types/express": "^4.17.21",
19+
"@types/node": "^22",
20+
"typescript": "^5.9.2"
2121
}
2222
}

0 commit comments

Comments
 (0)