• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pillarjs / router / 39983648950
99%

Build:
DEFAULT BRANCH: master
Ran 23 Oct 2026 04:05PM UTC
Jobs 1
Files 4
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Oct 2026 04:04PM UTC coverage: 98.982% (-0.2%) from 99.18%
39983648950

push

github

web-flow
feat: expose the matched route pattern on the tracing context (#207)

* docs: document reading the route pattern from the tracing context

* feat: expose the matched route pattern on the tracing context

* fix: keep traced route patterns scoped to each request

Layer instances are shared across requests, so reading a matched pattern
after asynchronous parameter processing can pick up another request's
pattern or lose it after a non-match. Nested routers can also leave their
pattern on handlers that resume in the outer route.

Let Layer.match optionally return the registered pattern while preserving
its existing boolean behavior. Capture the pattern on req before running
parameter callbacks, and restore the parent value alongside the other
router state when a nested router returns. Tracing then reads from one
request-local source instead of mutable state on a shared Layer.

Pattern capture and restoration use synchronous property access and the
existing restoration callback. Route.dispatch and handler signatures stay
unchanged, with no additional asynchronous context mechanism or per-layer
callback allocation.

Cover concurrent requests, nested router returns and errors, parameter
callbacks that invoke routers, and string, array, RegExp and empty patterns.

Validation: 768 tests passing, npm run lint, and npm run test-types.

---------

Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>

15 of 15 new or added lines in 3 files covered. (100.0%)

1 existing line in 1 file now uncovered.

486 of 491 relevant lines covered (98.98%)

46065.97 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
98.5
-0.75% lib/layer.js
Jobs
ID Job ID Ran Files Coverage
1 39983648950.1 23 Oct 2026 04:05PM UTC 4
98.98
GitHub Action Run
Source Files on build 39983648950
  • Tree
  • List 4
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39983648950
  • cee833eb on github
  • Prev Build on master (#39791069833)
  • Next Build on master (#40007767930)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc