docs(changelog): say how to migrate off the two new boot failures (CARD-22)
CI / dco (pull_request) Successful in 4s
CI / runtimes (bun) (pull_request) Successful in 19s
CI / build (pull_request) Successful in 29s
CI / runtimes (edge) (pull_request) Successful in 18s
CI / runtimes (deno) (pull_request) Successful in 32s

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 <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-10-24 14:50:05 -05:00
1 parent 9de0027ddc
commit f494fc283d
1 file changed
+9
+9
View File
@@ -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