Skip to content

refactor: keep layer match results local to each request - #216

Open
bjohansebas wants to merge 1 commit into
masterfrom
refactor/request-scoped-matches
Open

bjohansebas wants to merge 1 commit into
masterfrom
refactor/request-scoped-matches

Conversation

@bjohansebas

@bjohansebas bjohansebas commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Return a separate match result instead of writing params, path and keys onto shared layers. This keeps match data local to each request and avoids relying on copying shared fields before asynchronous parameter callbacks yield.

Validation: 834 tests passing, including overlapping requests with frozen layers, plus lint and type checks.

Layers are shared across requests. Return params, path, keys and pattern
from each match instead of storing request data on the layer. This makes
isolation explicit instead of relying on copying shared fields before
asynchronous parameter callbacks yield.

Preserve parameter processing, mounted paths and tracing patterns, and
update the internal Layer types. Cover overlapping requests with frozen
layers, independent results and numeric parameter merging.

Validation: 776 tests passing, npm run lint, npm run test-types.
@bjohansebas
bjohansebas force-pushed the refactor/request-scoped-matches branch from 44c8300 to 7dbff50 Compare October 23, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant