Skip to content

Make compatible with node >=22#2273

Merged
GCHQDeveloper581 merged 8 commits intomasterfrom
node-version-update
Apr 28, 2026
Merged

Make compatible with node >=22#2273
GCHQDeveloper581 merged 8 commits intomasterfrom
node-version-update

Conversation

@GCHQDeveloper581
Copy link
Copy Markdown
Contributor

@GCHQDeveloper581 GCHQDeveloper581 commented Mar 21, 2026

This is a breaking change for Node <=16

Therefore minimum requirement and build/edit environment have been updated to the current Node LTS, v22

(please also note - there is a further PR #2278 which extends the update to the latest node LTS, v24)

Resolves #1960, #2108

Requires a major version update

Originally presented as #2130 - this is the same code rebased onto master as of 2026-03-23 but now as a branch in the main gchq/CyberChef repository to make it easier for others to contribute improvements.

@GCHQDeveloper581
Copy link
Copy Markdown
Contributor Author

npm install will get a EBADENGINE from @astronautlabs/amf@0.0.6 which has node version pinned to ^14.

This restriction has been removed from the (unreleased) HEAD of the corresponding git repository at https://github.com/astronautlabs/amf

The warning could be avoided by directly referencing the git commit but whilst I have tested this locally I've not included this change.

Comment thread .github/workflows/releases.yml
Comment thread .github/workflows/pull_requests.yml
Comment thread .github/workflows/master.yml
@GCHQDeveloper581
Copy link
Copy Markdown
Contributor Author

GCHQDeveloper581 commented Mar 23, 2026

@C85297 "yes" to all those comments. Related PR #2278 onto this branch should resolve this.

When the original #2130 was written 20.X was still an active branch, and my motivation for using it then was that it (largely) retained backward compatibility with 18.

We now need 24.X for actions anyway, and #2278 moves us on to that.

@GCHQDeveloper581 GCHQDeveloper581 enabled auto-merge (squash) April 27, 2026 22:38
@GCHQDeveloper581 GCHQDeveloper581 requested a review from C85297 April 27, 2026 22:38
@GCHQDeveloper581 GCHQDeveloper581 merged commit 864afa8 into master Apr 28, 2026
5 checks passed
@GCHQDeveloper581 GCHQDeveloper581 deleted the node-version-update branch April 28, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Node 24

2 participants