get-stream

Get a stream as a string, Buffer, ArrayBuffer or array

MIT License

Downloads
401.3M
Stars
331
Committers
17

Bot releases are visible (Hide)

get-stream - Latest Release

Published by sindresorhus 7 months ago

  • Upgrade ReadableStream[Symbol.asyncIterator] ponyfill (#128) df42674

https://github.com/sindresorhus/get-stream/compare/v9.0.0...v9.0.1

get-stream -

Published by sindresorhus 7 months ago

Breaking

  • Require Node.js 18 (#111) 7ccab70

Improvements

  • Fix browser support (#122) 4d233d3
  • Allow multiple readers at once (#121) a51d085

https://github.com/sindresorhus/get-stream/compare/v8.0.1...v9.0.0

get-stream -

Published by ehmicky about 1 year ago

Fixes

https://github.com/sindresorhus/get-stream/compare/v8.0.0...v8.0.1

get-stream -

Published by sindresorhus about 1 year ago

Huge thanks to @ehmicky for doing all the work for this release 🙌

Breaking

Improvements

Fixes

  • Do not crash on big streams (with one/many GBs). (#66)
  • Ensure maxBuffer stops infinite streams. (#62)
  • Stop consuming the streaming when hitting maxBuffer. (#42, #69).
  • Set error.bufferedData when the stream errors for other reasons than maxBuffer. (#56, #63)
  • Ensure error.bufferedData is smaller than maxBuffer. (#89)

TypeScript types

Documentation

Performance

  • Do not block the event loop when the stream ends. (#92)

https://github.com/sindresorhus/get-stream/compare/v7.0.1...v8.0.0

get-stream -

Published by sindresorhus over 1 year ago

  • Work around issue with handling large sizes e58d141

https://github.com/sindresorhus/get-stream/compare/v7.0.0...v7.0.1

get-stream -

Published by sindresorhus over 1 year ago

Breaking

  • Require Node.js 16 70571f8
  • This package is now pure ESM. Please read this.
  • Removed getStream.array()
  • const getStream = require('get-stream'); getStream.buffer(…); → import {getStreamAsBuffer} from 'get-stream'; getStreamAsBuffer(…);
  • const getStream = require('get-stream'); getStream.MaxBufferError; → import {MaxBufferError} from 'get-stream'; MaxBufferError;

Tip

You may not need this package anymore.


https://github.com/sindresorhus/get-stream/compare/v6.0.1...v7.0.0

get-stream -

Published by sindresorhus over 3 years ago

  • Fix TypeScript type for the .buffer() method (#44) 0ee784a

https://github.com/sindresorhus/get-stream/compare/v6.0.0...v6.0.1

get-stream -

Published by sindresorhus about 4 years ago

Breaking

  • Require Node.js 10 80165c1

Breaking for TypeScript users

  • Only use a CommonJS export for the TypeScript definition (reason)
    You need to change import getStream from 'get-stream'; to import getStream = require('get-stream');

Improvements

  • Use native stream.pipeline instead of pump package (#39) 5cf31ba

https://github.com/sindresorhus/get-stream/compare/v5.2.0...v6.0.0

get-stream -

Published by sindresorhus about 4 years ago

  • Allow maxBuffer option to be set to Buffer MAX_LENGTH (#40) 127d83c

https://github.com/sindresorhus/get-stream/compare/v5.1.0...v5.2.0

get-stream -

Published by sindresorhus over 5 years ago

  • Refactor TypeScript definition to CommonJS compatible export (#31) 0c3b07d

https://github.com/sindresorhus/get-stream/compare/v5.0.0...v5.1.0

get-stream -

Published by sindresorhus over 5 years ago

Breaking:

  • 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