chore(deps): update node dependencies (major)#1781
Open
loopingz wants to merge 1 commit into
Open
Conversation
loopingz
force-pushed
the
renovate/major-node-dependencies
branch
from
July 22, 2026 12:11
e696421 to
34d1234
Compare
loopingz
force-pushed
the
renovate/major-node-dependencies
branch
from
July 23, 2026 12:09
34d1234 to
05f7f87
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.0.2→^4.0.0^6.0.3→^7.0.2^6.0.3→^7.0.2Release Notes
stream-utils/raw-body (raw-body)
v4.0.0Compare Source
Remove support for Node <22 - by @bjohansebas in #156
Node.js versions prior to 22 are no longer supported. This allows the package to migrate to ESM and rely on
require(esm), which does not work correctly on earlier versions.Migrate to TypeScript and publish as ESM-only - by @bjohansebas in #157
CommonJS consumers can keep loading the package through
require(esm).Use native
TextDecoderinstead oficonv-lite- by @bjohansebas in #143Supported encodings are now those of the WHATWG Encoding Standard; encodings outside the standard (e.g. UTF-32) now throw a 415 error.
utf-16no longer detects a big-endian BOM and always decodes as little-endian; useutf-16befor big-endian content.Remove streams1 support - by @bjohansebas in #144 and #161
Node streams that emit string chunks now error with a 500
stream.encoding.setthrough the callback (previously they were decoded silently, or crashed the process when no encoding was set), matching the web stream path. Streams are expected to implement the readable stream interface (unpipe,pause).Validate the
limitoption - by @bjohansebas in #162A
limitthat does not parse to a byte count (e.g.'banana',NaN) now throws aTypeErrorinstead of silently reading with no limit at all.limit: nullremains the explicit way to disable the limit.🚀 Improvements
Support reading WHATWG
ReadableStream(web streams) through the newgetRawBodyWebexport - by @bjohansebas in #148, #160 and #175fetchRequest/Responsebodies,Blob.stream(),TransformStreamreadables, andReadable.toWeb()bridges can be read withgetRawBodyWeb, which takes the same options asgetRawBody;getRawBodyitself keeps accepting only node streams. Streams already locked, read, or cancelled error with a 500stream.not.readable; client aborts are mapped to the same 400request.abortederror as node streams, with the original error incause; string chunks are accepted without an encoding (UTF-8Buffer), but error with a 500stream.encoding.setwhen combined with one, since the stream is already decoded; non-byte chunks (e.g.ArrayBuffer) error with aTypeError. On error the reader lock is released, but the stream is not cancelled; disposing it is up to the caller.Add a custom
decoderoption - by @bjohansebas in #145A function compatible with
iconv-lite'sgetDecodercan be plugged in to decode encodings outside the WHATWG Encoding Standard.Use native
stream.unpipe()and remove theunpipedependency - by @Phillip9587 in #93Remove the check for a global
Promisewhen no callback is provided - by @bjohansebas in #146Add a benchmark suite - by @bjohansebas in #163
npm run benchcompares the node and web stream paths with realistic request bodies.Fail as soon as a stream exceeds its declared
length- by @bjohansebas in #172A body that sends more bytes than its declared
lengthnow errors with a 400request.size.invalidas soon as the excess arrives, rather than buffering the rest first. This bounds memory tolengtheven when nolimitis set. When both are set, alengthoverrun is reported before thelimit's 413.🐞 Bug fixes
Fix a
lengththat does not parse to a number failing every request - by @bjohansebas in #172Values like
''passed the numeric pre-check but parsed toNaN, so the size check could never match and every request errored with a 400request.size.invalid. They are now treated as no expected length, like any other unparseable value.Fix node streams destroyed without an error never settling - by @bjohansebas in #158
They now error through the callback / reject the promise with the same 400
request.abortederror as the web path, instead of never invoking the callback or settling the promise.Fix process crash when a custom
decoderthrows while reading node streams - by @bjohansebas in #157microsoft/TypeScript (typescript)
v7.0.2Compare Source
Configuration
📅 Schedule: (UTC)
* * * * 3)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Renovate Bot.