raw-body breaking changes
raw-body 4.0.0 (July 12, 2026) is its newest release with breaking changes, 13 of them. The first: Drops support for Node.js versions before 22 in raw-body 4.0.0. Every breaking API change we have recorded in raw-body on npm: 16 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.0.0, released July 12, 2026. Source repository
Its 3.0.0-beta.1 release drops Node.js 0.8. Node.js end of life dates.
raw-body 4.0.0 breaking changes
- Removed
Node.js versions prior to 22 are no longer supported. Upgrade Node.js to 22 or later before using this release. github.com - Removed
Streams must implement the readable stream interface (unpipe, pause); legacy streams1 streams are no longer supported. github.com - Behavior changed
Encodings outside the WHATWG Encoding Standard such as UTF-32 now throw a 415 error. utf-16 always decodes as little-endian; use utf-16be for big-endian content. github.com - Behavior changed
Node streams that emit string chunks now error with a 500 stream.encoding.set instead of being decoded silently or crashing. github.com - Behavior changed
getRawBody
getRawBody itself keeps accepting only node streams; use the new getRawBodyWeb export for WHATWG ReadableStream bodies. github.com - Behavior changed
limit
A limit that does not parse to a byte count now throws a TypeError instead of silently having no limit. Use limit: null to disable the limit. github.com - Behavior changed
utf-16
utf-16 always decodes as little-endian now; use utf-16be for big-endian content. github.com - Configuration changed
CommonJS consumers must load the package through require(esm); plain require of the package no longer works. github.com - Signature changed
default
Was function getRawBody(stream: NodeJS.ReadableStream, callback: (err: getRawBody.RawBodyError, body: Buffer) => void): void function getRawBody(stream: NodeJS.ReadableStream, options: (getRawBody.Options & {encoding: getRawBody.Encoding})... npmjs.com - Signature changed
Options.encoding
Was encoding?: Encoding | null; now encoding?: Encoding | false | null. npmjs.com - Signature changed
RawBodyError.status
Was status: number; now status?: number. npmjs.com - Signature changed
RawBodyError.statusCode
Was statusCode: number; now statusCode?: number. npmjs.com - Signature changed
RawBodyError.type
Was type: string; now type?: RawBodyErrorType. npmjs.com
raw-body 3.0.0 breaking changes
- Signature changed
default
Was function getRawBody(stream: Readable, callback: (err: getRawBody.RawBodyError, body: Buffer) => void): void function getRawBody(stream: Readable, options: (getRawBody.Options & {encoding: getRawBody.Encoding}) | getRawBody.Encoding)... npmjs.com
raw-body 3.0.0-beta.1 breaking changes
- Removed
Node.js 0.8 is no longer supported, so upgrade the runtime before using this version. github.com - Signature changed
The TypeScript type of the stream argument now uses the NodeJS.ReadableStream interface, so typed code may need updating. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.