h3 breaking changes
h3 2.0.4 (October 18, 2026) is its newest release with breaking changes. The first: The h3 docs command no longer ships bundled docs and opens h3.dev instead. Every breaking API change we have recorded in h3 on npm: 38 breaking changes in 9 versions. Below, its 9 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.0.8, released October 22, 2026. Source repository
Its 2.0.1 release requires Node.js 20.19 or later. Node.js end of life dates.
h3 2.0.4 breaking changes
- Behavior changed
Running the h3 docs command now opens h3.dev rather than showing docs bundled with the package. Scripts that rely on the bundled docs output need to change. github.com
h3 2.0.2 breaking changes
- Signature changed
defineRoute
Was function defineRoute(def: RouteDefinition): H3Plugin; now function defineRoute<RequestBody extends StandardSchemaV1 = StandardSchemaV1, RequestHeaders extends StandardSchemaV1 = StandardSchemaV1, RequestQuery extends StandardSchemaV1 =... npmjs.com - Signature changed
RouteDefinition
Was interface RouteDefinition; now interface RouteDefinition<RequestBody extends StandardSchemaV1 = StandardSchemaV1, RequestHeaders extends StandardSchemaV1 = StandardSchemaV1, RequestQuery extends StandardSchemaV1 = StandardSchemaV1>. npmjs.com - Signature changed
RouteDefinition.handler
Was handler: EventHandler; now handler: EventHandler<RouteRequest<RequestBody, RequestHeaders, RequestQuery>>. npmjs.com - Signature changed
RouteDefinition.validate
Was validate?: {body?: StandardSchemaV1; headers?: StandardSchemaV1; query?: StandardSchemaV1;}; now validate?: {body?: RequestBody; headers?: RequestHeaders; query?: RequestQuery; onError?: OnValidateError;}. npmjs.com - Signature changed
RouteDefinition.validate.body
Was body?: StandardSchemaV1; now body?: RequestBody. npmjs.com - Signature changed
RouteDefinition.validate.headers
Was headers?: StandardSchemaV1; now headers?: RequestHeaders. npmjs.com - Signature changed
RouteDefinition.validate.query
Was query?: StandardSchemaV1; now query?: RequestQuery. npmjs.com
h3 2.0.1 breaking changes
- Removed
autoclose
The autoclose option is gone, so remove it from code that passes it. github.com - Behavior changed
Requests need a JSON content-type, a valid origin and smaller batches are enforced. github.com - Behavior changed
The proxy now sets forwarding headers itself instead of trusting client-supplied x-forwarded values. github.com - Behavior changed
The URL built from the request ignores the host header, so code relying on it to set the URL must change. github.com - Behavior changed
Percent-encoded pathname characters are decoded differently, which can change route matching. github.com - Behavior changed
html
Interpolated values in the html tagged template are now escaped, so pre-escaped or raw HTML output changes. github.com - Default changed
Requests no longer trust x-forwarded-proto by default; enable it explicitly if you rely on it. github.com - Default changed
Fingerprints now use SHA-256 by default and components are disambiguated, so stored fingerprints will differ. github.com - Configuration changed
Running on Node.js now needs version 20.19 or newer. github.com
h3 2.0.1-rc.33 breaking changes
- Behavior changed
A request with two trailing slashes no longer matches a route that ends in one slash. github.com - Behavior changed
When both match, the more specific route wins, which can change which handler serves a request. github.com - Behavior changed
Patterns that were accepted with a different meaning now throw an error at registration; fix those route patterns. github.com - Behavior changed
A hyphen now ends a param name, so rename params such as :user-id to :userId. github.com - Behavior changed
A * route pattern is now a greedy catch-all that spans segments; use :name to match exactly one segment. github.com - Behavior changed
app.use
Middleware and route rules with a * pattern now apply below the prefix at any depth; use :id to match one segment. github.com - Behavior changed
defineValidatedHandler
Query validators now get string or string array values, which can break validators that expected a single string. github.com - Behavior changed
mount
Paths with an empty segment right after a mount base are rejected with 404 instead of being collapsed. github.com - Behavior changed
routeRules
Rule names such as the matched route and default cache rule name now show encoded characters. github.com - Signature changed
InferRouteParams
Optional params and a trailing * or ** are now typed string | undefined, which can break type checks. github.com
h3 2.0.1-rc.32 breaking changes
- Behavior changed
HTTPError.isError
Errors without a status are no longer treated as HTTPError by isError, so check for status-bearing errors in code that relied on the old check. github.com
h3 2.0.1-rc.3 breaking changes
- Behavior changed
Proxy utilities now keep header entries unchanged. Code that depended on the previous header handling may behave differently. github.com - Behavior changed
Prepared headers are no longer merged when a Response is not ok. Check code that relied on them being applied to error responses. github.com
Older versions
3 older versions, each with its first changes. Sign up to see every change
Show 3 older versions
h3 2.0.0-rc.1 breaking changes
- Removed
event._res
The internal event._res property is no longer exposed, so code that reads it will break. github.com - Removed
event.res._headers
The internal event.res._headers property is no longer exposed, so code that reads it will break. github.com
And 1 more in this version.
h3 2.0.0-beta.3 breaking changes
- Behavior changed
app.request
The release marks app.request as a breaking change, so code using it should be reviewed against the new behavior. github.com - Signature changed
EventHandlerWithFetch.fetch
EventHandlerWithFetch.fetch now only accepts req as its argument, so calls passing other arguments must be updated. github.com
And 1 more in this version.
h3 2.0.0-beta.1 breaking changes
- Behavior changed
Handlers and middleware now need to be used explicitly, so code relying on the old implicit behavior must be updated. github.com - Behavior changed
app.routes
App routes and config can no longer be changed once the server has initialized, so code that modifies them after init must move that setup earlier. 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.