Skip to content

v1.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 16 Jul 13:39
· 66 commits to main since this release

1.1.0 (2023-07-16)

Features

  • changes default response error message (20ef3eb)

    Changes the default response error message from 'Unknown response error' to $statusCode $statusText (e.g. '404 Not Found').

Bug Fixes

  • ignoring config.init.body (514b3e6)

    Fixes an issue where config.init.body would always be ignored regardless of config.data being set. Now, if config.data is not set and config.init.body is set, config.init.body will be used as the request body as-is.

  • not passing config.init to fetch (4139f4f)

    Fixes a bug causing config.init not to be passed as the init parameter to fetch.

  • using JSON content-type for POST requests with FormData body (5ae55df)

    Fixes POST requests with config.data being set to a FormData object being sent with a content type 'application/json'. Instead, such requests now will be sent with no content type as the browser will set it automatically.