sanity-io / gatsby-source-sanity

Gatsby source plugin for building websites using Sanity.io as a backend.
https://www.sanity.io/
MIT License
197 stars 61 forks source link

fix(deps): Update dependency get-stream to v8 #250

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
get-stream ^6.0.1 -> ^8.0.0 age adoption passing confidence

Release Notes

sindresorhus/get-stream (get-stream) ### [`v8.0.1`](https://togithub.com/sindresorhus/get-stream/releases/tag/v8.0.1) [Compare Source](https://togithub.com/sindresorhus/get-stream/compare/v8.0.0...v8.0.1) #### Fixes - Ensure [`error.bufferedData`](https://togithub.com/sindresorhus/get-stream#errors) is as full as possible. ([#​106](https://togithub.com/sindresorhus/get-stream/issues/106)) - Fix the [`maxBuffer`](https://togithub.com/sindresorhus/get-stream#maxbuffer) option being one byte off in some edge case. ([#​105](https://togithub.com/sindresorhus/get-stream/issues/105)) ### [`v8.0.0`](https://togithub.com/sindresorhus/get-stream/releases/tag/v8.0.0) [Compare Source](https://togithub.com/sindresorhus/get-stream/compare/v7.0.1...v8.0.0) Huge thanks to [@​ehmicky](https://togithub.com/ehmicky) for doing all the work for this release ๐Ÿ™Œ ##### Breaking - Remove the `encoding` option. ([#​69](https://togithub.com/sindresorhus/get-stream/issues/69), [#​67](https://togithub.com/sindresorhus/get-stream/issues/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://togithub.com/sindresorhus/get-stream#non-utf-8-encoding). ([#​84](https://togithub.com/sindresorhus/get-stream/issues/84)) - Methods like [`buffer.toString('hex')` or `buffer.toString('base64')`](https://nodejs.org/api/buffer.html#buftostringencoding-start-end) can also be used. ##### Improvements - Support any JavaScript environment, including browsers. ([#​85](https://togithub.com/sindresorhus/get-stream/issues/85)) - Support web streams ([`ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream)). ([#​82](https://togithub.com/sindresorhus/get-stream/issues/82), [#​78](https://togithub.com/sindresorhus/get-stream/issues/78), [#​79](https://togithub.com/sindresorhus/get-stream/issues/79), [#​80](https://togithub.com/sindresorhus/get-stream/issues/80)) - Support [async iterables](https://togithub.com/sindresorhus/get-stream#async-iterables). ([#​69](https://togithub.com/sindresorhus/get-stream/issues/69), [#​93](https://togithub.com/sindresorhus/get-stream/issues/93)) - Add [`getStreamAsArray()`](https://togithub.com/ehmicky/get-stream#getstreamasarraystream-options) method to pass streams [in object mode](https://togithub.com/ehmicky/get-stream#getstreamasarraystream-options). ([#​86](https://togithub.com/sindresorhus/get-stream/issues/86)) - Add [`getStreamAsArrayBuffer()`](https://togithub.com/sindresorhus/get-stream#getstreamasarraybufferstream-options) method to return the stream as an [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). ([#​81](https://togithub.com/sindresorhus/get-stream/issues/81)) - When the stream is larger than the maximum size for a [string](https://nodejs.org/api/buffer.html#bufferconstantsmax_string_length), [buffer or `ArrayBuffer`](https://nodejs.org/api/buffer.html#bufferconstantsmax_length), set [`error.bufferedData`](https://togithub.com/ehmicky/get-stream#errors) with the partially read data instead of leaving it empty. ([#​68](https://togithub.com/sindresorhus/get-stream/issues/68), [#​48](https://togithub.com/sindresorhus/get-stream/issues/48)) #### Fixes - Do not crash on big streams (with one/many GBs). ([#​66](https://togithub.com/sindresorhus/get-stream/issues/66)) - Ensure `maxBuffer` stops infinite streams. ([#​62](https://togithub.com/sindresorhus/get-stream/issues/62)) - Stop consuming the streaming when hitting [`maxBuffer`](https://togithub.com/ehmicky/get-stream#maxbuffer). ([#​42](https://togithub.com/sindresorhus/get-stream/issues/42), [#​69](https://togithub.com/sindresorhus/get-stream/issues/69)). - Set [`error.bufferedData`](https://togithub.com/ehmicky/get-stream#errors) when the stream errors for other reasons than [`maxBuffer`](https://togithub.com/ehmicky/get-stream#maxbuffer). ([#​56](https://togithub.com/sindresorhus/get-stream/issues/56), [#​63](https://togithub.com/sindresorhus/get-stream/issues/63)) - Ensure [`error.bufferedData`](https://togithub.com/ehmicky/get-stream#errors) is smaller than [`maxBuffer`](https://togithub.com/ehmicky/get-stream#maxbuffer). ([#​89](https://togithub.com/sindresorhus/get-stream/issues/89)) #### TypeScript types - The `stream` argument must be a [`Readable`, `ReadableStream` or `AsyncIterable`](https://togithub.com/sindresorhus/get-stream/blob/c1df6e8f3a52885489f0120d3c5e55d4f49d9d44/source/index.d.ts#L10). ([#​71](https://togithub.com/sindresorhus/get-stream/issues/71)) #### Documentation - Add tips on [alternatives](https://togithub.com/sindresorhus/get-stream#alternatives), [`Blob`](https://togithub.com/sindresorhus/get-stream/tree/main#blobs) and [JSON streaming](https://togithub.com/sindresorhus/get-stream/tree/main#json-streaming). ([#​58](https://togithub.com/sindresorhus/get-stream/issues/58), [#​95](https://togithub.com/sindresorhus/get-stream/issues/95), [#​96](https://togithub.com/sindresorhus/get-stream/issues/96), [#​97](https://togithub.com/sindresorhus/get-stream/issues/97)) #### Performance - Do not block the event loop when the stream ends. ([#​92](https://togithub.com/sindresorhus/get-stream/issues/92)) ### [`v7.0.1`](https://togithub.com/sindresorhus/get-stream/releases/tag/v7.0.1) [Compare Source](https://togithub.com/sindresorhus/get-stream/compare/v7.0.0...v7.0.1) - Work around issue with handling large sizes [`e58d141`](https://togithub.com/sindresorhus/get-stream/commit/e58d141) ### [`v7.0.0`](https://togithub.com/sindresorhus/get-stream/releases/tag/v7.0.0) [Compare Source](https://togithub.com/sindresorhus/get-stream/compare/v6.0.1...v7.0.0) ##### Breaking - Require Node.js 16 [`70571f8`](https://togithub.com/sindresorhus/get-stream/commit/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://togithub.com/sindresorhus/get-stream#tip) - `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://togithub.com/sindresorhus/get-stream#tip) ***

Configuration

๐Ÿ“… Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).

๐Ÿšฆ Automerge: Disabled by config. Please merge this manually once you are satisfied.

โ™ป Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

๐Ÿ”• Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate using a curated preset maintained by Sanity. View repository job log here

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git โ†—๏ธŽ

Name Status Preview Comments Updated (UTC)
gatsby-source-sanity โœ… Ready (Inspect) Visit Preview ๐Ÿ’ฌ Add feedback Aug 21, 2023 1:24am
socket-security[bot] commented 1 year ago

New, updated, and removed dependencies detected. Learn more about Socket for GitHub โ†—๏ธŽ

Packages Version New capabilities Transitives Size Publisher
get-stream 8.0.1 None +0 25.2 kB ehmicky
eslint 8.45.0...8.47.0 None +6/-5 4.23 MB eslintbot

๐Ÿšฎ Removed packages: @types/node@18.17.0

renovate[bot] commented 1 year ago

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 8.x releases. But if you manually upgrade to 8.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.