get-stream breaking changes

npm

14 curated breaking changes across major versions of get-stream. Use this as a migration checklist before bumping dependencies.

14
changes
Breaking changes by transition
  • v8.0.1 \u2192 v9.0.0breaking

    Require Node.js 18 (#111) 7ccab70

  • v7.0.1 \u2192 v8.0.0breaking

    Remove the `encoding` option. (#69, #67)

  • v7.0.1 \u2192 v8.0.0breaking

    This package handles binary, UTF-8 and object streams.

  • v7.0.1 \u2192 v8.0.0breaking

    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)

  • v7.0.1 \u2192 v8.0.0breaking

    Methods like [`buffer.toString('hex')` or `buffer.toString('base64')`](https://nodejs.org/api/buffer.html#buftostringencoding-start-end) can also be used.

  • v6.0.1 \u2192 v7.0.0breaking

    Require Node.js 16 70571f8

  • v6.0.1 \u2192 v7.0.0breaking

    This package is now pure ESM. **Please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).**

  • v6.0.1 \u2192 v7.0.0breaking

    Removed `getStream.array()`

  • v6.0.1 \u2192 v7.0.0breaking

    It complicated the codebase considerably and I personally never used it.

  • v6.0.1 \u2192 v7.0.0breaking

    You can use [`readableStream.toArray()`](https://nodejs.org/api/stream.html#readabletoarrayoptions) instead. [Example](https://github.com/sindresorhus/get-stream#tip)

  • v5.2.0 \u2192 v6.0.0breaking

    Require Node.js 10 80165c1

  • v5.2.0 \u2192 v6.0.0breaking

    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');`

  • unknown \u2192 v5.0.0breaking

    Require Node.js 8 (#28) 4ddb7f0 Enhancements:

  • unknown \u2192 v5.0.0breaking

    Add TypeScript definition (#28) 4ddb7f0 https://github.com/sindresorhus/get-stream/compare/v4.1.0...v5.0.0

API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/breaking/npm/get-stream
get-stream breaking changes — npm migration guide | DepScope