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

medplum / medplum / 21734871738
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: noah/schedule-page-refactor
DEFAULT BRANCH: main
Ran 06 Feb 2026 01:16AM UTC
Jobs 1
Files 721
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

06 Feb 2026 01:09AM UTC coverage: 92.311% (-0.002%) from 92.313%
21734871738

push

github

web-flow
perf(server): switch from bcryptjs to native bcrypt for improved performance (#8377)

Replace the pure JavaScript bcryptjs package with the native bcrypt package
to prevent event loop blocking during password hashing operations.

bcryptjs performs bcrypt operations synchronously on the main thread using
setImmediate/nextTick, which blocks the event loop for ~100-300ms per hash
(depending on cost factor). Under sustained authentication load, this causes
cascading delays as requests queue behind blocked operations.

Native bcrypt offloads hash computation to the libuv thread pool via N-API,
keeping the event loop responsive during password verification.

This addresses the performance degradation reported in #8338.

Changes:
- Replace bcryptjs@3.0.3 with bcrypt@6.0.0 in server package
- Update imports in auth/utils.ts, auth/changepassword.ts, oauth/utils.ts

The APIs are identical - this is a drop-in replacement with no code changes
required beyond the import statements.

Note: bcrypt v6.0.0 includes prebuilt binaries for common platforms
(Windows/Linux/macOS, x64/arm64), minimizing native compilation requirements.

Signed-off-by: Wihan <wihanvh@gmail.com>
Co-authored-by: Wihan <wihanvh@gmail.com>

16971 of 19238 branches covered (88.22%)

Branch coverage included in aggregate %.

31001 of 32730 relevant lines covered (94.72%)

13846.33 hits per line

Jobs
ID Job ID Ran Files Coverage
1 21734871738.1 06 Feb 2026 01:16AM UTC 721
92.31
GitHub Action Run
Source Files on build 21734871738
  • Tree
  • List 721
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 81b1111e on github
  • Prev Build on gh-readonly-queue/main/pr-8376-59f4d4c621e83c4683aba5f6d7aae87dc97df93b (#21730148493)
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