get-stream
9.0.1 · 16 Mar 2024MIT293.1M / weekRepositoryHomepagenpmAtom feed
7.0.1 is the newest release of 7.x.
In short
5 breaking
- Breaking
Require Node.js 16 70571f8
- Breaking
This package is now pure ESM. Please read this.
- Breaking
Removed
getStream.array() - Breaking
const getStream = require('get-stream'); getStream.buffer(…);→import {getStreamAsBuffer} from 'get-stream'; getStreamAsBuffer(…); - Breaking
const getStream = require('get-stream'); getStream.MaxBufferError;→import {MaxBufferError} from 'get-stream'; MaxBufferError;
Release note
Breaking
- Breaking
Require Node.js 16 70571f8
- Breaking
This package is now pure ESM. Please read this.
- Breaking
Removed
getStream.array()It complicated the codebase considerably and I personally never used it.
You can use
readableStream.toArray()instead. Example
- Breaking
const getStream = require('get-stream'); getStream.buffer(…);→import {getStreamAsBuffer} from 'get-stream'; getStreamAsBuffer(…); - Breaking
const getStream = require('get-stream'); getStream.MaxBufferError;→import {MaxBufferError} from 'get-stream'; MaxBufferError;
Tip
You may not need this package anymore.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.