fix(deps): update dependency bcryptjs to v3#102
Conversation
dd08785 to
592fa18
Compare
592fa18 to
f877ef2
Compare
6c88dfa to
c2dae4f
Compare
074f0de to
e1e9c55
Compare
There was a problem hiding this comment.
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.
| '@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. | ||
|
|
There was a problem hiding this comment.
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.
| '@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. |
e023e79 to
4a3cf6e
Compare
4a3cf6e to
14c7df1
Compare
14c7df1 to
a156b0c
Compare
a156b0c to
31cdca6
Compare
e327c9f to
19bdb1b
Compare
fea0998 to
7e8991e
Compare
7e8991e to
043bfd3
Compare
043bfd3 to
3b84cee
Compare
d71fdef to
8a8f073
Compare
efe3478 to
a7a7273
Compare
a7a7273 to
e65ed24
Compare
e65ed24 to
ca592ad
Compare
This PR contains the following updates:
^2.4.3→^3.0.3^2.4.6→^3.0.0Release Notes
dcodeIO/bcrypt.js (bcryptjs)
v3.0.3Compare Source
Bug fixes
1211e9a)v3.0.2Compare Source
Bug fixes
28e5103)v3.0.1Compare Source
Bug fixes
e7055ca)v3.0.0Compare Source
Breaking changes
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.
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
d5656b3)Other
2a9bea9)e09eb9a)58333a1)2e3b176)ec02e8a)9db275f)ac70ac5)574d690)e746547)548559d)4977df0)a84d4e4)c8c9c01)1b54cc4)Backlog from v2
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.
684fac6)b09f7f2)648482a)49a1d1a)Configuration
📅 Schedule: (UTC)
* 0-3 * * 1)🚦 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.
This PR was generated by Mend Renovate. View the repository job log.