Skip to content

Releases: mswjs/headers-polyfill

v3.0.1

23 Mar 12:35
Compare
Choose a tag to compare

Bug fixes

  • Fixes an issue when using a Headers polyfilled instance as the argument to another Headers polyfill constructor (#14, #15).

v3.0.0

19 Mar 14:24
Compare
Choose a tag to compare

BREAKING CHANGES

  • The .getAllHeaders() method has been renamed to .all() (#12).

Features

  • Adds a new Headers.raw() method to return an object with raw header name/value pairs (#12).
  • Keeps the map of the raw headers internally to retrieve them as raw.

Bug fixes

  • Fixes an issue when looking up a header by name resulted in null being returned if there were more than 1 header (#10)

Internal

  • Reduces the amount of header name normalization happening when working with .append() and .delete() methods.

v2.0.0

15 Mar 13:22
Compare
Choose a tag to compare

Features

  • Makes the polyfill Headers compatible with the standard window.Headers (#10).

v1.2.5

13 Mar 12:55
Compare
Choose a tag to compare

Bug fixes

  • Fixes an issue where Headers.forEach() had the wrong order of arguments in the callback function (#7).