1 Commits
Author SHA1 Message Date
chrnx d3e932f24a docs(changelog): say how to migrate off the two new boot failures (CARD-22)
CI / dco (pull_request) Successful in 4s
CI / build (pull_request) Successful in 29s
CI / runtimes (bun) (pull_request) Successful in 31s
CI / runtimes (edge) (pull_request) Successful in 20s
CI / runtimes (deno) (pull_request) Successful in 33s
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>
2026-10-24 14:48:54 -05:00
+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 against each other. A local route against a remote one keeps the deliberate local override and
its warning. 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, 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 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}` 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 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 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. 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 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 everywhere: the Node listener accepts it and closes `1008` with