Skip to content

v8.0.0

Compare
Choose a tag to compare
@wKovacs64 wKovacs64 released this 19 Jul 19:20

8.0.0 (2019-07-19)

chore

  • node: drop Node 6 support (c276c66)

Features

  • api-v3: add apiKey option to protected endpoint modules (cf026bd), closes #100
  • api-v3: invert the includeUnverified option default (9f004fc), closes #98
  • api-v3: invert the truncate option default (395c487), closes #99
  • api-v3: replace custom Accept header with versioned base URL (84a839c)
  • api-v3: update handling of rate limited responses (092a55c), closes #97

BREAKING CHANGES

  • node: Support for Node.js version 6.x has been dropped.
  • api-v3: v3 of the haveibeenpwned.com API requires an API key from
    https://haveibeenpwned.com/API/Key to access the breachedaccount and pasteaccount endpoints.
    Requests made using the breachedAccount, pasteAccount, and search modules will be rejected
    with a 401 Unauthorized response unless the apiKey option is provided with a valid API key, or
    you are proxying your requests (via the baseUrl option) through a server that inserts an API key
    on your behalf. See Troy's blog post for rationale and a full explanation.
  • api-v3: The includeUnverified option previously defaulted to false
    and now defaults to true, per Troy's preference.
  • api-v3: The truncate option previously defaulted to false and now defaults to true,
    per Troy's preference.