Skip to content

feat: remove "headers-polyfill" dependency#408

Merged
kettanaito merged 1 commit intomainfrom
feat/remove-headers-polyfill
Aug 30, 2023
Merged

feat: remove "headers-polyfill" dependency#408
kettanaito merged 1 commit intomainfrom
feat/remove-headers-polyfill

Conversation

@kettanaito
Copy link
Copy Markdown
Member

We can fully rely on the Fetch API Headers instead of using the headers-polyfill library.

We can substitute some of the utility functions of that library by Array.from(headers.entries()), and I've added a custom utility that converts XMLHttpRequest.getAlLResponseHeaders() string to a Headers instance (that one wasn't included in the polyfill library anyway).

@kettanaito kettanaito merged commit 93f3e83 into main Aug 30, 2023
@kettanaito kettanaito deleted the feat/remove-headers-polyfill branch August 30, 2023 14:51
@kettanaito
Copy link
Copy Markdown
Member Author

Released: v0.24.0 🎉

This has been released in v0.24.0!

Make sure to always update to the latest version (npm i @mswjs/interceptors@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate "HeadersPolyfill" in favor of "Headers"

1 participant