Skip to content

Releases: jhermsmeier/node-dkim-signature

v3.0.1

06 Jun 11:38
v3.0.1
0c9f5a6
Compare
Choose a tag to compare
  • doc: Add "Related Modules" section
  • lib: Simplify version tag presence check
  • lib: Fix incorrect base64 test pattern
  • test: Add test for tag name case-sensitivity

Full Changelog: v3.0.0...v3.0.1

v3.0.0

05 Jun 16:36
v3.0.0
b1e4882
Compare
Choose a tag to compare

Major Changes

Behavior

  • Fixed encoding and decoding of DKIM quoted-printable tags
  • Fixed handling of internationalized domain names
  • Fixed unfolding of folding whitespace (standalone LF is no longer unfolded)
  • Unknown / unsupported tags are now exposed as a Map under signature.unknownTags
  • No longer throws errors when encountering unknown, or previously
    unspecified tags (such as "dara" and "darn", added by the Replay Resistant Authenticated Receiver Chain draft spec)
  • Added validation of tag values when parsing signatures:
    • Now throws errors on missing or otherwise invalid signature versions
    • Now throws errors on missing tags that are required
    • Now throws errors on invalid timestamps
    • Now throws errors on invalid body length

API

  • Added signature.toJSON()
  • Removed static method Signature.create()
  • Removed TypeScript type definitions
  • Renamed signature properties to better match the specification,
    and avoid some confusion:
    • signature.signature to signature.data
    • signature.hash to signature.bodyHash
    • signature.length to signature.bodyLength
    • signature.query to signature.queryMethods
    • signature.canonical to signature.canonicalization
    • signature.identity to signature.identifier
    • signature.timestamp to signature.createdAt
    • signature.expires to signature.expiresAt

Full Changelog: v2.0.0...v3.0.0

v2.0.0

02 May 05:19
v2.0.0
f3c00cc
Compare
Choose a tag to compare

Major Changes

This will now ignore unknown fields (as per specification) instead of throwing an Error,
and may break applications that expect this behavior.

Full Changelog: v1.3.0...v2.0.0