expressjs / body-parser

Node.js body parsing middleware
MIT License
5.45k stars 727 forks source link

fix: remove unpipe package and use native unpipe method #543

Closed Phillip9587 closed 1 month ago

Phillip9587 commented 1 month ago

The unpipe package was used to unpipes all destinations from a given stream.

Taken from the unpipe readme:

With stream 2+, this is equivalent to stream.unpipe(). When used with streams 1 style streams (typically Node.js 0.8 and below), this module attempts to undo the actions done in stream.pipe(dest).

As our minimum supported Node version is v18 the unpipe package is no longer needed.