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

# rou3 breaking changes

rou3 0.12.0 (October 2, 2026) is its newest release with breaking changes, 22 of them. The first: A :x\* param no longer matches an empty segment in rou3 0.12.0. Every breaking API change we have recorded in rou3 on npm: 47 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

Latest version `1.0.0`, released October 3, 2026. [Source repository](https://github.com/h3js/rou3)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [0.10.0](#v-0-10-0) to [0.12.0](#v-0-12-0): 40 breaking changes in 2 versions.

## rou3 0.12.0 breaking changes

rou3 0.12.0, released October 2, 2026: 22 breaking changes.

- **Behavior changed**  

The path /a// no longer matches /a/:x\*. Constrain the capture or accept the new fall-through route. [github.com](https://github.com/h3js/rou3/commit/1888ac9964b8d038d430e35d28393873dab63298)
- **Behavior changed**  

A raw tab, LF or CR in a pattern now throws. Write %09, %0A or %0D instead. [github.com](https://github.com/h3js/rou3/commit/0215ea48790939830454660162a09da88d6b4389)
- **Behavior changed**  

\`.\` and \`..\` segments in patterns are resolved like \`new URL()\` does. Escape the dots to match a literal \`..\` segment. [github.com](https://github.com/h3js/rou3/commit/e88eced5184c28d472e0b7bc345ea0067a6dfa7a)
- **Behavior changed**  

A route may hold only one of \`\*\`, \`\*\*\`, \`:x+\`, \`:x\*\`, \`(.\*)\` or \`:x(.\*)\`. Routes with more than one now throw when added. [github.com](https://github.com/h3js/rou3/releases/tag/v0.12.0)
- **Behavior changed**  

\`{/:a}?/b\` no longer registers \`//b\`. Text right after a leading \`{/…}?\` now throws. [github.com](https://github.com/h3js/rou3/commit/cccc995cbd2a56a163b16de9c162f16306c18678)
- **Behavior changed**  

A constraint character class containing \`--\` or \`&&\` now throws. Escape those characters for literal use. [github.com](https://github.com/h3js/rou3/commit/de5beadd26d1bbf39ca3e829495975a6b5295f44)
- **Behavior changed**  

Pattern literals are encoded once when added. Look up routes with the raw encoded pathname and stop calling decodeURI before findRoute. [github.com](https://github.com/h3js/rou3/releases/tag/v0.12.0)
- **Behavior changed**  

\`(.\*)\` and \`:name(.\*)\` now match across segments. For a single-segment value use \`:p\` or \`:p(\[^\\x2f\]\*)\`. [github.com](https://github.com/h3js/rou3/releases/tag/v0.12.0)
- **Behavior changed**  

A bare \`\*\*\` is now keyed "0", "1" and so on, and is left out when it matches zero segments. Read \`params\["0"\] ?? ""\` or name the capture. [github.com](https://github.com/h3js/rou3/releases/tag/v0.12.0)
- **Behavior changed**  

A \`\*\` used to match one segment and now matches across \`/\`. Rewrite single-segment wildcards with a named param such as \`:id?\`. [github.com](https://github.com/h3js/rou3/releases/tag/v0.12.0)
- **Behavior changed**  

\`:name+\`, \`:name\*\` and \`\*\*:name\` need a value in each segment they take. Use \`\*\`, \`\*\*\` or \`:name(.\*)\` to accept empty segments. [github.com](https://github.com/h3js/rou3/releases/tag/v0.12.0)
- **Behavior changed**  

Captures before a \`?\` param in the same segment now take more of the path, so the route with the optional param may no longer win. Constrain the earlier capture if you need the old split. [github.com](https://github.com/h3js/rou3/commit/cd01ddb51bef25fc09c648fad04bc43ab75b7eb8)
- **Behavior changed** `compareRoutes`  

Comparing /a/\* with /a/\*\* now returns "equal" instead of "subset". [github.com](https://github.com/h3js/rou3/releases/tag/v0.12.0)
- **Behavior changed** `InferRouteParams`  

Trailing whole-segment wildcards are typed string | undefined, and the \*\* key is typed string | undefined with a deprecated \_ key. [github.com](https://github.com/h3js/rou3/releases/tag/v0.12.0)
- **Behavior changed** `normalize`  

With normalize: true, a trailing . or .. keeps its trailing slash, so /a//. no longer matches /a. [github.com](https://github.com/h3js/rou3/releases/tag/v0.12.0)
- **Behavior changed** `regExpToRoute`  

regExpToRoute now throws on a literal character a route would encode and on raw tab, LF, CR, \`--\` or \`&&\` inside a constraint class. [github.com](https://github.com/h3js/rou3/releases/tag/v0.12.0)
- **Behavior changed** `removeRoute`  

removeRoute now resolves . and .. segments the same way addRoute does, so removeRoute with /docs/../api removes /api. [github.com](https://github.com/h3js/rou3/releases/tag/v0.12.0)
- **Behavior changed** `routeNodeKeys`  

A trailing \* now yields a \*\* key, and param segments are keyed \_0, \_1 and so on. [github.com](https://github.com/h3js/rou3/releases/tag/v0.12.0)
- **Behavior changed** `routeToRegExp`  

Literal text is percent-encoded, \*\* groups are named \_0, \_1 and so on, and some optional groups now throw on Node 20 and 22. [github.com](https://github.com/h3js/rou3/releases/tag/v0.12.0)
- **Signature changed** `compiler:MethodData`  

Was type MethodData\<T = unknown> = {data: T; paramsMap?: ParamsIndexMap; paramsRegexp: RegExp\[\]; route: string; suffix?: \[wildcard: number, length: number\];}; now type MethodData\<T = unknown> = {data: T; paramsMap?: ParamsIndexMap... [npmjs.com](https://www.npmjs.com/package/rou3/v/0.12.0)
- **Signature changed** `compiler:ParamsIndexMap`  

Was type ParamsIndexMap = Array<\[Index: number, name: string | RegExp, optional: boolean, empty?: boolean\]>; now type ParamsIndexMap = Array<\[Index: number, name: string | RegExp, optional: boolean, emptyOrPlain?: boolean, inPlace?... [npmjs.com](https://www.npmjs.com/package/rou3/v/0.12.0)
- **Signature changed** `InferRouteParams`  

Was type InferRouteParams\<TPath extends string> = {\[Param in ExtractParams\<TPath> as Param\[0\]\]: Param\[1\] extends true ? string | undefined : string;} & {\[Key in ExtractWildcards\<StripParams\<TPath>>\]: Key extends... [npmjs.com](https://www.npmjs.com/package/rou3/v/0.12.0)

## rou3 0.11.0 breaking changes

rou3 0.11.0, released September 29, 2026: 18 breaking changes.

- **Behavior changed**  

A :name, :name+ or \*\*:name param now needs a non-empty value. Use a wildcard or a constraint that allows empty if empty segments must match. [github.com](https://github.com/h3js/rou3/releases/tag/v0.11.0)
- **Behavior changed**  

When a segment holds several params, the first one now takes the shortest match. Add a constraint to keep the old split. [github.com](https://github.com/h3js/rou3/releases/tag/v0.11.0)
- **Behavior changed**  

package.json now declares Node.js 20.19.0 as the minimum engine. Upgrade Node.js before upgrading rou3. [github.com](https://github.com/h3js/rou3/releases/tag/v0.11.0)
- **Behavior changed**  

A ? on a param that does not start its segment now affects only that param. Write {…}? to make the whole segment optional. [github.com](https://github.com/h3js/rou3/releases/tag/v0.11.0)
- **Behavior changed**  

A dash is no longer part of a param name, so :year-:month is two params again. Rename params that contain a dash. [github.com](https://github.com/h3js/rou3/releases/tag/v0.11.0)
- **Behavior changed**  

Outside regex constraints, a backslash before any character is a literal of that character. Paths and routes that relied on the backslash being kept need updating. [github.com](https://github.com/h3js/rou3/releases/tag/v0.11.0)
- **Behavior changed**  

Constraints containing look-arounds, anchors, capturing groups, empty groups or (?…) groups now throw. Rewrite them as shown in the migration guide. [github.com](https://github.com/h3js/rou3/releases/tag/v0.11.0)
- **Behavior changed** `addRoute`  

addRoute and routeToRegExp now throw for many previously accepted patterns, such as misplaced quantifiers, dotted names and unescaped ? or braces. Fix patterns the error points to. [github.com](https://github.com/h3js/rou3/releases/tag/v0.11.0)
- **Behavior changed** `compileRouterToString`  

Route data is always serialized with JSON.stringify, and data containing functions, symbols or bigints now throws. Use the serialize option for custom output. [github.com](https://github.com/h3js/rou3/releases/tag/v0.11.0)
- **Behavior changed** `findOverlappingRoutes`  

A route with optional parts is reported once, and distinct routes sharing a data object are reported separately. [github.com](https://github.com/h3js/rou3/releases/tag/v0.11.0)

And 8 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## rou3 0.10.0 breaking changes

rou3 0.10.0, released September 28, 2026: 7 breaking changes.

- **Behavior changed** `addRoute`  

Routes with more than one \*\* wildcard, such as /\*\*/\*\* or /a/:x+/b/:y+, now throw when added. [github.com](https://github.com/h3js/rou3/releases/tag/v0.10.0)
- **Behavior changed** `findRoute`  

Lookup now ignores only one trailing slash; paths with repeated trailing slashes no longer match. Collapse repeated slashes before lookup if needed. [github.com](https://github.com/h3js/rou3/releases/tag/v0.10.0)
- **Behavior changed** `InferRouteParams`  

Optional params and trailing bare wildcards are typed as string | undefined; handle undefined where a string was assumed. [github.com](https://github.com/h3js/rou3/releases/tag/v0.10.0)
- **Behavior changed** `normalize`  

With normalize enabled, a .. that would go above the root is dropped instead of kept as a literal segment. [github.com](https://github.com/h3js/rou3/releases/tag/v0.10.0)
- **Behavior changed** `removeRoute`  

removeRoute no longer removes sibling routes on the same node and method. Call it once for each pattern you registered. [github.com](https://github.com/h3js/rou3/releases/tag/v0.10.0)
- **Behavior changed** `routeToRegExp`  

The generated regex now matches exactly the paths findRoute matches, and text changed for almost every route. Update snapshots and guards. [github.com](https://github.com/h3js/rou3/releases/tag/v0.10.0)
- **Signature changed** `InferRouteParams`  

Was type InferRouteParams\<TPath extends string> = {\[K in ExtractNamedParams\<TPath> | ExtractWildcards\<TPath>\]: string}; now type InferRouteParams\<TPath extends string> = {\[Token in ExtractParamTokens\<TPath> as ParamName\<Token>\]... [npmjs.com](https://www.npmjs.com/package/rou3/v/0.10.0)

## 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.
