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

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

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 24 Jun 2026 05:21PM 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

24 Jun 2026 05:20PM UTC coverage: 100.0%. Remained the same
28116701717

push

github

web-flow
feat(v2-M2): swap the hooks to the internal pub/sub module (zero runtime deps) (#72)

Wires usePublish/useSubscribe/index to the internal `../pubsub` module and
removes pubsub-js from runtime dependencies (kept as a devDependency for the
parity test). The package now has ZERO runtime dependencies.

- hooks import { PubSub } from '../pubsub'; internalHandler widened to receive
  the original token (string | symbol), so the `as TokenType` cast is now
  truthful and symbol subscribers get the real symbol.
- useMemo both hook return objects (R3 / 08-V3) — stable identity prevents an
  exhaustive-deps infinite-loop footgun for consumers who depend on the return.
- spec oracles repointed from pubsub-js to ../pubsub (same singleton the hooks
  use); the symbol-identity contract test is now active (no longer it.todo) and
  passes against the identity-keyed module.
- example/src/service/publish.ts now imports { PubSub } from 'use-pubsub-js'
  (08-V1) and a new ci.yml step builds the library + example so a broken example
  blocks merge.

All 105 tests pass against the internal module (behavior equivalence with the
prior pubsub-js backend), 100% coverage, lint/tsc/build/e2e green, audit clean,
publint clean, attw all-green. `Message` stays `any` here; tightened to
`unknown` in M4.

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

25 of 25 branches covered (100.0%)

Branch coverage included in aggregate %.

4 of 4 new or added lines in 2 files covered. (100.0%)

158 of 158 relevant lines covered (100.0%)

30.16 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28116701717.1 24 Jun 2026 05:21PM UTC 4
100.0
GitHub Action Run
Source Files on build 28116701717
  • Tree
  • List 4
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28116701717
  • b85f121c on github
  • Prev Build on main (#28116121924)
  • Next Build on main (#28117362938)
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