---
title: "h3 2.0.4 Breaking Changes on npm | Since.dev"
description: "What each h3 release removed, renamed or changed: 38 breaking changes in 9 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/h3
last_updated: 2026-12-04
---

# 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

Latest version `2.0.8`, released October 22, 2026. [Source repository](https://github.com/h3js/h3)

Its 2.0.1 release requires Node.js 20.19 or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [2.0.1](#v-2-0-1) to [2.0.4](#v-2-0-4): 8 breaking changes in 2 versions.

## h3 2.0.4 breaking changes

h3 2.0.4, released October 18, 2026: 1 breaking change.

- **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](https://github.com/h3js/h3/releases/tag/v2.0.4)

## h3 2.0.2 breaking changes

h3 2.0.2, released October 7, 2026: 7 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](https://www.npmjs.com/package/h3/v/2.0.2)
- **Signature changed** `RouteDefinition`  

Was interface RouteDefinition; now interface RouteDefinition\<RequestBody extends StandardSchemaV1 = StandardSchemaV1, RequestHeaders extends StandardSchemaV1 = StandardSchemaV1, RequestQuery extends StandardSchemaV1 = StandardSchemaV1>. [npmjs.com](https://www.npmjs.com/package/h3/v/2.0.2)
- **Signature changed** `RouteDefinition.handler`  

Was handler: EventHandler; now handler: EventHandler\<RouteRequest\<RequestBody, RequestHeaders, RequestQuery>>. [npmjs.com](https://www.npmjs.com/package/h3/v/2.0.2)
- **Signature changed** `RouteDefinition.validate`  

Was validate?: {body?: StandardSchemaV1; headers?: StandardSchemaV1; query?: StandardSchemaV1;}; now validate?: {body?: RequestBody; headers?: RequestHeaders; query?: RequestQuery; onError?: OnValidateError;}. [npmjs.com](https://www.npmjs.com/package/h3/v/2.0.2)
- **Signature changed** `RouteDefinition.validate.body`  

Was body?: StandardSchemaV1; now body?: RequestBody. [npmjs.com](https://www.npmjs.com/package/h3/v/2.0.2)
- **Signature changed** `RouteDefinition.validate.headers`  

Was headers?: StandardSchemaV1; now headers?: RequestHeaders. [npmjs.com](https://www.npmjs.com/package/h3/v/2.0.2)
- **Signature changed** `RouteDefinition.validate.query`  

Was query?: StandardSchemaV1; now query?: RequestQuery. [npmjs.com](https://www.npmjs.com/package/h3/v/2.0.2)

## h3 2.0.1 breaking changes

h3 2.0.1, released October 3, 2026: 9 breaking changes.

- **Removed** `autoclose`  

The autoclose option is gone, so remove it from code that passes it. [github.com](https://github.com/h3js/h3/commit/dff245a3b3c02b069d8207aed840bfe375293ae3)
- **Behavior changed**  

Requests need a JSON content-type, a valid origin and smaller batches are enforced. [github.com](https://github.com/h3js/h3/commit/72d8e05fb8a9a0eb6941d0c6f11b69b543452260)
- **Behavior changed**  

The proxy now sets forwarding headers itself instead of trusting client-supplied x-forwarded values. [github.com](https://github.com/h3js/h3/commit/0c7429e8b740d6ee9d54b0a4f8436b894eb83d21)
- **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](https://github.com/h3js/h3/commit/2b59a3aa1c9d5b925ce9a4c5ec8b53b4c1647b38)
- **Behavior changed**  

Percent-encoded pathname characters are decoded differently, which can change route matching. [github.com](https://github.com/h3js/h3/commit/0d9c399d4f2b4e7d8f62f4325cfb7931ee4c7139)
- **Behavior changed** `html`  

Interpolated values in the html tagged template are now escaped, so pre-escaped or raw HTML output changes. [github.com](https://github.com/h3js/h3/commit/8ed97e44f7bdf2183b822367daa49be8838d643d)
- **Default changed**  

Requests no longer trust x-forwarded-proto by default; enable it explicitly if you rely on it. [github.com](https://github.com/h3js/h3/commit/a173e994e5fd192f8e6199728394147f43defa23)
- **Default changed**  

Fingerprints now use SHA-256 by default and components are disambiguated, so stored fingerprints will differ. [github.com](https://github.com/h3js/h3/commit/51e68cd94c4edb8b856a5a2cbafe3f2eb3e09317)
- **Configuration changed**  

Running on Node.js now needs version 20.19 or newer. [github.com](https://github.com/h3js/h3/releases/tag/v2.0.1)

## h3 2.0.1-rc.33 breaking changes

h3 2.0.1-rc.33, released October 3, 2026: 10 breaking changes.

- **Behavior changed**  

A request with two trailing slashes no longer matches a route that ends in one slash. [github.com](https://github.com/h3js/h3/releases/tag/v2.0.1-rc.33)
- **Behavior changed**  

When both match, the more specific route wins, which can change which handler serves a request. [github.com](https://github.com/h3js/h3/releases/tag/v2.0.1-rc.33)
- **Behavior changed**  

Patterns that were accepted with a different meaning now throw an error at registration; fix those route patterns. [github.com](https://github.com/h3js/h3/releases/tag/v2.0.1-rc.33)
- **Behavior changed**  

A hyphen now ends a param name, so rename params such as :user-id to :userId. [github.com](https://github.com/h3js/h3/releases/tag/v2.0.1-rc.33)
- **Behavior changed**  

A \* route pattern is now a greedy catch-all that spans segments; use :name to match exactly one segment. [github.com](https://github.com/h3js/h3/releases/tag/v2.0.1-rc.33)
- **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](https://github.com/h3js/h3/releases/tag/v2.0.1-rc.33)
- **Behavior changed** `defineValidatedHandler`  

Query validators now get string or string array values, which can break validators that expected a single string. [github.com](https://github.com/h3js/h3/releases/tag/v2.0.1-rc.33)
- **Behavior changed** `mount`  

Paths with an empty segment right after a mount base are rejected with 404 instead of being collapsed. [github.com](https://github.com/h3js/h3/releases/tag/v2.0.1-rc.33)
- **Behavior changed** `routeRules`  

Rule names such as the matched route and default cache rule name now show encoded characters. [github.com](https://github.com/h3js/h3/releases/tag/v2.0.1-rc.33)
- **Signature changed** `InferRouteParams`  

Optional params and a trailing \* or \*\* are now typed string | undefined, which can break type checks. [github.com](https://github.com/h3js/h3/releases/tag/v2.0.1-rc.33)

## h3 2.0.1-rc.32 breaking changes

h3 2.0.1-rc.32, released October 3, 2026: 1 breaking change.

- **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](https://github.com/h3js/h3/releases/tag/v2.0.1-rc.32)

## h3 2.0.1-rc.3 breaking changes

h3 2.0.1-rc.3, released October 3, 2026: 2 breaking changes.

- **Behavior changed**  

Proxy utilities now keep header entries unchanged. Code that depended on the previous header handling may behave differently. [github.com](https://github.com/h3js/h3/releases/tag/v2.0.1-rc.3)
- **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](https://github.com/h3js/h3/releases/tag/v2.0.1-rc.3)

## Older versions

3 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### h3 2.0.0-rc.1 breaking changes

h3 2.0.0-rc.1, released October 16, 2016: 3 breaking changes.

- **Removed** `event._res`  

The internal event.\_res property is no longer exposed, so code that reads it will break. [github.com](https://github.com/h3js/h3/releases/tag/v2.0.0-rc.1)
- **Removed** `event.res._headers`  

The internal event.res.\_headers property is no longer exposed, so code that reads it will break. [github.com](https://github.com/h3js/h3/releases/tag/v2.0.0-rc.1)

And 1 more in this version.

### h3 2.0.0-beta.3 breaking changes

h3 2.0.0-beta.3, released October 16, 2016: 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](https://github.com/h3js/h3/releases/tag/v2.0.0-beta.3)
- **Signature changed** `EventHandlerWithFetch.fetch`  

EventHandlerWithFetch.fetch now only accepts req as its argument, so calls passing other arguments must be updated. [github.com](https://github.com/h3js/h3/releases/tag/v2.0.0-beta.3)

And 1 more in this version.

### h3 2.0.0-beta.1 breaking changes

h3 2.0.0-beta.1, released October 16, 2016: 2 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](https://github.com/h3js/h3/releases/tag/v2.0.0-beta.1)
- **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](https://github.com/h3js/h3/releases/tag/v2.0.0-beta.1)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
