Releases: wKovacs64/hibp
v14.1.2
Patch Changes
- #479
f212d87
Thanks @wKovacs64! - Fix error handling for 401 Unauthorized API responses. The haveibeenpwned.com API (v3) changed its response type from a JSON body to text.
v14.1.1
Patch Changes
- #464
1dd6547
Thanks @wKovacs64! - Fix consumption from Next.js client components.
v14.1.0
Minor Changes
-
#462
b6076f2
Thanks @wKovacs64! - Add thetimeoutMs
option to all modules, allowing the consumer to specify a timeout for the underlying network request (in milliseconds). Requests that take longer than the specified timeout period will throw/reject. There is no default timeout, asfetch
itself has no timeout by default and providing one would be arbitrary, unexpected, and a breaking change. -
#458
0a82b8d
Thanks @wKovacs64! - Only polyfill globalfetch
on Node.js v18, and useundici
instead of@remix-run/web-fetch
. This also enables use ofhibp
in web workers and extension background threads.
Patch Changes
- #461
aa90167
Thanks @wKovacs64! - Fix a bug inpwnedPassword
andpwnedPasswordRange
modules where theaddPadding
anduserAgent
options could not be used simultaneously.
v14.0.3
Patch Changes
- #438
3da8b89
Thanks @wKovacs64! - Restore missing TypeScript declarations that were forgotten in v14.0.2 (PR #436).
v14.0.2
Patch Changes
-
#436
961d6e0
Thanks @wKovacs64! - Fix CommonJS exports that broke in v14.0.0.CommonJS consumers were getting an
ERR_REQUIRE_ESM
error as of v14.0.0 due to changing the project source to ESM in PR #420. This change resolves that by publishing the CommonJS files indist/cjs
with a.cjs
file extension and the ESM files indist/esm
with the.js
file extension.
v14.0.1
v14.0.0
Major Changes
- #410
2643a0c
Thanks @wKovacs64! - Drop support for Node.js 16 as it is end-of-life, making the new minimum Node.js runtime v18.0.0. Please upgrade your Node.js environment if necessary, or continue using a previous release if you are unable to upgrade your environment.
Minor Changes
-
#425
cee2364
Thanks @wKovacs64! - Add a newsubscriptionStatus
module for retrieving the current subscription status of your HIBP API key. See https://haveibeenpwned.com/API/v3#SubscriptionStatus for more information. -
#426
5ff6e28
Thanks @wKovacs64! - Refresh the project logo. -
#422
be78f73
Thanks @wKovacs64! - Addmode
option to thepwnedPasswordRange
module to enable support for returning NTLM suffixes. -
#421
174ede4
Thanks @wKovacs64! - AddaddPadding
option topwnedPassword
andpwnedPasswordRange
modules. See https://www.troyhunt.com/enhancing-pwned-passwords-privacy-with-padding/ for more information.
Patch Changes
-
#427
173a615
Thanks @wKovacs64! - Fix thesubscriptionStatus
implementation from PR #425 so that it supports a proxy that inserts theHIBP-API-Key
header (via thebaseUrl
option) in the case where the consumer doesn't have direct access to the API key. -
#424
a512452
Thanks @wKovacs64! - Properly merge consumer-provided options with internal defaults. -
#419
799669b
Thanks @wKovacs64! - Update theBreach
model to include theIsMalware
andIsSubscriptionFree
fields.
v13.0.0
Major Changes
-
#383
b837a57
Thanks @wKovacs64! - Drop support for Node.js 14 as it is end-of-life, making the new minimum Node.js runtime v16.0.0. Please upgrade your Node.js environment if necessary, or continue using a previous release if you are unable to upgrade your environment. -
#381
6711b59
Thanks @wKovacs64! - Drop support for browsers without native Promise implementations. In reality, this likely didn't change anything.
v12.0.1
Patch Changes
-
#372
d2fb74f
Thanks @wKovacs64! - Publish types next to their CJS/ESM source files.For reference, see the following Twitter thread from Andrew Branch: https://mobile.twitter.com/atcb/status/1634653474041503744?t=8RVawwsEHrxnCD8BaITckg
v12.0.0
Major Changes
- #368
91909c1
Thanks @wKovacs64! - Drop support for Node.js 12 as it is end-of-life, making the new minimum Node.js runtime v14.13.1. Please upgrade your Node.js environment if necessary, or continue using a previous release if you are unable to upgrade your environment.
Patch Changes
- #367
95d6217
Thanks @wKovacs64! - Replace the underlyingfetch
library. This shouldn't be noticeable to consumers, but replacingisomorphic-unfetch
with our own conditional wrapper around@remix-run/web-fetch
resolves a few compatibility issues the project has been facing.