- #2310
e66b5ceThanks @drwpow! - Build package with unbuild. Also remove the minified version (openapi-fetch is only useful in a TypeScript/bundler environment, so there’s no sense in loading it from a CDN clientside).
- #2096
0058128Thanks @obulat! - Encode the request body ifContent-Typeheader isx-www-form-urlencoded - #2157
419d9acThanks @Rendez! - Fix overriding baseUrl per request without overriding default baseUrl - #2308
81c031dThanks @drwpow! - Improve header handling
- #2205
4966560Thanks @live-small! - Fix HEAD method requests to prevent body parsing regardless of Content-Length header value
- #2091
ebe56f3Thanks @p-dubovitsky! - Allow returning Response from onRequest callback
Refresh of 0.13.2; corrupted package
- #2020
7081842Thanks @mellster2012! - Add client option to pass custom RequestInit object into fetch requests for supported implementations
- #1974
35c576cThanks @luchsamapparat! - add onError handler to middleware
- #1968
267977eThanks @DjordyKoert! - 204 responses or response with a Content-Length of 0 will now return undefined instead of an empty object
-
#1937
06163a2Thanks @DjordyKoert! - client data & error now return a union of possible types -
Updated dependencies [
06163a2]:- openapi-typescript-helpers@0.0.15
- Updated dependencies [
abfad56]:- openapi-typescript-helpers@0.0.14
- #1936
d14aa65Thanks @BlakeSzabo! - Fix multiple empty arrays in query params appending extra ampersands
- #1918
e39d11eThanks @yicrotkd! - ImproveMiddlewaretype definition to require either onRequest or onResponse
- #1907
efaa1e2Thanks @tobiasdcl! - allow usage of custom Request class
-
#1817
2a4b067Thanks @Gruak! - Allow specifying baseUrl per request -
#1842
0e42cbbThanks @gzm0! - fix: allow use ofPathBasedClientwith generatedpaths
-
#1831
091e71aThanks @SebastienGllmt! - Add MethodResponse utility type to easily get the return type of an endpoint on a client -
#1833
cec023dThanks @ngraef! - Fix identification of required properties whenstrictNullChecksis disabled -
Updated dependencies [
cec023d]:- openapi-typescript-helpers@0.0.12
-- a956d5d Thanks @gzm0! - Add support for client["/endpoint"].GET() style calls
-
#1809
f21c05bThanks @gzm0! - perf: remove unnecessaryasynckeywords (for reduced code size) -
#1827
ba0d595Thanks @ngraef! - Fix typing for environments without DOM lib
- #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