---
title: "bcryptjs 3.0.0 Breaking Changes on npm | Since.dev"
description: "What each bcryptjs release removed, renamed or changed: 8 breaking changes in 1 version on npm, each with its source."
canonical_url: https://since.dev/packages/npm/bcryptjs
last_updated: 2026-12-04
---

# 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

Latest version `3.0.3`, released November 2, 2025. 

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

## bcryptjs 3.0.0 breaking changes

bcryptjs 3.0.0, released February 13, 2025: 8 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](https://github.com/dcodeIO/bcrypt.js/releases/tag/v3.0.0)
- **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](https://github.com/dcodeIO/bcrypt.js/releases/tag/v3.0.0)
- **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](https://www.npmjs.com/package/bcryptjs/v/3.0.0)
- **Signature changed** `compareSync`  

Was function compareSync(s: string, hash: string): boolean; now function compareSync(password: string, hash: string): boolean. [npmjs.com](https://www.npmjs.com/package/bcryptjs/v/3.0.0)
- **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](https://www.npmjs.com/package/bcryptjs/v/3.0.0)
- **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](https://www.npmjs.com/package/bcryptjs/v/3.0.0)
- **Signature changed** `hashSync`  

Was function hashSync(s: string, salt?: number | string): string; now function hashSync(password: string, salt?: number | string): string. [npmjs.com](https://www.npmjs.com/package/bcryptjs/v/3.0.0)
- **Signature changed** `setRandomFallback`  

Was function setRandomFallback(random: (random: number) => number\[\]): void; now function setRandomFallback(random: RandomFallback): void. [npmjs.com](https://www.npmjs.com/package/bcryptjs/v/3.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
