wKovacs64 / hibp

An unofficial TypeScript SDK for the 'Have I been pwned?' service.
https://wkovacs64.github.io/hibp
MIT License
115 stars 5 forks source link

Replace @remix-run/web-fetch with undici #458

Closed wKovacs64 closed 7 months ago

wKovacs64 commented 7 months ago

The Remix team is deprecating @remix-run/web-fetch in favor of undici, as this is what the native Node.js fetch implementation uses. This refactor of the polyfill also unlocks usage of hibp in web workers and extension background threads.

Fixes #456 Closes #457

changeset-bot[bot] commented 7 months ago

🦋 Changeset detected

Latest commit: ceea74c7f01cdfc80be95092936f08d5838aff1a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---- | ----- | | hibp | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (e144ea0) to head (ceea74c).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #458 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 15 15 Lines 1102 1103 +1 Branches 42 27 -15 ========================================= + Hits 1102 1103 +1 ``` | [Files](https://app.codecov.io/gh/wKovacs64/hibp/pull/458?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Justin+Hall) | Coverage Δ | | |---|---|---| | [src/api/fetch-polyfill.ts](https://app.codecov.io/gh/wKovacs64/hibp/pull/458?src=pr&el=tree&filepath=src%2Fapi%2Ffetch-polyfill.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Justin+Hall#diff-c3JjL2FwaS9mZXRjaC1wb2x5ZmlsbC50cw==) | `100.00% <100.00%> (ø)` | | | [src/api/haveibeenpwned/fetch-from-api.ts](https://app.codecov.io/gh/wKovacs64/hibp/pull/458?src=pr&el=tree&filepath=src%2Fapi%2Fhaveibeenpwned%2Ffetch-from-api.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Justin+Hall#diff-c3JjL2FwaS9oYXZlaWJlZW5wd25lZC9mZXRjaC1mcm9tLWFwaS50cw==) | `100.00% <100.00%> (ø)` | | | [src/api/pwnedpasswords/fetch-from-api.ts](https://app.codecov.io/gh/wKovacs64/hibp/pull/458?src=pr&el=tree&filepath=src%2Fapi%2Fpwnedpasswords%2Ffetch-from-api.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Justin+Hall#diff-c3JjL2FwaS9wd25lZHBhc3N3b3Jkcy9mZXRjaC1mcm9tLWFwaS50cw==) | `100.00% <100.00%> (ø)` | |