github openpgpjs/openpgpjs v5.0.0-3

latest releases: v6.0.0-beta.0, v5.11.1, v6.0.0-alpha.1...
pre-release2 years ago

This is a prerelease of v5.0.0. The full changelog since OpenPGP.js v4 can be found here. The changelog since v5.0.0-2 is:

  • Switch from Uint8Array.from to new Uint8Array (fixes #1076)
  • Update pako (fixes #1301)
  • Replace Key with PrivateKey and PublicKey classes (#1300)
    • Add PrivateKey and PublicKey classes. A PrivateKey can always be passed where a PublicKey key is expected, but not vice versa.
    • Unexport Key, and export PrivateKey and PublicKey.
    • Rename Key.packetlist2structure to Key.packetListToStructure.
    • Change Key.update to return a new updated key, rather than modifying the destination one in place.
    • Add openpgp.readPrivateKey and openpgp.readPrivateKeys to avoid having to downcast the result of readKey(s) in TypeScript.
  • Fix link in README's table of contents (#1307)
  • Rename public/privateKeys to encryption/decryption/signing/verificationKeys (#1299)
    • Rename publicKeys to encryptionKeys or verificationKeys depending on their use
    • Rename privateKeys to decryptionKeys or signingKeys depending on their use
    • Similarly, rename toUserIDs to encryptionUserIDs and fromUserIDs to signingUserIDs
  • Unexport openpgp.stream (#1291)
    This change allows us to only load the ReadableStream polyfill when needed without behaving inconsistently in the external API.
    Users of the library should use the global ReadableStream or Node.js stream.Readable instead, or import a polyfill if needed. This version also loosens the detection criteria such that polyfilled streams are better detected.
  • Only ignore unsupported packets when config.tolerant is set (#1298)
    Don't ignore parse errors if config.tolerant is enabled. This leads to more useful error messages in most cases, as ignoring these errors will most likely still lead to an error down the line (e.g. if a key binding signature is missing). Unsupported and unknown packets and packets with an unsupported or unknown version are still ignored, for forward compatibility.
  • Make key fingerprint computation async (#1297)
  • Make PacketList a valid subtype of Array and update Packet.tag types (#1289)
  • Add PacketList.fromBinary and add missing config param in some functions (#1294)

Don't miss a new openpgpjs release

NewReleases is sending notifications on new releases.