Skip to content

fix(deps): update dependency bcryptjs to v3#102

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/bcryptjs-3.x
Open

fix(deps): update dependency bcryptjs to v3#102
renovate[bot] wants to merge 1 commit intomainfrom
renovate/bcryptjs-3.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Sep 29, 2025

This PR contains the following updates:

Package Change Age Confidence
bcryptjs ^2.4.3^3.0.3 age confidence
@​types/bcryptjs ^2.4.6^3.0.0 age confidence

Release Notes

dcodeIO/bcrypt.js (bcryptjs)

v3.0.3

Compare Source

Bug fixes
  • Always yield to event loop before nextTick for async versions (#​164) (1211e9a)

v3.0.2

Compare Source

Bug fixes
  • Use upstream fix to emit interop helpers (28e5103)

v3.0.1

Compare Source

Bug fixes
  • Separate ESM and UMD type definitions (e7055ca)

v3.0.0

Compare Source

Breaking changes
  • Modernize project structure (2f45985)
    The project now exports an ECMAScript module by default, albeit with an UMD fallback, ships with types, the dist/ directory no longer exists in version control, and Closure Compiler externs have been removed.
  • Generate 2b hashes by default (d36bfb4)
    This library was not affected by the bug that led to incrementing the bcrypt version from 2a to 2b, but nowadays most implementations use 2b, including the native bcrypt binding, so this change aligns with them. Existing hashes will continue to work, but test logic that generates hashes and compares them literally might need to be updated to account for the new default.
Features
  • Add helper to check for password input length (d5656b3)
Other
  • Update publish workflow (2a9bea9)
  • Add note on using the ESM variant in the browser (e09eb9a)
  • Update types (58333a1)
  • Merge lint and test workflows (2e3b176)
  • Fix tests (ec02e8a)
  • Update legacy fallback to handle crypto dependency (9db275f)
  • Update lint workflow title (ac70ac5)
  • Adapt crypto module usage for ESM environments (574d690)
  • Format with prettier (e746547)
  • Rename default branch to 'main' (548559d)
  • Update description to mention TypeScript support (4977df0)
  • Add stale action for issues and PRs (a84d4e4)
  • Fix typo (c8c9c01)
  • Fix Node.js version in CI (1b54cc4)
Backlog from v2
  • Added externs to .npmignore (#​124) (7e2e93a)
    The npm package does not need externs as it is needed only for closure compiler. Added it in .npmignore since bcryptjs overrides global module and process in WebStorm IDE.
  • Make sure the bin script uses LF (684fac6)
  • Post-merge; Clean up a bit (b09f7f2)
  • Improve safeStringCompare using xor (#​77) (648482a)
  • Added bin entry (49a1d1a)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Between 12:00 AM and 03:59 AM, only on Monday (* 0-3 * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the renovate label Sep 29, 2025
@renovate renovate bot force-pushed the renovate/bcryptjs-3.x branch 2 times, most recently from dd08785 to 592fa18 Compare October 6, 2025 04:38
@renovate renovate bot force-pushed the renovate/bcryptjs-3.x branch from 592fa18 to f877ef2 Compare October 13, 2025 04:38
@renovate renovate bot force-pushed the renovate/bcryptjs-3.x branch 2 times, most recently from 6c88dfa to c2dae4f Compare October 27, 2025 05:44
@renovate renovate bot force-pushed the renovate/bcryptjs-3.x branch 2 times, most recently from 074f0de to e1e9c55 Compare November 10, 2025 04:28
@hb0730 hb0730 requested a review from Copilot November 21, 2025 12:10
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the bcryptjs library from v2.4.3 to v3.0.3, along with its corresponding type definitions. The update includes a major version bump that introduces breaking changes, particularly the default hash generation format changing from 2a to 2b. The project now also ships with built-in TypeScript types, making the separate @types/bcryptjs package unnecessary.

Key Changes

  • Updated bcryptjs from ^2.4.3 to ^3.0.3 (major version bump)
  • Updated @types/bcryptjs from ^2.4.6 to ^3.0.0 (now deprecated)
  • bcryptjs now includes native TypeScript support and exports ESM by default

Reviewed Changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
package.json Updates bcryptjs and @types/bcryptjs dependency versions to v3
pnpm-lock.yaml Reflects the dependency resolution changes, including the deprecated @types package that now points to bcryptjs's own types
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pnpm-lock.yaml
Comment on lines +1569 to 1572
'@types/bcryptjs@3.0.0':
resolution: {integrity: sha512-WRZOuCuaz8UcZZE4R5HXTco2goQSI2XxjGY3hbM/xDvwmqFWd4ivooImsMx65OKM6CtNKbnZ5YL+YwAwK7c1dg==}
deprecated: This is a stub types definition. bcryptjs provides its own type definitions, so you do not need this installed.

Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @types/bcryptjs package is now deprecated as bcryptjs v3 includes its own type definitions. Consider removing @types/bcryptjs from your devDependencies since it's no longer needed and just acts as a stub that points to the types in bcryptjs itself.

Suggested change
'@types/bcryptjs@3.0.0':
resolution: {integrity: sha512-WRZOuCuaz8UcZZE4R5HXTco2goQSI2XxjGY3hbM/xDvwmqFWd4ivooImsMx65OKM6CtNKbnZ5YL+YwAwK7c1dg==}
deprecated: This is a stub types definition. bcryptjs provides its own type definitions, so you do not need this installed.

Copilot uses AI. Check for mistakes.
@renovate renovate bot force-pushed the renovate/bcryptjs-3.x branch 2 times, most recently from e023e79 to 4a3cf6e Compare December 8, 2025 05:29
@renovate renovate bot force-pushed the renovate/bcryptjs-3.x branch from 4a3cf6e to 14c7df1 Compare December 15, 2025 09:08
@renovate renovate bot force-pushed the renovate/bcryptjs-3.x branch from 14c7df1 to a156b0c Compare December 22, 2025 10:38
@renovate renovate bot force-pushed the renovate/bcryptjs-3.x branch from a156b0c to 31cdca6 Compare December 31, 2025 16:07
@renovate renovate bot force-pushed the renovate/bcryptjs-3.x branch 2 times, most recently from e327c9f to 19bdb1b Compare January 12, 2026 04:54
@renovate renovate bot force-pushed the renovate/bcryptjs-3.x branch 2 times, most recently from fea0998 to 7e8991e Compare January 19, 2026 19:53
@renovate renovate bot force-pushed the renovate/bcryptjs-3.x branch from 7e8991e to 043bfd3 Compare February 2, 2026 04:41
@renovate renovate bot force-pushed the renovate/bcryptjs-3.x branch from 043bfd3 to 3b84cee Compare February 12, 2026 15:13
@renovate renovate bot force-pushed the renovate/bcryptjs-3.x branch 2 times, most recently from d71fdef to 8a8f073 Compare March 9, 2026 05:17
@renovate renovate bot force-pushed the renovate/bcryptjs-3.x branch 2 times, most recently from efe3478 to a7a7273 Compare March 16, 2026 05:59
@renovate renovate bot force-pushed the renovate/bcryptjs-3.x branch from a7a7273 to e65ed24 Compare April 1, 2026 17:16
@renovate renovate bot force-pushed the renovate/bcryptjs-3.x branch from e65ed24 to ca592ad Compare April 6, 2026 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant