Packages

selfsigned

5.5.0 · 12 Jan 2026MIT23.1M / weekRepositoryHomepagenpmAtom feed

Upgrading selfsigned From 0.0.6 to 5.5.0

38 releases in betweennotes for 1

4.0.0, 3.0.0, 2.0.0 have no release note on GitHub or in the repository's changelog, so their breaking changes are missing from the counts below.
  1. 0.0.6yours
  2. 20 releases
  3. 2.0.0major
  4. 8 releases
  5. 3.0.0major
  6. 1 release
  7. 4.0.0major
  8. 1 release
  9. 5.0.0security
  10. 3 releases
  11. 5.5.0target
4+
changes to make
0
advisories fixed
6+
new
2+
fixes

Counted from 1 of 38 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0

Security

  • Now uses Node.js native WebCrypto API instead of JavaScript implementation

    5.0.0
  • Better integration with platform security features

    5.0.0
  • More secure random number generation

    5.0.0

Release by release

  1. 5.1.0 – 5.5.04 releases, no release note

  2. 5.0.0

    Security fix1 Dec 20256 new · 2 fixes
    • Security

      Now uses Node.js native WebCrypto API instead of JavaScript implementation

    • Security

      Better integration with platform security features

    • Security

      More secure random number generation

    • Breaking

      Async-only API: The generate() function now returns a Promise. Synchronous generation has been removed.

  3. 1.1.1 – 4.0.133 releases, no release note

11 other lines we could not sort, mostly version bumps
  • ✅ Added: @peculiar/x509 (551 KB) - 66% smaller!

    5.0.0
  • ✅ Added: pkijs (1.94 MB, only for PKCS#7 support)

    5.0.0
  • Bundle size reduced by 66% when not using PKCS#7

    5.0.0
  • Old: const pems = await generate(attrs, { pkcs7: true }); pems.pkcs7

    5.0.0
  • New: const { createPkcs7 } = require('selfsigned/pkcs7'); const pkcs7 = createPkcs7(pems.cert);

    5.0.0
  • PKCS#7 is now a separate module for better tree-shaking

    5.0.0
  • Default key size remains 2048 bits (was incorrectly documented as 1024)

    5.0.0
  • PEM output uses \n line endings (was \r\n)

    5.0.0
  • Private keys now use PKCS#8 format (BEGIN PRIVATE KEY instead of BEGIN RSA PRIVATE KEY)

    5.0.0
  • Certificate generation is now fully async using native WebCrypto

    5.0.0

8 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.