chore(deps): update dependency selfsigned to v5
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| selfsigned | ^3.0.0 -> ^5.0.0 |
Release Notes
jfromaniello/selfsigned (selfsigned)
v5.2.0
v5.1.0
v5.0.0
🚀 Major Rewrite
Complete rewrite replacing node-forge with modern @peculiar/x509 and pkijs libraries.
✨ Added
- Native WebCrypto API support for better performance and security
- TypeScript examples in documentation
- Async/await support as the primary API
- Support for
keyPairoption to use existing keys - Updated to use Node.js native crypto for all operations
- Separate
selfsigned/pkcs7module for tree-shakeable PKCS#7 support
💥 BREAKING CHANGES
-
Async-only API: The
generate()function now returns a Promise. Synchronous generation has been removed.// Old (v4.x) const pems = selfsigned.generate(attrs, options); // New (v5.x) const pems = await selfsigned.generate(attrs, options); -
No callback support: Callbacks have been completely removed in favor of Promises.
// Old (v4.x) selfsigned.generate(attrs, options, function(err, pems) { ... }); // New (v5.x) const pems = await selfsigned.generate(attrs, options); -
Minimum Node.js version: Now requires Node.js >= 15.6.0 (was >= 10)
- Required for native WebCrypto support
-
Dependencies changed:
-
PKCS#7 API changed:
- Old:
const pems = await generate(attrs, { pkcs7: true }); pems.pkcs7 - New:
const { createPkcs7 } = require('selfsigned/pkcs7'); const pkcs7 = createPkcs7(pems.cert); - PKCS#7 is now a separate module for better tree-shaking
- Old:
🔧 Changed
- Default key size remains 2048 bits (was incorrectly documented as 1024)
- PEM output uses
\nline endings (was\r\n) - Private keys now use PKCS#8 format (
BEGIN PRIVATE KEYinstead ofBEGIN RSA PRIVATE KEY) - Certificate generation is now fully async using native WebCrypto
- PKCS#7 is now tree-shakeable: Moved to separate
selfsigned/pkcs7module so bundlers can exclude it when not used
🐛 Fixed
- Default key size documentation corrected from 1024 to 2048 bits
- Improved error handling for certificate generation failures
📦 Dependencies
Removed:
node-forge@^1.3.1@types/node-forge@^1.3.0
Added:
@peculiar/x509@​^1.14.2(required)pkijs@^3.3.3(required, but tree-shakeable via separateselfsigned/pkcs7module)
🔒 Security
- Now uses Node.js native WebCrypto API instead of JavaScript implementation
- Better integration with platform security features
- More secure random number generation
📚 Documentation
- Complete README rewrite with async/await examples
- Added migration guide from v4.x to v5.x
- Updated all code examples to use async/await
- Added requirements section highlighting Node.js version requirement
v4.0.1
v4.0.0
See git history for changes in 4.x and earlier versions.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
[!IMPORTANT]
Review skipped
Bot user detected.
To trigger a single review, invoke the
@coderabbitai reviewcommand.You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.
Comment @coderabbitai help to get the list of available commands and usage tips.
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
| Diff | Package | Supply Chain Security |
Vulnerability | Quality | Maintenance | License |
|---|---|---|---|---|---|---|
| selfsigned@3.0.1 ⏵ 5.2.0 |