14 curated breaking changes across major versions of get-stream. Use this as a migration checklist before bumping dependencies.
Require Node.js 18 (#111) 7ccab70
Remove the `encoding` option. (#69, #67)
This package handles binary, UTF-8 and object streams.
For other encodings like UTF-16, hexacimal and base64, please see the [following tip](https://github.com/sindresorhus/get-stream#non-utf-8-encoding). (#84)
Methods like [`buffer.toString('hex')` or `buffer.toString('base64')`](https://nodejs.org/api/buffer.html#buftostringencoding-start-end) can also be used.
Require Node.js 16 70571f8
This package is now pure ESM. **Please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).**
Removed `getStream.array()`
It complicated the codebase considerably and I personally never used it.
You can use [`readableStream.toArray()`](https://nodejs.org/api/stream.html#readabletoarrayoptions) instead. [Example](https://github.com/sindresorhus/get-stream#tip)
Require Node.js 10 80165c1
Only use a CommonJS export for the TypeScript definition ([reason](https://github.com/sindresorhus/mem/issues/31)) You need to change `import getStream from 'get-stream';` to `import getStream = require('get-stream');`
Require Node.js 8 (#28) 4ddb7f0 Enhancements:
Add TypeScript definition (#28) 4ddb7f0 https://github.com/sindresorhus/get-stream/compare/v4.1.0...v5.0.0
Get this data programmatically \u2014 free, no authentication.
curl https://depscope.dev/api/breaking/npm/get-stream