mswjs / interceptors

Low-level network interception library.
https://npm.im/@mswjs/interceptors
MIT License
563 stars 127 forks source link

Deprecate "HeadersPolyfill" in favor of "Headers" #406

Closed kettanaito closed 1 year ago

kettanaito commented 1 year ago

Since we've migrated to the Fetch API primitives and Node.js 18 support, there's no real need to use the HeadersPolyfill library anymore (previously used to represent HTTP headers in the same manner across different implementations: http.OutgoingHeaders, XHR headers, Fetch headers).

We can still utilize its helper methods for working with headers but first it'd be nice to assess if those are advantageous compared to custom utility functions.

kettanaito commented 1 year ago

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.