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

tinyhttp / tinyhttp / 21588683619
99%

Build:
DEFAULT BRANCH: master
Ran 02 Feb 2026 11:42AM UTC
Jobs 3
Files 44
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

02 Feb 2026 11:41AM UTC coverage: 98.85% (-0.03%) from 98.878%
21588683619

push

github

web-flow
perf: optimize hot path performance in request handling (#485)

* perf: optimize hot path performance in request handling

- Pre-compile regex at middleware registration time instead of lazily on first request
- Replace object spread with Object.assign for params merging to avoid allocations
- Use arrow functions instead of .bind() for fresh/stale getters
- Make stale property a lazy getter instead of eagerly evaluating
- Remove duplicate host string indexOf check

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* perf: reduce allocations in request handler hot path

- Extract HEAD handler middleware to shared module-level constant
- Inline method/exclusion filtering into #find() to avoid intermediate array
- Remove currying from handle() to avoid creating new function per middleware call

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test: add explicit test for middleware exclusion in #find()

Adds a test verifying that middleware is only executed once even when
it would match the URL multiple times during request processing. This
exercises the exclude.includes(m) branch in the #find() method.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test: add test for Accepts instance caching in extend.ts

Adds a test that calls multiple accepts methods (accepts, acceptsEncodings,
acceptsCharsets, acceptsLanguages) on the same request to exercise the
lazy caching branch in getAcceptsInstance().

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* chore: changeset

* test: add coverage tests for pushMiddleware and normalizeKeys

Add tests for precompiled regex usage, static routes with false keys,
and wildcard key normalization to improve router branch coverage.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: add c8 ignore for V8 coverage quirk and use random port in test

- Add c8 ignore comment for ?? operator branch that V8 coverage
  doesn't track correctly despite being tested
- Remove hardcoded po... (continued)

997 of 1019 branches covered (97.84%)

Branch coverage included in aggregate %.

42 of 44 new or added lines in 3 files covered. (95.45%)

1323 of 1328 relevant lines covered (99.62%)

262.83 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
97.34
0.01% packages/app/src/app.ts
Jobs
ID Job ID Ran Files Coverage
1 21588683619.1 02 Feb 2026 11:42AM UTC 44
98.85
GitHub Action Run
2 21588683619.2 02 Feb 2026 11:42AM UTC 44
98.85
GitHub Action Run
3 21588683619.3 02 Feb 2026 11:42AM UTC 44
98.85
GitHub Action Run
Source Files on build 21588683619
  • Tree
  • List 44
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 7221030d on github
  • Prev Build on master (#21562905037)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc