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

stores-com / petty-cache
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: v4.0.1
DEFAULT BRANCH: main
Repo Added 12 Feb 2026 10:19PM UTC
Files 1
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

LAST BUILD ON BRANCH fix-double-callback
branch: fix-double-callback
CHANGE BRANCH
x
Reset
  • fix-double-callback
  • document-v4-breaking-change
  • feat/debounce
  • feat/throttle
  • fetch-promise-support
  • main
  • v3.7.0
  • v4.0.1
  • v5.0.0

05 Aug 2026 08:05PM UTC coverage: 100.0%. Remained the same
31042427680

Pull #73

github

freshlogic
Invoke callbacks exactly once, outside of the promise chain

The callback bridge was executor().then(result => callback(null, result)).catch(callback),
so a callback that threw was caught by its own .catch and invoked a second time
with the error it had just thrown, while the original throw was swallowed
entirely. Bridge through process.nextTick instead, matching util.callbackify:
the callback is invoked exactly once, and a throw from within it surfaces as an
uncaught exception rather than rejecting a promise nobody owns.

Applies to all 17 callback-style call sites. The shape first appeared in 3.6.0
at 6 sites and grew to 9 in 3.7.0; 4.0.0 extended callback support to the rest
of the API and took the bug with it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Pull Request #73: Invoke callbacks exactly once, outside of the promise chain

302 of 302 branches covered (100.0%)

Branch coverage included in aggregate %.

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

1118 of 1118 relevant lines covered (100.0%)

60.04 hits per line

Relevant lines Covered
Build:
Build:
1118 RELEVANT LINES 1118 COVERED LINES
60.04 HITS PER LINE
Source Files on fix-double-callback
  • Tree
  • List 1
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
31042427680 fix-double-callback Invoke callbacks exactly once, outside of the promise chain The callback bridge was executor().then(result => callback(null, result)).catch(callback), so a callback that threw was caught by its own .catch and invoked a second time with the error ... Pull #73 05 Aug 2026 08:05PM UTC freshlogic github
100.0
See All Builds (67)
  • Repo on GitHub
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