← All recipes
Moderne licensed

Find Duplex.toWeb() calls passing options.type

Recipe IDorg.openrewrite.node.migrate.stream.find-duplex-to-web-typeArtifact@openrewrite/recipes-nodejs

Passing 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-type

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-nodejs