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
On this page
Latest version 0.45.2, released November 3, 2026. Source repository
Its 0.45.0 release drops Node.js 18 and 20. Node.js end of life dates.
argon2 0.45.1 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 - 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 - 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
argon2 0.45.0 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 - Removed
Options
Options was removed in argon2 0.45.0 npmjs.com - Signature changed
argon2d
Was const argon2d: 0; now const argon2d. npmjs.com - Signature changed
argon2i
Was const argon2i: 1; now const argon2i. npmjs.com - Signature changed
argon2id
Was const argon2id: 2; now const argon2id. npmjs.com - 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 - 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 - 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
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.