Skip to content

Releases: jhermsmeier/node-dkim-key

v2.0.0

06 Jun 12:25
v2.0.0
d4186bd
Compare
Choose a tag to compare

Major Changes

Behavior

  • No longer throws errors when encountering unknown, or previously
    unspecified tags
  • Now throws an error if the version tag is not the first tag
    in the record, as mandated by RFC 6376, Section 3.6.1
  • Now throws an error if the key version is not DKIM1
  • Fixed encoding and decoding of DKIM quoted-printable tags

API

  • Added key.toJSON()
  • Added Key.FLAG enum
  • Added Key.SERVICE_TYPE enum
  • Added Key.VERSION enum
  • Added key.isRevoked() method
  • Added key.isStrict() method
  • Added key.isTest() method
  • Added key.isAcceptableHash() method
  • Removed TypeScript type definitions
  • Renamed key properties:
    • key.notes to key.note
    • key.hash to key.hashes to reflect the fact that it can
      have multiple acceptable algorithms
    • key.key to key.data

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