- #1762
7698546Thanks @thatsprettyfaroutman! - Allow FormData through defaultBodySerializer
- Updated dependencies [
bcc9222]:- openapi-typescript-helpers@0.0.11
-
#1717
335530cThanks @kerwanp! - Ignore configuration files in published package -
#1717
335530cThanks @kerwanp! - Create own client type for easier reusability -
Updated dependencies [
335530c]:- openapi-typescript-helpers@0.0.10
-
#1719
a8f2253Thanks @drwpow! - Remove nanoid from dependencies -
#1719
a8f2253Thanks @drwpow! - Fix "failed to execute fetch on Window" error -
#1719
a8f2253Thanks @drwpow! - Revert customFetch API back tofetch(input: Request)
-
⚠️ Breaking Change:openapi-typescript@7is needed to work. You’ll get type errors withopenapi-typescript@6and 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: TheContent-Typeheader is no longer sent by default if a body payload is attached. -
⚠️ Breaking Change: ThecustomFetchtype now callsfetch(input: string, init: RequestInit)and the types have been updated, rather thanfetch(input: Request)introduced in0.9.0. -
Added
idto middleware handlers that create a unique ID per-fetch
- #1697
e77ce50Thanks @armandabric! - Expose original request on Middleware.onResponse
- #1672
64cb619Thanks @jaredLunde! - Fixes issue where native properties were not excluded from custom properties in the CustomRequest class
-
#1597
1f7ad9dThanks @armandabric! - Allow to select the response content type -
#1585
4e06f86Thanks @mikestopcontinues! - Update types for path-methods object -
#1610
cc8073bThanks @illright! - Fix data/error discrimination when there are empty-body errors
- #1550
a5a9cc7Thanks @shirish87! - Fix 'Content-Type' header being removed from requests with multipart/form-data body
-
#1521
fc3a468Thanks @drwpow! -⚠️ Breaking change (internal): fetch() is now called with new Request() to support middleware (which may affect test mocking) -
#1521
2551e4bThanks @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
2bbeb92Thanks @drwpow! -⚠️ Breaking change: no longer supports deeply-nested objects/arrays for query & path serialization.
-
#1479
c6d945bThanks @darwish! - Fixed build of openapi-typescript-helpers for CommonJS environments -
#1534
2bbeb92Thanks @drwpow! - Add support for automatic label & matrix path serialization. -
#1534
2bbeb92Thanks @drwpow! - Remove leading question marks from querySerializer -
#1530
4765658Thanks @wydengyre! - Exports the ClientMethod utility type. -
Updated dependencies [
c6d945b]:- openapi-typescript-helpers@0.0.7
-
#1424
8f5adb3Thanks @drwpow! - Separate TS types to be managed manually -
Updated dependencies [
5be2082]:- openapi-typescript-helpers@0.0.5
- #1404
93204e4Thanks @drwpow! - Fix behavior for empty arrays and objects in defaultquerySerializer
- #1399
4fca1e4Thanks @drwpow! -⚠️ Breaking: change default querySerializer behavior to producestyle: form,explode: truequery params according to the OpenAPI specification. Also adds support fordeepObjects (square bracket style).
- #1373
fd3e96fThanks @HugeLetters! - Added the option to provide custom fetch function to individual API calls.
-
#1366
04dbd6dThanks @drwpow! - Fix empty object being required param -
Updated dependencies [
04dbd6d]:- openapi-typescript-helpers@0.0.4
- #1360
b59e431Thanks @marcomuser! - Fix CJS build for TypeScript
- Updated dependencies [
996e51e]:- openapi-typescript-helpers@0.0.3
- Updated dependencies [
e63a345]:- openapi-typescript-helpers@0.0.2
- #1192
38ee8b4Thanks @psychedelicious! - Fix header handling for FormData
-
0380e9aThanks @drwpow! - Add multipart/form-data request body support -
0380e9aThanks @drwpow! - Breaking: openapi-fetch now just takes the first media type it finds rather than preferring JSON. This is because in the case ofmultipart/form-datavsapplication/json, it’s not inherently clear which you’d want. Or if there were multiple JSON-like media types.
- #1183
431a98fThanks @psychedelicious! - Add globalquerySerializer()option tocreateClient()
-
#1169
74bfc0dThanks @drwpow! - Expose createFinalURL() logic for testing -
#1169
74bfc0dThanks @drwpow! - Automatically removeundefinedandnullquery params without requiring querySerializer -
#1169
74bfc0dThanks @drwpow! - Allow overriding of JSON body parsing
- 97c8757: Add custom fetch option (#51). Thanks, @hd-o!
- 63ebe48: Fix request body type when optional (#48)
- 8c01480: Fix querySerializer signature
- e730cd8: Fix post() and options() types
- 5d1fb7d: Fix bad HTTP method lookup causing polymorphsim
- f878cd3: Add querySerializer
- 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)
- 8e7cb46: Fix TypeScript lib error, simplify generated types
- fce1546: Support "application/json;charset=utf-8" content types (#15). Thanks, @shinzui!
- 0899e0e: Add minified build (#18)
- 27c149c: Fix data, error sometimes returning undefined
- c818e65: Export BaseParams shared type (#8)
- ce99563: Fix optional requestBody in path
- b69cb51: Autocomplete URLs by path (#2). Thanks, @mitchell-merry!
- 5a47464: Fix module entry
- 55d7013: Encode path params