---
title: "argon2 0.45.1 Breaking Changes on npm | Since.dev"
description: "What each argon2 release removed, renamed or changed: 11 breaking changes in 2 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/argon2
last_updated: 2026-12-04
---

# argon2 breaking changes

argon2 0.45.1 (July 21, 2026) is its newest release with breaking changes, 3 of them. The first: Signature changed hash. Every breaking API change we have recorded in argon2 on npm: 11 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.45.2`, released November 3, 2026. [Source repository](https://github.com/ranisalt/node-argon2)

Its 0.45.0 release drops Node.js 18 and [20](https://since.dev/calendar/nodejs/20.md). [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [0.45.0](#v-0-45-0) to [0.45.1](#v-0-45-1): 3 breaking changes in 1 version.

## argon2 0.45.1 breaking changes

argon2 0.45.1, released July 21, 2026: 3 breaking changes.

- **Signature changed** `hash`  

Was const hash: (password: Buffer | string, options?: HashOptions & {raw?: boolean;}) => Promise\<any>; now function hash(password: Buffer | string, options: HashOptions & {raw: true;}): Promise\<Buffer> function hash(password: Buffer |... [npmjs.com](https://www.npmjs.com/package/argon2/v/0.45.1)
- **Signature changed** `needsRehash`  

Was const needsRehash: (digest: string, options?: {timeCost?: number; memoryCost?: number; parallelism?: number; version?: number;}) => boolean; now function needsRehash(digest: string, options?: {timeCost?: number; memoryCost?: number... [npmjs.com](https://www.npmjs.com/package/argon2/v/0.45.1)
- **Signature changed** `verify`  

Was const verify: (digest: string, password: Buffer | string, options?: VerifyOptions) => Promise\<boolean>; now function verify(digest: string, password: Buffer | string, options?: VerifyOptions): Promise\<boolean>. [npmjs.com](https://www.npmjs.com/package/argon2/v/0.45.1)

## argon2 0.45.0 breaking changes

argon2 0.45.0, released July 18, 2026: 8 breaking changes.

- **Removed**  

Node 18 and 20 are no longer supported. They probably still work but are no longer tested, so move to a newer Node version. [github.com](https://github.com/ranisalt/node-argon2/releases/tag/v0.45.0)
- **Removed** `Options`  

Options was removed in argon2 0.45.0 [npmjs.com](https://www.npmjs.com/package/argon2/v/0.45.0)
- **Signature changed** `argon2d`  

Was const argon2d: 0; now const argon2d. [npmjs.com](https://www.npmjs.com/package/argon2/v/0.45.0)
- **Signature changed** `argon2i`  

Was const argon2i: 1; now const argon2i. [npmjs.com](https://www.npmjs.com/package/argon2/v/0.45.0)
- **Signature changed** `argon2id`  

Was const argon2id: 2; now const argon2id. [npmjs.com](https://www.npmjs.com/package/argon2/v/0.45.0)
- **Signature changed** `hash`  

Was function hash(password: Buffer | string, options: Options & {raw: true;}): Promise\<Buffer> function hash(password: Buffer | string, options?: (Options & {raw?: boolean;}) | undefined): Promise\<string>; now const hash: (password: Buffer... [npmjs.com](https://www.npmjs.com/package/argon2/v/0.45.0)
- **Signature changed** `needsRehash`  

Was function needsRehash(digest: string, options?: {timeCost?: number | undefined; memoryCost?: number | undefined; parallelism?: number | undefined; version?: number | undefined;} | undefined): boolean; now const needsRehash: (digest... [npmjs.com](https://www.npmjs.com/package/argon2/v/0.45.0)
- **Signature changed** `verify`  

Was function verify(digest: string, password: Buffer | string, options?: {secret?: Buffer | undefined;} | undefined): Promise\<boolean>; now const verify: (digest: string, password: Buffer | string, options?: VerifyOptions) =>... [npmjs.com](https://www.npmjs.com/package/argon2/v/0.45.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.
