Upgrade to Node.js 26
ProprietaryMigrate deprecated APIs for Node.js 26 compatibility. Includes all migrations from Node.js 24, plus Node 25 and Node 26 deprecations.
org. openrewrite. node. migrate. upgrade-node-26mod run . --recipe= org. openrewrite. node. migrate. upgrade-node-26Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Increase Node.js engine version
- Increase Node.js version in GitHub Actions
- org.openrewrite.nodejs.migrate.UpgradeNodeVersion
- Upgrade to Node.js 24
- Replace deprecated
SlowBufferwithBuffer.allocUnsafeSlow() - Find
fs.rmdir()calls with the removedrecursiveoption - Replace removed RSA-PSS
hashandmgf1Hashkey pair options - Replace deprecated
fs.F_OK,fs.R_OK,fs.W_OK,fs.X_OKwithfs.constants.* - Replace
ChildProcess._channelwithChildProcess.channel - Remove
process.on('multipleResolves')listeners - Replace
ServerResponse.writeHeader()withwriteHead() - Replace deprecated
node:_stream_*withnode:stream - Find
crypto.createDecipheriv()for AEAD ciphers withoutauthTagLength - Find
Duplex.toWeb()calls passingoptions.type - Find
module.register()usage