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
On this page
Latest version 1.0.0, released October 3, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
rou3 0.12.0 breaking changes
- Behavior changed
The path /a// no longer matches /a/:x*. Constrain the capture or accept the new fall-through route. github.com - Behavior changed
A raw tab, LF or CR in a pattern now throws. Write %09, %0A or %0D instead. github.com - Behavior changed
`.` and `..` segments in patterns are resolved like `new URL()` does. Escape the dots to match a literal `..` segment. github.com - Behavior changed
A route may hold only one of `*`, `**`, `:x+`, `:x*`, `(.*)` or `:x(.*)`. Routes with more than one now throw when added. github.com - Behavior changed
`{/:a}?/b` no longer registers `//b`. Text right after a leading `{/…}?` now throws. github.com - Behavior changed
A constraint character class containing `--` or `&&` now throws. Escape those characters for literal use. github.com - 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 - Behavior changed
`(.*)` and `:name(.*)` now match across segments. For a single-segment value use `:p` or `:p([^\x2f]*)`. github.com - 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 - 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 - Behavior changed
`:name+`, `:name*` and `**:name` need a value in each segment they take. Use `*`, `**` or `:name(.*)` to accept empty segments. github.com - 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 - Behavior changed
compareRoutes
Comparing /a/* with /a/** now returns "equal" instead of "subset". github.com - Behavior changed
InferRouteParams
Trailing whole-segment wildcards are typed string | undefined, and the ** key is typed string | undefined with a deprecated _ key. github.com - Behavior changed
normalize
With normalize: true, a trailing . or .. keeps its trailing slash, so /a//. no longer matches /a. github.com - 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 - Behavior changed
removeRoute
removeRoute now resolves . and .. segments the same way addRoute does, so removeRoute with /docs/../api removes /api. github.com - Behavior changed
routeNodeKeys
A trailing * now yields a ** key, and param segments are keyed _0, _1 and so on. github.com - 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 - 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 - 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 - 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
rou3 0.11.0 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 - 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 - Behavior changed
package.json now declares Node.js 20.19.0 as the minimum engine. Upgrade Node.js before upgrading rou3. github.com - 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 - 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 - 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 - 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 - 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 - 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 - Behavior changed
findOverlappingRoutes
A route with optional parts is reported once, and distinct routes sharing a data object are reported separately. github.com
And 8 more in this version. Sign up to see every change
rou3 0.10.0 breaking changes
- Behavior changed
addRoute
Routes with more than one ** wildcard, such as /**/** or /a/:x+/b/:y+, now throw when added. github.com - 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 - Behavior changed
InferRouteParams
Optional params and trailing bare wildcards are typed as string | undefined; handle undefined where a string was assumed. github.com - Behavior changed
normalize
With normalize enabled, a .. that would go above the root is dropped instead of kept as a literal segment. github.com - 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 - 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 - 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
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.