Find Duplex.toWeb() calls passing options.type
Recipe ID
org.openrewrite.node.migrate.stream.find-duplex-to-web-typeArtifact@openrewrite/recipes-nodejsPassing options.type to stream.Duplex.toWeb() is runtime-deprecated in Node.js 26 (DEP0201). The type field controls the readable-side ReadableStream chunk type; drop it from the options and set the type on the resulting ReadableStream instead.
Single recipeDEP0201Proprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.node.migrate.stream.find-duplex-to-web-typeIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-nodejs