- #569
a57feceThanks @wKovacs64! - Fix preview publishing by addingtypeto therepositorysection ofpackage.json. This is a package maintenance release only - no changes in the library itself.
- #562
ab40e4aThanks @wKovacs64! - Addsignaloption to all modules for user-controlled request cancellation viaAbortSignal.
-
#543
70db0e1Thanks @wKovacs64! - AddstealerLogsByEmailDomainmodule. -
#541
655b473Thanks @wKovacs64! - AddstealerLogsByEmailmodule. -
#542
682cff7Thanks @wKovacs64! - AddstealerLogsByWebsiteDomainmodule. -
#539
a0c6e9aThanks @wKovacs64! - AddsubscribedDomainsmodule. -
#537
e15c6a7Thanks @wKovacs64! - AddlatestBreachmodule. -
#538
f08af27Thanks @wKovacs64! - AddbreachedDomainmodule.
- #535
d47d462Thanks @wKovacs64! - AddIncludesStealerLogsfield toSubscriptionStatusinterface and docs.
- #510
879fe9fThanks @wKovacs64! - Export the API data model types that were missing in v15.0.0.
- #509
e8d4986Thanks @wKovacs64! - Drop support for Node 18 and remove the CommonJS and UMD builds:-
Drop support for Node.js 18 as it is end-of-life, making the new minimum Node.js runtime v20.19.0. Please upgrade your Node.js environment if necessary, or continue using a previous release if you are unable to upgrade your environment.
- This also allowed us to drop the
fetchpolyfill that was only necessary in Node 18, which reduced the bundle size by approximately 33%! 📉 The library now officially has zero dependencies. 🎉
- This also allowed us to drop the
-
Remove the CommonJS build since you can now
require()ESM as of Node v20.19.0. Consumers in a CommonJS environment should still be able to use the library as before (given the appropriate Node.js version). -
Remove the UMD build as all modern browsers support importing ESM via
<script type="module">tags. See the "Using in the browser" section of the README for more details.
-
- #506
56fdf38Thanks @wKovacs64! - DropJSSHAdependency in favor of a native Web Crypto API SHA-1 hashing implementation. This change reduces the size of the library by approximately 30%! 📉
- #502
e810e6bThanks @dependabot! - Updateundicito v6.21.1 (only matters on Node v18).
- #479
f212d87Thanks @wKovacs64! - Fix error handling for 401 Unauthorized API responses. The haveibeenpwned.com API (v3) changed its response type from a JSON body to text.
- #464
1dd6547Thanks @wKovacs64! - Fix consumption from Next.js client components.
-
#462
b6076f2Thanks @wKovacs64! - Add thetimeoutMsoption to all modules, allowing the consumer to specify a timeout for the underlying network request (in milliseconds). Requests that take longer than the sppecified timeout period will throw/reject. There is no default timeout, asfetchitself has no timeout by default and providing one would be arbitrary, unexpected, and a breaking change. -
#458
0a82b8dThanks @wKovacs64! - Only polyfill globalfetchon Node.js v18, and useundiciinstead of@remix-run/web-fetch. This also enables use ofhibpin web workers and extension background threads.
- #461
aa90167Thanks @wKovacs64! - Fix a bug inpwnedPasswordandpwnedPasswordRangemodules where theaddPaddinganduserAgentoptions could not be used simultaneously.
- #438
3da8b89Thanks @wKovacs64! - Restore missing TypeScript declarations that were forgotten in v14.0.2 (PR #436).
-
#436
961d6e0Thanks @wKovacs64! - Fix CommonJS exports that broke in v14.0.0.CommonJS consumers were getting an
ERR_REQUIRE_ESMerror 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/cjswith a.cjsfile extension and the ESM files indist/esmwith the.jsfile extension.
- #428
4a69884Thanks @wKovacs64! - Add descriptions to each config option for a better IDE experience.
- #410
2643a0cThanks @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.
-
#425
cee2364Thanks @wKovacs64! - Add a newsubscriptionStatusmodule for retrieving the current subscription status of your HIBP API key. See https://haveibeenpwned.com/API/v3#SubscriptionStatus for more information. -
#426
5ff6e28Thanks @wKovacs64! - Refresh the project logo. -
#422
be78f73Thanks @wKovacs64! - Addmodeoption to thepwnedPasswordRangemodule to enable support for returning NTLM suffixes. -
#421
174ede4Thanks @wKovacs64! - AddaddPaddingoption topwnedPasswordandpwnedPasswordRangemodules. See https://www.troyhunt.com/enhancing-pwned-passwords-privacy-with-padding/ for more information.
-
#427
173a615Thanks @wKovacs64! - Fix thesubscriptionStatusimplementation from PR #425 so that it supports a proxy that inserts theHIBP-API-Keyheader (via thebaseUrloption) in the case where the consumer doesn't have direct access to the API key. -
#424
a512452Thanks @wKovacs64! - Properly merge consumer-provided options with internal defaults. -
#419
799669bThanks @wKovacs64! - Update theBreachmodel to include theIsMalwareandIsSubscriptionFreefields.
-
#383
b837a57Thanks @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
6711b59Thanks @wKovacs64! - Drop support for browsers without native Promise implementations. In reality, this likely didn't change anything.
-
#372
d2fb74fThanks @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
- #368
91909c1Thanks @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.
- #367
95d6217Thanks @wKovacs64! - Replace the underlyingfetchlibrary. This shouldn't be noticeable to consumers, but replacingisomorphic-unfetchwith our own conditional wrapper around@remix-run/web-fetchresolves a few compatibility issues the project has been facing.
- #365
ec26254Thanks @wKovacs64! - Addtypesto theexportsmap inpackage.jsonto fix ESM consumers.