unstale

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 init

@unstale/cli on npm

bcryptjs 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.

    3.0.0release notes

  • The project exports an ECMAScript module by default, with a UMD fallback.

    3.0.0release notes

New APIs and options 1

  • Adds a helper to check for password input length.

    3.0.0release notes

Tooling 1

  • The package now ships with types, enabling TypeScript support.

    3.0.0release notes

Fixes and other changes 1

  • Async versions now always yield to the event loop before nextTick.

    3.0.3release notes