From f494fc283dd3909c7c67423c1050024cd8542909 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sat, 24 Oct 2026 14:48:54 -0500 Subject: [PATCH] docs(changelog): say how to migrate off the two new boot failures (CARD-22) Two Breaking entries in [Unreleased] described a new boot failure without the step that fixes it. Found in the second pre-freeze review. - #127, constrained route params that tie: make the constraints disjoint, keep one route and branch in the handler, or give one its own static segment. A plain param reported unreachable never served a request, so delete it or narrow the constraint that shadows it. For a WebSocket pair, declare the constrained route first. - #126, reserved `/__mesh__/control`: move the route to another path. Nothing replaces the reserved one, which never reached a route on Deno, Bun or the edge. Signed-off-by: Diego Resendez --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4467cd..b15cdb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -59,6 +59,13 @@ npm treats versions as semver and semver forbids leading zeros. against each other. A local route against a remote one keeps the deliberate local override and its warning. + To fix a pair that now fails, make the router's choice explicit. Make the two constraints + disjoint (`\d{1,3}` and `\d{4,}`), keep one route and branch inside its handler, or move one + under a static segment of its own (`/u/:id(\d+)` and `/u/short/:n(\d{1,3})`). A plain param + reported as unreachable never answered a request: delete it, or narrow the constraint that + shadows it so some segments are left over. For a WebSocket pair, declare the constrained route + first. + The check is exact. The safe subset makes every constraint a sequence of (character set, min, max) blocks, and the check walks the product of two such sequences. It costs O(|A|·|B|·(|A|+|B|)·K) per pair, with K ≤ 2048. Measured at under 0.1 ms for `\d{0,2048}` @@ -92,6 +99,8 @@ npm treats versions as semver and semver forbids leading zeros. always refused it, so the same route worked on one runtime and not the others. A pattern whose first segment is not the literal `__mesh__` (`/:org/:repo`, `/:rest*`) still boots; the reserved path is answered ahead of the route table on every runtime, so such a route never sees it. + To migrate, move the route to another path, for example `/mesh/control`. Nothing replaces + `/__mesh__/control` itself: it never reached the route on Deno, Bun or the edge. An upgrade to `/__mesh__/control` on an app with no control channel is now refused identically everywhere: the Node listener accepts it and closes `1008` with -- 2.54.1