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

reactivando / use-pubsub-js / 28134304037
100%
master: 80%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 24 Jun 2026 10:42PM UTC
Jobs 1
Files 6
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

24 Jun 2026 10:41PM UTC coverage: 100.0%. Remained the same
28134304037

push

github

web-flow
perf(pubsub): flatten the publish snapshot to one array (#89)

Replace the array-of-arrays snapshot (one array per hierarchy level) with a
single flat array built by direct push. Cuts allocations from O(levels) arrays
to one per publish (most impactful for hierarchical topics) and flattens the
delivery loop. Delivery order is unchanged — exact topic first, then ancestors,
subscription order within each — and is guarded by the existing order tests
(mutation-verified: reversing the snapshot fails 4 order tests).

No API or behavior change. The stable-debounce and useMemo-return ideas from the
perf audit were deliberately left out: the former subtly changes the
isImmediate+automatic rapid-message behavior, the latter touches hook return
identity — not worth the tiny allocation savings.

125 tests, 100% coverage, lint clean, e2e 12/12.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

31 of 31 branches covered (100.0%)

Branch coverage included in aggregate %.

9 of 9 new or added lines in 1 file covered. (100.0%)

210 of 210 relevant lines covered (100.0%)

36.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28134304037.1 24 Jun 2026 10:41PM UTC 6
100.0
GitHub Action Run
Source Files on build 28134304037
  • Tree
  • List 6
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28134304037
  • b4d9d768 on github
  • Prev Build on main (#28134131988)
  • Next Build on main (#28134670410)
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