Skip to content

feat(server)!: replace BodyLimitHandlerPlugin with RequestLimitHandlerPlugin - #1647

Merged
dinwwwh merged 2 commits into
middleapi:mainfrom
dinwwwh:feat/request-limit-plugin
Jul 9, 2026
Merged

feat(server)!: replace BodyLimitHandlerPlugin with RequestLimitHandlerPlugin#1647
dinwwwh merged 2 commits into
middleapi:mainfrom
dinwwwh:feat/request-limit-plugin

Conversation

@dinwwwh

@dinwwwh dinwwwh commented Jul 9, 2026

Copy link
Copy Markdown
Member

Replace the adapter-specific fetch/node body limit plugins with a single StandardHandlerPlugin that works across all adapters. When used with request
compression, the limit applies to the decompressed payload size.

RequestLimitHandlerPlugin

Replace the adapter-specific fetch/node body limit plugins with a single
StandardHandlerPlugin that works across all adapters. When used with
request
compression, the limit applies to the decompressed payload size.
@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
orpc Ready Ready Preview, Comment Jul 9, 2026 8:33am

@pkg-pr-new

pkg-pr-new Bot commented Jul 9, 2026

Copy link
Copy Markdown
More templates

@orpc/arktype

npm i https://pkg.pr.new/@orpc/arktype@1647

@orpc/bun

npm i https://pkg.pr.new/@orpc/bun@1647

@orpc/client

npm i https://pkg.pr.new/@orpc/client@1647

@orpc/cloudflare

npm i https://pkg.pr.new/@orpc/cloudflare@1647

@orpc/contract

npm i https://pkg.pr.new/@orpc/contract@1647

@orpc/experimental-effect

npm i https://pkg.pr.new/@orpc/experimental-effect@1647

@orpc/evlog

npm i https://pkg.pr.new/@orpc/evlog@1647

@orpc/interop

npm i https://pkg.pr.new/@orpc/interop@1647

@orpc/json-schema

npm i https://pkg.pr.new/@orpc/json-schema@1647

@orpc/nest

npm i https://pkg.pr.new/@orpc/nest@1647

@orpc/next

npm i https://pkg.pr.new/@orpc/next@1647

@orpc/openapi

npm i https://pkg.pr.new/@orpc/openapi@1647

@orpc/opentelemetry

npm i https://pkg.pr.new/@orpc/opentelemetry@1647

@orpc/pino

npm i https://pkg.pr.new/@orpc/pino@1647

@orpc/publisher

npm i https://pkg.pr.new/@orpc/publisher@1647

@orpc/ratelimit

npm i https://pkg.pr.new/@orpc/ratelimit@1647

@orpc/server

npm i https://pkg.pr.new/@orpc/server@1647

@orpc/shared

npm i https://pkg.pr.new/@orpc/shared@1647

@orpc/tanstack-query

npm i https://pkg.pr.new/@orpc/tanstack-query@1647

@orpc/valibot

npm i https://pkg.pr.new/@orpc/valibot@1647

@orpc/zod

npm i https://pkg.pr.new/@orpc/zod@1647

commit: b619f87

@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues — one docs link to fix inline.

Reviewed changes — replacement of the adapter-specific BodyLimitHandlerPlugin with a unified RequestLimitHandlerPlugin, including docs, adapter exports, and cross-adapter tests.

  • Removes fetch/node BodyLimitHandlerPlugin implementations and their tests.
  • Adds RequestLimitHandlerPlugin as a StandardHandlerPlugin that limits request bodies via a content-length pre-check and a byte-counting TransformStream.
  • Adds before: ['~request-compression'] / after: ['~batch'] ordering so the limit applies to the decompressed batch payload when those plugins are present.
  • Updates docs and adapter/plugin export indexes to surface the new plugin.

Pullfrog  | Fix all ➔Fix 👍s ➔View workflow run | Using Kimi K2 (free via Pullfrog for OSS) | 𝕏

Comment thread apps/content/docs/plugins/request-compression.md Outdated
Co-authored-by: pullfrog[bot] <226033991+pullfrog[bot]@users.noreply.github.com>
@dinwwwh
dinwwwh merged commit 49b63f9 into middleapi:main Jul 9, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant