npm / bcryptjs
bcryptjs
What changed in bcryptjs 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
2 breaking1 new APIs and options1 tooling1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initbcryptjs 35 changes
Breaking changes 2
Hash generation now defaults to 2b; existing hashes continue to work, but tests comparing generated hashes literally might need updating.
The project exports an ECMAScript module by default, with a UMD fallback.
New APIs and options 1
Adds a helper to check for password input length.
Tooling 1
The package now ships with types, enabling TypeScript support.
Fixes and other changes 1
Async versions now always yield to the event loop before nextTick.