Refresh of 0.13.2; corrupted package
- #2020
7081842
Thanks @mellster2012! - Add client option to pass custom RequestInit object into fetch requests for supported implementations
- #1974
35c576c
Thanks @luchsamapparat! - add onError handler to middleware
- #1968
267977e
Thanks @DjordyKoert! - 204 responses or response with a Content-Length of 0 will now return undefined instead of an empty object
-
#1937
06163a2
Thanks @DjordyKoert! - client data & error now return a union of possible types -
Updated dependencies [
06163a2
]:
- Updated dependencies [
abfad56
]:
- #1936
d14aa65
Thanks @BlakeSzabo! - Fix multiple empty arrays in query params appending extra ampersands
- #1918
e39d11e
Thanks @yicrotkd! - ImproveMiddleware
type definition to require either onRequest or onResponse
- #1907
efaa1e2
Thanks @tobiasdcl! - allow usage of custom Request class
-
#1817
2a4b067
Thanks @Gruak! - Allow specifying baseUrl per request -
#1842
0e42cbb
Thanks @gzm0! - fix: allow use ofPathBasedClient
with generatedpaths
-
#1831
091e71a
Thanks @SebastienGllmt! - Add MethodResponse utility type to easily get the return type of an endpoint on a client -
#1833
cec023d
Thanks @ngraef! - Fix identification of required properties whenstrictNullChecks
is disabled -
Updated dependencies [
cec023d
]:
-- a956d5d
Thanks @gzm0! - Add support for client["/endpoint"].GET()
style calls
-
#1809
f21c05b
Thanks @gzm0! - perf: remove unnecessaryasync
keywords (for reduced code size) -
#1827
ba0d595
Thanks @ngraef! - Fix typing for environments without DOM lib
- #1762
7698546
Thanks @thatsprettyfaroutman! - Allow FormData through defaultBodySerializer
- Updated dependencies [
bcc9222
]:
-
#1717
335530c
Thanks @kerwanp! - Ignore configuration files in published package -
#1717
335530c
Thanks @kerwanp! - Create own client type for easier reusability -
Updated dependencies [
335530c
]:
-
#1719
a8f2253
Thanks @drwpow! - Remove nanoid from dependencies -
#1719
a8f2253
Thanks @drwpow! - Fix "failed to execute fetch on Window" error -
#1719
a8f2253
Thanks @drwpow! - Revert customFetch API back tofetch(input: Request)
-
⚠️ Breaking Change:openapi-typescript@7
is needed to work. You’ll get type errors withopenapi-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: TheContent-Type
header is no longer sent by default if a body payload is attached. -
⚠️ Breaking Change: ThecustomFetch
type now callsfetch(input: string, init: RequestInit)
and the types have been updated, rather thanfetch(input: Request)
introduced in0.9.0
. -
Added
id
to middleware handlers that create a unique ID per-fetch
- #1697
e77ce50
Thanks @armandabric! - Expose original request on Middleware.onResponse
- #1672
64cb619
Thanks @jaredLunde! - Fixes issue where native properties were not excluded from custom properties in the CustomRequest class
-
#1597
1f7ad9d
Thanks @armandabric! - Allow to select the response content type -
#1585
4e06f86
Thanks @mikestopcontinues! - Update types for path-methods object -
#1610
cc8073b
Thanks @illright! - Fix data/error discrimination when there are empty-body errors
- #1550
a5a9cc7
Thanks @shirish87! - Fix 'Content-Type' header being removed from requests with multipart/form-data body
-
#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.
-
#1479
c6d945b
Thanks @darwish! - Fixed build of openapi-typescript-helpers for CommonJS environments -
#1534
2bbeb92
Thanks @drwpow! - Add support for automatic label & matrix path serialization. -
#1534
2bbeb92
Thanks @drwpow! - Remove leading question marks from querySerializer -
#1530
4765658
Thanks @wydengyre! - Exports the ClientMethod utility type. -
Updated dependencies [
c6d945b
]:
-
#1424
8f5adb3
Thanks @drwpow! - Separate TS types to be managed manually -
Updated dependencies [
5be2082
]:
- #1404
93204e4
Thanks @drwpow! - Fix behavior for empty arrays and objects in defaultquerySerializer
- #1399
4fca1e4
Thanks @drwpow! -⚠️ Breaking: change default querySerializer behavior to producestyle: form
,explode: true
query params according to the OpenAPI specification. Also adds support fordeepObject
s (square bracket style).
- #1373
fd3e96f
Thanks @HugeLetters! - Added the option to provide custom fetch function to individual API calls.
-
#1366
04dbd6d
Thanks @drwpow! - Fix empty object being required param -
Updated dependencies [
04dbd6d
]:
- #1360
b59e431
Thanks @marcomuser! - Fix CJS build for TypeScript
- Updated dependencies [
996e51e
]:
- Updated dependencies [
e63a345
]:
- #1192
38ee8b4
Thanks @psychedelicious! - Fix header handling for FormData
-
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 ofmultipart/form-data
vsapplication/json
, it’s not inherently clear which you’d want. Or if there were multiple JSON-like media types.
- #1183
431a98f
Thanks @psychedelicious! - Add globalquerySerializer()
option tocreateClient()
-
#1169
74bfc0d
Thanks @drwpow! - Expose createFinalURL() logic for testing -
#1169
74bfc0d
Thanks @drwpow! - Automatically removeundefined
andnull
query params without requiring querySerializer -
#1169
74bfc0d
Thanks @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