bcryptjs breaking changes
bcryptjs 3.0.0 (February 13, 2025) is its newest release with breaking changes, 8 of them. The first: Package now exports an ES module by default with a UMD fallback in bcryptjs 3.0.0. Every breaking API change we have recorded in bcryptjs on npm: 8 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.0.3, released November 2, 2025.
Packages on npm run on Node.js. Node.js end of life dates.
bcryptjs 3.0.0 breaking changes
- Behavior changed
The package is now published as an ECMAScript module by default, with a UMD fallback, and ships with types. Code that loads it with require or a bundler may need to change how it imports the package. github.com - Default changed
Newly generated hashes now use the 2b variant instead of 2a. Existing hashes still work, but tests that compare freshly generated hashes literally may need updating. github.com - Signature changed
compare
Was function compare(s: string, hash: string): Promise<boolean> function compare(s: string, hash: string, callback?: (err: Error | null, success: boolean) => void, progressCallback?: (percent: number) => void): void; now function... npmjs.com - Signature changed
compareSync
Was function compareSync(s: string, hash: string): boolean; now function compareSync(password: string, hash: string): boolean. npmjs.com - Signature changed
genSalt
Was function genSalt(callback: (err: Error | null, salt: string) => void): void function genSalt(rounds: number, callback: (err: Error | null, salt: string) => void): void; now function genSalt(callback: Callback<string>): void function... npmjs.com - Signature changed
hash
Was function hash(s: string, salt: number | string): Promise<string> function hash(s: string, salt: number | string, callback?: (err: Error | null, hash: string) => void, progressCallback?: (percent: number) => void): void; now function... npmjs.com - Signature changed
hashSync
Was function hashSync(s: string, salt?: number | string): string; now function hashSync(password: string, salt?: number | string): string. npmjs.com - Signature changed
setRandomFallback
Was function setRandomFallback(random: (random: number) => number[]): void; now function setRandomFallback(random: RandomFallback): void. npmjs.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.