Skip to content

Latest commit

 

History

History
490 lines (254 loc) · 25.8 KB

CHANGELOG.md

File metadata and controls

490 lines (254 loc) · 25.8 KB

openapi-fetch

0.13.4

Patch Changes

0.13.3

Patch Changes

Refresh of 0.13.2; corrupted package

0.13.2

Patch Changes

  • #2020 7081842 Thanks @mellster2012! - Add client option to pass custom RequestInit object into fetch requests for supported implementations

0.13.1

Patch Changes

0.13.0

Minor Changes

  • #1968 267977e Thanks @DjordyKoert! - 204 responses or response with a Content-Length of 0 will now return undefined instead of an empty object

0.12.5

Patch Changes

0.12.4

Patch Changes

0.12.3

Patch Changes

0.12.2

Patch Changes

  • #1918 e39d11e Thanks @yicrotkd! - Improve Middleware type definition to require either onRequest or onResponse

0.12.1

Patch Changes

0.12.0

Minor Changes

  • ⚠️ Breaking Change #1826 b893c44 Thanks @goce-cz! - Do not set content-type on body-less requests

0.11.3

Patch Changes

0.11.2

Patch Changes

0.11.1

Patch Changes

0.11.0

Minor Changes

-- ⚠️ Breaking Change #1791 a956d5d Thanks @gzm0! - Add support for client["/endpoint"].GET() style calls

0.10.6

Patch Changes

0.10.5

Patch Changes

0.10.4

Patch Changes

0.10.3

Patch Changes

0.10.2

Patch Changes

0.10.1

Patch Changes

0.10.0

Minor Changes

  • ⚠️ Breaking Change: openapi-typescript@7 is needed to work. You’ll get type errors with openapi-typescript@6 and below.

  • ⚠️ Breaking Change: The Middleware API has changed to be an object rather than (request, options) or (response, options). See Middleware docs for updated API.

  • ⚠️ Breaking Change: The Content-Type header is no longer sent by default if a body payload is attached.

  • ⚠️ Breaking Change: The customFetch type now calls fetch(input: string, init: RequestInit) and the types have been updated, rather than fetch(input: Request) introduced in 0.9.0.

  • Added id to middleware handlers that create a unique ID per-fetch

0.9.8

Patch Changes

0.9.7

Patch Changes

  • #1672 64cb619 Thanks @jaredLunde! - Fixes issue where native properties were not excluded from custom properties in the CustomRequest class

0.9.6

Patch Changes

0.9.5

Patch Changes

0.9.4

Patch Changes

0.9.3

Patch Changes

0.9.2

Patch Changes

  • #1550 a5a9cc7 Thanks @shirish87! - Fix 'Content-Type' header being removed from requests with multipart/form-data body

0.9.1

Patch Changes

0.9.0

Minor Changes

  • #1521 b174dd6 Thanks @drwpow! - Add middleware support

  • #1521 fc3a468 Thanks @drwpow! - ⚠️ Breaking change (internal): fetch() is now called with new Request() to support middleware (which may affect test mocking)

  • #1521 2551e4b Thanks @drwpow! - ⚠️ Breaking change: Responses are no longer automatically .clone()’d in certain instances. Be sure to .clone() yourself if you need to access the raw body!

  • #1534 2bbeb92 Thanks @drwpow! - ⚠️ Breaking change: no longer supports deeply-nested objects/arrays for query & path serialization.

Patch Changes

0.8.2

Patch Changes

0.8.1

Patch Changes

  • #1404 93204e4 Thanks @drwpow! - Fix behavior for empty arrays and objects in default querySerializer

0.8.0

Minor Changes

0.7.10

Patch Changes

0.7.9

Patch Changes

0.7.8

Patch Changes

0.7.7

Patch Changes

0.7.6

Patch Changes

0.7.5

Patch Changes

0.7.4

Patch Changes

0.7.3

Patch Changes

0.7.2

Patch Changes

0.7.1

Patch Changes

0.7.0

Minor Changes

  • #1243 541abf4 Thanks @drwpow! - ⚠️ Breaking: rename all methods to UPPERCASE (GET(), POST(), etc.)

0.6.2

Patch Changes

0.6.1

Patch Changes

0.6.0

Minor Changes

  • 0380e9a Thanks @drwpow! - Add multipart/form-data request body support

  • 0380e9a Thanks @drwpow! - Breaking: openapi-fetch now just takes the first media type it finds rather than preferring JSON. This is because in the case of multipart/form-data vs application/json, it’s not inherently clear which you’d want. Or if there were multiple JSON-like media types.

0.5.0

Minor Changes

Patch Changes

0.4.0

Minor Changes

0.3.0

Minor Changes

Patch Changes

0.2.1

Patch Changes

0.2.0

Minor Changes

  • 97c8757: Add custom fetch option (#51). Thanks, @hd-o!

0.1.4

Patch Changes

  • 63ebe48: Fix request body type when optional (#48)

0.1.3

Patch Changes

  • 8c01480: Fix querySerializer signature

0.1.2

Patch Changes

  • e730cd8: Fix post() and options() types

0.1.1

Patch Changes

  • 5d1fb7d: Fix bad HTTP method lookup causing polymorphsim

0.1.0

Minor Changes

  • f878cd3: Add querySerializer

Patch Changes

  • 22197a1: Add missing type defs for minified build
  • ff3174a: Fix type inference bugs
  • 4ce3828: Skip parsing JSON for empty responses (#23)
  • ff3ae1b: Skip parsing JSON for 204 responses (#28)

0.0.8

Patch Changes

  • 8e7cb46: Fix TypeScript lib error, simplify generated types

0.0.7

Patch Changes

  • fce1546: Support "application/json;charset=utf-8" content types (#15). Thanks, @shinzui!
  • 0899e0e: Add minified build (#18)

0.0.6

Patch Changes

  • 27c149c: Fix data, error sometimes returning undefined

0.0.5

Patch Changes

  • c818e65: Export BaseParams shared type (#8)

0.0.4

Patch Changes

  • ce99563: Fix optional requestBody in path

0.0.3

Patch Changes

0.0.2

Patch Changes

  • 5a47464: Fix module entry

0.0.1

Patch Changes

  • 55d7013: Encode path params