v2.6.6
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
Full Changelog: v2.6.5...v2.6.6