Skip to content

v2.6.6

Choose a tag to compare

@MattCCC MattCCC released this 23 Aug 00:45
· 565 commits to master since this release

Features:

  • more strongly typed query params in fetchf() requests by default
  • passed params can handle array of objects with "name" and "value" properties

Fixes:

  • don't attempt to serialize body payload if URLSearchParams are passed
  • correctly parse "params" property passed in Request Config
  • fetchf() wrapper should not make assumptions regarding request data/params
  • more predictable body/data parsing inline with native fetch()
  • correctly append query params to POST requests, if data/body are specified
  • correctly handle charset in the content type headers when parsing response data
  • bail parsing data early if there is no response body
  • correctly parse text/ responses and streams
  • normalize headers keys to lowercase as per IETF RFC 2616 4.2
  • distingiush versions loaded by node and browsers

What's Changed

  • Improve Request and Response handling by @MattCCC in #46

Full Changelog: v2.6.5...v2.6.6