Skip to content

Commit 065cb29

Browse files
authored
Drop Node 22, support Node 26, update deps (#524)
* Update supported Node versions, bump Typescript * Drop recursive `fsPromises.rmdir` for Node 25 Instead use `fsPromise.rm()` with `{ recursive: true }`, as suggested by NodeJS docs (but don't need `{ force: true }` in this case) * Use towncrier version that replaces pkg_resources * Make towncrier ignore git.keep * Wrap towncrier version range in quotes Otherwise, the > is used as a redirection operator * Update matrix-appservice to `4.1.0` Also bump related dependencies * Regenerate lockfiles & bump postgres.js See https://github.com/porsager/postgres/releases/tag/v3.4.9 * Support Node 26 * Tweak towncrier config Omit extensions on news fragment files created with `towncrier create` for consistency with how those files have been named in this repo. * Update matrix-bot-sdk to 0.10.0-element.0 Resolves GHSA-wfq4-36m3-9g4 / CVE-2026-45056 * Remove one more time-of-writing date
1 parent fcd1269 commit 065cb29

19 files changed

Lines changed: 1687 additions & 3032 deletions

File tree

.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
ref: ${{ github.event.pull_request.head.sha }}
1414
fetch-depth: 0
1515
- uses: actions/setup-python@v2
16-
- run: pip install towncrier==22.8.0
16+
- run: pip install 'towncrier>=23.6.0'
1717
- run: scripts/check-newsfragment
1818
env:
1919
PULL_REQUEST_NUMBER: ${{ github.event.number }}

.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-24.04
11-
container: node:22
11+
container: node:24
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-24.04
13-
container: node:22
13+
container: node:24
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: [22, 24]
22+
node-version: [24, 26]
2323
runs-on: ubuntu-24.04
2424
steps:
2525
- uses: actions/checkout@v2
@@ -31,7 +31,7 @@ jobs:
3131
- run: yarn build && yarn test
3232
test-postgres:
3333
runs-on: ubuntu-24.04
34-
container: node:22
34+
container: node:24
3535
services:
3636
postgres:
3737
image: postgres:latest

.node-version

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

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 ES2022 (supported by Node 22). The CI will lint your code automatically,
64+
TypeScript. At time of writing, we target ES2024 (supported by Node 24). 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 22.x or greater.
8+
`matrix-appservice-bridge` requires Node JS 24.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/524.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update matrix-appservice to `4.1.0`.

changelog.d/524.misc.1

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

changelog.d/524.removal

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

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 (August 2025) we support 22.X and 24.X as they are the Active and Current releases of Node.JS.
17+
At time of writing, we support 24.X and 26.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.

0 commit comments

Comments
 (0)