···11-# @hey-api/client-fetch
22-33-## 0.13.1
44-55-### Patch Changes
66-77-- [#2165](https://github.com/hey-api/openapi-ts/pull/2165) [`f23f3ae`](https://github.com/hey-api/openapi-ts/commit/f23f3ae874385e758eb8d43bb4e274c9858a4e40) Thanks [@mrlubos](https://github.com/mrlubos)! - fix(client): do not serialize path param name in url
88-99-## 0.13.0
1010-1111-### Minor Changes
1212-1313-- [#2148](https://github.com/hey-api/openapi-ts/pull/2148) [`10d2e03`](https://github.com/hey-api/openapi-ts/commit/10d2e03b8295e4e887fab8d023aa823699efbae8) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: export `buildClientParams` function
1414-1515-## 0.12.0
1616-1717-### Minor Changes
1818-1919-- [#2123](https://github.com/hey-api/openapi-ts/pull/2123) [`4d8c030`](https://github.com/hey-api/openapi-ts/commit/4d8c03038979c9a75315cc158789b3c198c62f90) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: add responseStyle option
2020-2121- **BREAKING**: Update `@hey-api/openapi-ts` to the latest version.
2222-2323-## 0.11.0
2424-2525-### Minor Changes
2626-2727-- [#2094](https://github.com/hey-api/openapi-ts/pull/2094) [`8152aaf`](https://github.com/hey-api/openapi-ts/commit/8152aaf4892c48b79fd3dc486eb3c0ea333dc3e6) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: accept responses/errors map instead of union
2828-2929- **BREAKING**: Update `@hey-api/openapi-ts` to the latest version.
3030-3131-## 0.10.2
3232-3333-### Patch Changes
3434-3535-- [#2029](https://github.com/hey-api/openapi-ts/pull/2029) [`1f99066`](https://github.com/hey-api/openapi-ts/commit/1f99066efbb2d0e6b9e3710c701293c2cc09d65e) Thanks [@henry-encord](https://github.com/henry-encord)! - feat: support referencing interceptors by index
3636-3737-## 0.10.1
3838-3939-### Patch Changes
4040-4141-- [#2039](https://github.com/hey-api/openapi-ts/pull/2039) [`565e0b8`](https://github.com/hey-api/openapi-ts/commit/565e0b89fbab4556ecdc63dfe08250942681140e) Thanks [@Le0Developer](https://github.com/Le0Developer)! - fix(clients): fix query string encoding with empty lists/objects
4242-4343-## 0.10.0
4444-4545-### Minor Changes
4646-4747-- [#1899](https://github.com/hey-api/openapi-ts/pull/1899) [`fed9699`](https://github.com/hey-api/openapi-ts/commit/fed969985275621c7c2b65ffc760c7c66fafaf72) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: set next field to never and recommend switching to the Next.js client
4848-4949-## 0.9.0
5050-5151-### Minor Changes
5252-5353-- [#1889](https://github.com/hey-api/openapi-ts/pull/1889) [`67c385b`](https://github.com/hey-api/openapi-ts/commit/67c385bf6289a79726b0cdd85fd81ca501cf2248) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add @hey-api/openapi-ts to peer dependencies
5454-5555-## 0.8.4
5656-5757-### Patch Changes
5858-5959-- [#1850](https://github.com/hey-api/openapi-ts/pull/1850) [`fe43b88`](https://github.com/hey-api/openapi-ts/commit/fe43b889c20a2001f56e259f93f64851a1caa1d1) Thanks [@kelnos](https://github.com/kelnos)! - feat: add support for cookies auth
6060-6161-## 0.8.3
6262-6363-### Patch Changes
6464-6565-- [#1774](https://github.com/hey-api/openapi-ts/pull/1774) [`c0b36b9`](https://github.com/hey-api/openapi-ts/commit/c0b36b95645d484034c3af145c5554867568979b) Thanks [@mrlubos](https://github.com/mrlubos)! - docs: announce Hey API platform
6666-6767-## 0.8.2
6868-6969-### Patch Changes
7070-7171-- [#1753](https://github.com/hey-api/openapi-ts/pull/1753) [`b8cc9f8`](https://github.com/hey-api/openapi-ts/commit/b8cc9f8a5eaf4f4ff345abc49c14c6b96744c2ea) Thanks [@LinuCC](https://github.com/LinuCC)! - fix: dropping Content-Type header with falsey but valid json body
7272-7373-## 0.8.1
7474-7575-### Patch Changes
7676-7777-- [#1674](https://github.com/hey-api/openapi-ts/pull/1674) [`7f0f4a7`](https://github.com/hey-api/openapi-ts/commit/7f0f4a76b06c8fafb33581b522faf8efc6fd85ac) Thanks [@ale18V](https://github.com/ale18V)! - Return a string from urlSearchParamsBodySerializer instead of a URLSearchParams object.
7878- This is due to some runtimes not being able to handle the URLSearchParams object as fetch body.
7979-8080-## 0.8.0
8181-8282-### Minor Changes
8383-8484-- [#1661](https://github.com/hey-api/openapi-ts/pull/1661) [`bb6d46a`](https://github.com/hey-api/openapi-ts/commit/bb6d46ae119ce4e7e3a2ab3fded74ac4fb4cdff2) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: make createConfig, CreateClientConfig, and Config accept ClientOptions generic
8585-8686- ### Added `ClientOptions` interface
8787-8888- The `Config` interface now accepts an optional generic extending `ClientOptions` instead of `boolean` type `ThrowOnError`.
8989-9090- ```ts
9191- type Foo = Config<false>; // [!code --]
9292- type Foo = Config<{ throwOnError: false }>; // [!code ++]
9393- ```
9494-9595-## 0.7.3
9696-9797-### Patch Changes
9898-9999-- [#1637](https://github.com/hey-api/openapi-ts/pull/1637) [`2dc380e`](https://github.com/hey-api/openapi-ts/commit/2dc380eabc17c723654beb04ecd7bce6d33d3b49) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: update keywords in package.json
100100-101101-- [#1649](https://github.com/hey-api/openapi-ts/pull/1649) [`603541e`](https://github.com/hey-api/openapi-ts/commit/603541e307dc2953da7dddd300176865629b50bb) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle BigInt in JSON body serializer
102102-103103-- [#1646](https://github.com/hey-api/openapi-ts/pull/1646) [`2cbffeb`](https://github.com/hey-api/openapi-ts/commit/2cbffeb2cdd6c6143cd68cac68369584879dda31) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: remove client from Options interface
104104-105105-- [#1646](https://github.com/hey-api/openapi-ts/pull/1646) [`2cbffeb`](https://github.com/hey-api/openapi-ts/commit/2cbffeb2cdd6c6143cd68cac68369584879dda31) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: export TDataShape interface
106106-107107-## 0.7.2
108108-109109-### Patch Changes
110110-111111-- [#1626](https://github.com/hey-api/openapi-ts/pull/1626) [`8eba19d`](https://github.com/hey-api/openapi-ts/commit/8eba19d4092fc0903572ab9fdadf0b4c26928ba2) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: export CreateClientConfig type
112112-113113-## 0.7.1
114114-115115-### Patch Changes
116116-117117-- [#1600](https://github.com/hey-api/openapi-ts/pull/1600) [`0432418`](https://github.com/hey-api/openapi-ts/commit/0432418d72c94ef94865f8216ed2f723ad5191f9) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: bundle clients from compiled index file
118118-119119-- [#1596](https://github.com/hey-api/openapi-ts/pull/1596) [`4784727`](https://github.com/hey-api/openapi-ts/commit/47847276e8bc854045044dd414382080270dd779) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add null to valid bodySerializer types
120120-121121-## 0.7.0
122122-123123-### Minor Changes
124124-125125-- [#1568](https://github.com/hey-api/openapi-ts/pull/1568) [`465410c`](https://github.com/hey-api/openapi-ts/commit/465410c201eb19e737e3143ad53a146e95f80107) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: change the default parser
126126-127127-## 0.6.0
128128-129129-### Minor Changes
130130-131131-- **BREAKING**: please update `@hey-api/openapi-ts` to the latest version
132132-133133- feat: replace accessToken and apiKey functions with auth
134134-135135- ### Added `auth` option
136136-137137- Client package functions `accessToken` and `apiKey` were replaced with a single `auth` function for fetching auth tokens. If your API supports multiple auth mechanisms, you can use the `auth` argument to return the appropriate token.
138138-139139- ```js
140140- import { client } from 'client/sdk.gen';
141141-142142- client.setConfig({
143143- accessToken: () => '<my_token>', // [!code --]
144144- apiKey: () => '<my_token>', // [!code --]
145145- auth: (auth) => '<my_token>', // [!code ++]
146146- });
147147- ```
148148-149149-- **BREAKING**: rename exported Security interface to Auth
150150-151151-- [#1507](https://github.com/hey-api/openapi-ts/pull/1507) [`e2e1410`](https://github.com/hey-api/openapi-ts/commit/e2e1410b22c0c84c40d1b1803e9650d546350cb7) Thanks [@nimobeeren](https://github.com/nimobeeren)! - **BREAKING**: return raw response body (of type `ReadableStream`) when `Content-Type` response header is not provided and `parseAs` is set to `auto`
152152-153153-## 0.5.7
154154-155155-### Patch Changes
156156-157157-- [#1468](https://github.com/hey-api/openapi-ts/pull/1468) [`20d7497`](https://github.com/hey-api/openapi-ts/commit/20d7497acb6c046f6a4206c2d8137414e17b2263) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle indexed access checks
158158-159159-- [#1471](https://github.com/hey-api/openapi-ts/pull/1471) [`f86d293`](https://github.com/hey-api/openapi-ts/commit/f86d293f18f133ef6dd2f4864d037611b81edd26) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add links to the experimental parser callouts
160160-161161-## 0.5.6
162162-163163-### Patch Changes
164164-165165-- [#1452](https://github.com/hey-api/openapi-ts/pull/1452) [`ba56424`](https://github.com/hey-api/openapi-ts/commit/ba5642486cdd5461c2372c34b63019c02bc6874e) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: export Security interface
166166-167167-## 0.5.5
168168-169169-### Patch Changes
170170-171171-- [#1430](https://github.com/hey-api/openapi-ts/pull/1430) [`9cec9e8`](https://github.com/hey-api/openapi-ts/commit/9cec9e8582c12a8c041b922d9587e16f6f19782a) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: add responseValidator option
172172-173173-## 0.5.4
174174-175175-### Patch Changes
176176-177177-- [#1424](https://github.com/hey-api/openapi-ts/pull/1424) [`cbf4e84`](https://github.com/hey-api/openapi-ts/commit/cbf4e84db7f3a47f19d8c3eaa87c71b27912c1a2) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: assign fetch to variable before sending requests
178178-179179-## 0.5.3
180180-181181-### Patch Changes
182182-183183-- [#1409](https://github.com/hey-api/openapi-ts/pull/1409) [`646064d`](https://github.com/hey-api/openapi-ts/commit/646064d1aecea988d2b4df73bd24b2ee83394ae0) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: support oauth2 and apiKey security schemes
184184-185185-## 0.5.2
186186-187187-### Patch Changes
188188-189189-- [#1394](https://github.com/hey-api/openapi-ts/pull/1394) [`ec48d32`](https://github.com/hey-api/openapi-ts/commit/ec48d323d80de8e6a47ce7ecd732288f0a47e17a) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: disallow additional query parameters in experimental parser output
190190-191191-## 0.5.1
192192-193193-### Patch Changes
194194-195195-- [#1391](https://github.com/hey-api/openapi-ts/pull/1391) [`fa8b0f1`](https://github.com/hey-api/openapi-ts/commit/fa8b0f11ed99c63f694a494944ccc2fbfa9706cc) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: assign default fetch implementation dynamically to work with msw
196196-197197-## 0.5.0
198198-199199-### Minor Changes
200200-201201-- [#1333](https://github.com/hey-api/openapi-ts/pull/1333) [`734a62d`](https://github.com/hey-api/openapi-ts/commit/734a62dd8d594b8266964fe16766a481d37eb7df) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: add buildUrl() method
202202-203203- ## Build URL
204204-205205- ::: warning
206206- To use this feature, you must opt in to the [experimental parser](/openapi-ts/configuration#parser).
207207- :::
208208-209209- If you need to access the compiled URL, you can use the `buildUrl()` method. It's loosely typed by default to accept almost any value; in practice, you will want to pass a type hint.
210210-211211- ```ts
212212- type FooData = {
213213- path: {
214214- fooId: number;
215215- };
216216- query?: {
217217- bar?: string;
218218- };
219219- url: '/foo/{fooId}';
220220- };
221221-222222- const url = client.buildUrl<FooData>({
223223- path: {
224224- fooId: 1,
225225- },
226226- query: {
227227- bar: 'baz',
228228- },
229229- url: '/foo/{fooId}',
230230- });
231231- console.log(url); // prints '/foo/1?bar=baz'
232232- ```
233233-234234-### Patch Changes
235235-236236-- [#1333](https://github.com/hey-api/openapi-ts/pull/1333) [`734a62d`](https://github.com/hey-api/openapi-ts/commit/734a62dd8d594b8266964fe16766a481d37eb7df) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: experimental parser generates url inside data types
237237-238238-## 0.4.4
239239-240240-### Patch Changes
241241-242242-- [#1296](https://github.com/hey-api/openapi-ts/pull/1296) [`4c853d0`](https://github.com/hey-api/openapi-ts/commit/4c853d090b79245854d13831f64731db4a92978b) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle charset in auto parseAs detection
243243-244244-## 0.4.3
245245-246246-### Patch Changes
247247-248248-- [#1253](https://github.com/hey-api/openapi-ts/pull/1253) [`01dee3d`](https://github.com/hey-api/openapi-ts/commit/01dee3df879232939e43355231147b3d910fb482) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: update sponsorship links
249249-250250-## 0.4.2
251251-252252-### Patch Changes
253253-254254-- [#1151](https://github.com/hey-api/openapi-ts/pull/1151) [`587791d`](https://github.com/hey-api/openapi-ts/commit/587791dfede0167fbed229281467e4c4875936f5) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: update website domain, add license documentation
255255-256256-## 0.4.1
257257-258258-### Patch Changes
259259-260260-- [#1145](https://github.com/hey-api/openapi-ts/pull/1145) [`a0a5551`](https://github.com/hey-api/openapi-ts/commit/a0a55510d30a1a8dea0ade4908b5b13d51b5f9e6) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: update license field in package.json to match the license, revert client packages license to MIT
261261-262262-## 0.4.0
263263-264264-### Minor Changes
265265-266266-- [#1098](https://github.com/hey-api/openapi-ts/pull/1098) [`df5c690`](https://github.com/hey-api/openapi-ts/commit/df5c69048a03a1c7729a5200c586164287a8a6fa) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: add error interceptors
267267-268268-### Patch Changes
269269-270270-- [#1098](https://github.com/hey-api/openapi-ts/pull/1098) [`df5c690`](https://github.com/hey-api/openapi-ts/commit/df5c69048a03a1c7729a5200c586164287a8a6fa) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: throw raw error when throwOnError is true
271271-272272-## 0.3.4
273273-274274-### Patch Changes
275275-276276-- [#1092](https://github.com/hey-api/openapi-ts/pull/1092) [`7f986c2`](https://github.com/hey-api/openapi-ts/commit/7f986c2c7726ed8fbf16f8b235b7769c7d990502) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: export RequestResult type
277277-278278-## 0.3.3
279279-280280-### Patch Changes
281281-282282-- [#1083](https://github.com/hey-api/openapi-ts/pull/1083) [`fe743c2`](https://github.com/hey-api/openapi-ts/commit/fe743c2d41c23bf7e1706bceedd6319299131197) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: export client-facing types again
283283-284284-## 0.3.2
285285-286286-### Patch Changes
287287-288288-- [#1075](https://github.com/hey-api/openapi-ts/pull/1075) [`11a276a`](https://github.com/hey-api/openapi-ts/commit/11a276a1e35dde0735363e892d8142016fd87eec) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: properly handle dual publishing and type generation
289289-290290-## 0.3.1
291291-292292-### Patch Changes
293293-294294-- [#1057](https://github.com/hey-api/openapi-ts/pull/1057) [`7ae2b1d`](https://github.com/hey-api/openapi-ts/commit/7ae2b1db047f3b6efe917a8b43ac7c851fb86c8f) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: allow responseTransformer property with body and headers
295295-296296-- [#1064](https://github.com/hey-api/openapi-ts/pull/1064) [`2079c6e`](https://github.com/hey-api/openapi-ts/commit/2079c6e83a6b71e157c8e7ea56260b4e9ff8411d) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: encode path params
297297-298298-## 0.3.0
299299-300300-### Minor Changes
301301-302302-- [#1011](https://github.com/hey-api/openapi-ts/pull/1011) [`7ebc1d4`](https://github.com/hey-api/openapi-ts/commit/7ebc1d44af74db2522219d71d240325f6bc5689d) Thanks [@goltra](https://github.com/goltra)! - feat: Function to clear and check if exist an interceptor in client-fetch
303303-304304-## 0.2.4
305305-306306-### Patch Changes
307307-308308-- [#899](https://github.com/hey-api/openapi-ts/pull/899) [`a8c84c0`](https://github.com/hey-api/openapi-ts/commit/a8c84c02dbb5ef1a59f5d414dff425e135c7a446) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: preserve key name in Date transformation
309309-310310-- [#901](https://github.com/hey-api/openapi-ts/pull/901) [`7825a2f`](https://github.com/hey-api/openapi-ts/commit/7825a2fba566a76c63775172ef0569ef375406b6) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: export more types to resolve TypeScript errors
311311-312312-## 0.2.3
313313-314314-### Patch Changes
315315-316316-- [#895](https://github.com/hey-api/openapi-ts/pull/895) [`44de8d8`](https://github.com/hey-api/openapi-ts/commit/44de8d89556b3abf48acc4e23c9b9c198059c757) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: define ThrowOnError generic as the last argument
317317-318318-## 0.2.2
319319-320320-### Patch Changes
321321-322322-- [#877](https://github.com/hey-api/openapi-ts/pull/877) [`72e2c4f`](https://github.com/hey-api/openapi-ts/commit/72e2c4fd7d07e532a848078c034bf33b6558ad3c) Thanks [@qqilihq](https://github.com/qqilihq)! - Relax JSON content type check so that e.g. `application/json; charset=utf-8` is properly detected
323323-324324-## 0.2.1
325325-326326-### Patch Changes
327327-328328-- [#864](https://github.com/hey-api/openapi-ts/pull/864) [`ec6bfc8`](https://github.com/hey-api/openapi-ts/commit/ec6bfc8292cce7663dfc6e0fcd89b44c56f08bb4) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: infer response shape based on throwOnError option value
329329-330330-- [#852](https://github.com/hey-api/openapi-ts/pull/852) [`93e2d11`](https://github.com/hey-api/openapi-ts/commit/93e2d11d2a8ddd1f78dde46eceeb5543cae07e36) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: process application types except for application/json as blobs
331331-332332-- [#873](https://github.com/hey-api/openapi-ts/pull/873) [`a73da1c`](https://github.com/hey-api/openapi-ts/commit/a73da1c854503246b6c58f1abea5dd77727eedca) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: export RequestOptionsBase interface
333333-334334-- [#863](https://github.com/hey-api/openapi-ts/pull/863) [`da92c53`](https://github.com/hey-api/openapi-ts/commit/da92c535c14e3217d565472fe65c687243bc0dd8) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: cast query params dates into ISO strings
335335-336336-## 0.2.0
337337-338338-### Minor Changes
339339-340340-- [#830](https://github.com/hey-api/openapi-ts/pull/830) [`babf11a`](https://github.com/hey-api/openapi-ts/commit/babf11ae082af642ac71cfee9c523cc976132a50) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: remove default client export (see migration docs)
341341-342342-- [#830](https://github.com/hey-api/openapi-ts/pull/830) [`babf11a`](https://github.com/hey-api/openapi-ts/commit/babf11ae082af642ac71cfee9c523cc976132a50) Thanks [@mrlubos](https://github.com/mrlubos)! - feat: add `setConfig()` method
343343-344344-## 0.1.14
345345-346346-### Patch Changes
347347-348348-- [#845](https://github.com/hey-api/openapi-ts/pull/845) [`8c9c874`](https://github.com/hey-api/openapi-ts/commit/8c9c8749594622283eed2c37bddfa0f1b8cf23a4) Thanks [@julianklumpers](https://github.com/julianklumpers)! - Expose Config interface to consumers for Typescript augmentation
349349-350350-## 0.1.13
351351-352352-### Patch Changes
353353-354354-- [#842](https://github.com/hey-api/openapi-ts/pull/842) [`8e3c634`](https://github.com/hey-api/openapi-ts/commit/8e3c6343672b9280365c3266f94e4acba533bf29) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: correctly set default parseAs value to "auto"
355355-356356-## 0.1.12
357357-358358-### Patch Changes
359359-360360-- [#816](https://github.com/hey-api/openapi-ts/pull/816) [`0c4ee06`](https://github.com/hey-api/openapi-ts/commit/0c4ee06548f177ce83d73802471c659834c63566) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: remove Content-Type header when there's no request body
361361-362362-## 0.1.11
363363-364364-### Patch Changes
365365-366366-- [#613](https://github.com/hey-api/openapi-ts/pull/613) [`c0ee1e3`](https://github.com/hey-api/openapi-ts/commit/c0ee1e3b56d67ab922491c488233bd89c8902986) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: use opts to get responseTransformer instead of options
367367-368368-## 0.1.10
369369-370370-### Patch Changes
371371-372372-- [#788](https://github.com/hey-api/openapi-ts/pull/788) [`ecd94f2`](https://github.com/hey-api/openapi-ts/commit/ecd94f2adab1dbe10e7a9c310d1fb6d1f170d332) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle application/x-www-form-urlencoded content in request body
373373-374374-## 0.1.9
375375-376376-### Patch Changes
377377-378378-- [#779](https://github.com/hey-api/openapi-ts/pull/779) [`e7e98d2`](https://github.com/hey-api/openapi-ts/commit/e7e98d279fe0ee4c71ae72a7b57afdd517a89641) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: always use client options when passed to service
379379-380380-## 0.1.8
381381-382382-### Patch Changes
383383-384384-- [#756](https://github.com/hey-api/openapi-ts/pull/756) [`d546a3f`](https://github.com/hey-api/openapi-ts/commit/d546a3f9fd0a6ff5181deb50ed467acd75370889) Thanks [@jumika](https://github.com/jumika)! - fix: allow number as body type
385385-386386-## 0.1.7
387387-388388-### Patch Changes
389389-390390-- [#736](https://github.com/hey-api/openapi-ts/pull/736) [`8410046`](https://github.com/hey-api/openapi-ts/commit/8410046c45d25db48ba940a0c6c7a7cda9e86b6a) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: handle async response transformers
391391-392392-## 0.1.6
393393-394394-### Patch Changes
395395-396396-- [#700](https://github.com/hey-api/openapi-ts/pull/700) [`aa661a1`](https://github.com/hey-api/openapi-ts/commit/aa661a136d1174eadf4d11538e473b0d96b91b81) Thanks [@lsdch](https://github.com/lsdch)! - export RequestResult type
397397-398398-## 0.1.5
399399-400400-### Patch Changes
401401-402402-- [#698](https://github.com/hey-api/openapi-ts/pull/698) [`fc2b166`](https://github.com/hey-api/openapi-ts/commit/fc2b166c8f683ece948284cf7a629fcd5b096b40) Thanks [@lsdch](https://github.com/lsdch)! - export RequestResult type
403403-404404-## 0.1.4
405405-406406-### Patch Changes
407407-408408-- [#674](https://github.com/hey-api/openapi-ts/pull/674) [`da31b74`](https://github.com/hey-api/openapi-ts/commit/da31b7424b30e00233df5a3867022832c4981312) Thanks [@mlankamp](https://github.com/mlankamp)! - fix: allow non-object array in body
409409-410410-- [#682](https://github.com/hey-api/openapi-ts/pull/682) [`34980a4`](https://github.com/hey-api/openapi-ts/commit/34980a4dc8269c9256d65984ff29270851689c43) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: stronger types for result shape
411411-412412-- [#682](https://github.com/hey-api/openapi-ts/pull/682) [`34980a4`](https://github.com/hey-api/openapi-ts/commit/34980a4dc8269c9256d65984ff29270851689c43) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: generate correct error types
413413-414414-## 0.1.3
415415-416416-### Patch Changes
417417-418418-- [#639](https://github.com/hey-api/openapi-ts/pull/639) [`820002f`](https://github.com/hey-api/openapi-ts/commit/820002ffe687b01c7a9b2250e19ddbafd1aaed71) Thanks [@mrlubos](https://github.com/mrlubos)! - fix: do not widen body type on optional prop
419419-420420-## 0.1.2
421421-422422-### Patch Changes
423423-424424-- fix: JSON stringify object headers ([#616](https://github.com/hey-api/openapi-ts/pull/616))
425425-426426-## 0.1.1
427427-428428-### Patch Changes
429429-430430-- fix: export Client interface ([#610](https://github.com/hey-api/openapi-ts/pull/610))
431431-432432-## 0.1.0
433433-434434-### Minor Changes
435435-436436-- feat: initial release ([#602](https://github.com/hey-api/openapi-ts/pull/602))
-21
packages/client-fetch/LICENSE.md
···11-MIT License
22-33-Copyright (c) Hey API
44-55-Permission is hereby granted, free of charge, to any person obtaining a copy
66-of this software and associated documentation files (the "Software"), to deal
77-in the Software without restriction, including without limitation the rights
88-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99-copies of the Software, and to permit persons to whom the Software is
1010-furnished to do so, subject to the following conditions:
1111-1212-The above copyright notice and this permission notice shall be included in all
1313-copies or substantial portions of the Software.
1414-1515-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121-SOFTWARE.
-101
packages/client-fetch/README.md
···11-<div align="center">
22- <img alt="Hey API logo" height="150" src="https://heyapi.dev/images/logo-300w.png" width="150">
33- <h1 align="center"><b>Fetch API Client</b></h1>
44- <p align="center">🚀 Fetch API client for `@hey-api/openapi-ts` codegen.</p>
55-</div>
66-77-[Live demo](https://stackblitz.com/edit/hey-api-client-fetch-example?file=openapi-ts.config.ts,src%2Fclient%2Fschemas.gen.ts,src%2Fclient%2Fsdk.gen.ts,src%2Fclient%2Ftypes.gen.ts,src%2FApp.tsx)
88-99-## Features
1010-1111-- seamless integration with `@hey-api/openapi-ts` ecosystem
1212-- type-safe response data and errors
1313-- response data validation and transformation
1414-- access to the original request and response
1515-- granular request and response customization options
1616-- minimal learning curve thanks to extending the underlying technology
1717-- support bundling inside the generated output
1818-- [platform](https://heyapi.dev/openapi-ts/integrations) for automating codegen builds
1919-2020-## Dashboard
2121-2222-Hey API is an ecosystem of products helping you build better APIs. Superpower your codegen and APIs with our platform.
2323-2424-[Sign In](https://app.heyapi.dev) to Hey API platform.
2525-2626-## Documentation
2727-2828-Please visit our [website](https://heyapi.dev) for documentation, guides, migrating, and more.
2929-3030-## Sponsors
3131-3232-Love Hey API? Become our [sponsor](https://github.com/sponsors/hey-api).
3333-3434-<h3 align="center">Gold</h3>
3535-3636-<table align="center" style="justify-content: center;align-items: center;display: flex;">
3737- <tbody>
3838- <tr>
3939- <td align="center">
4040- <p></p>
4141- <p>
4242- <a href="https://kutt.it/pkEZyc" target="_blank">
4343- <picture height="50px">
4444- <source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/images/stainless-logo-wordmark-480w.jpeg">
4545- <img alt="Stainless logo" height="50px" src="https://heyapi.dev/images/stainless-logo-wordmark-480w.jpeg">
4646- </picture>
4747- </a>
4848- <br/>
4949- Generate best-in-class SDKs.
5050- <br/>
5151- <a href="https://kutt.it/pkEZyc" style="text-decoration:none;" target="_blank">
5252- stainless.com
5353- </a>
5454- </p>
5555- <p></p>
5656- </td>
5757- </tr>
5858- </tbody>
5959-</table>
6060-6161-<h3 align="center">Silver</h3>
6262-6363-<table align="center" style="justify-content: center;align-items: center;display: flex;">
6464- <tbody>
6565- <tr>
6666- <td align="center">
6767- <a href="https://kutt.it/skQUVd" target="_blank">
6868- <picture height="40px">
6969- <source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/images/scalar-logo-wordmark-480w.jpeg">
7070- <img alt="Scalar logo" height="40px" src="https://heyapi.dev/images/scalar-logo-wordmark-480w.jpeg">
7171- </picture>
7272- </a>
7373- <br/>
7474- <a href="https://kutt.it/skQUVd" style="text-decoration:none;" target="_blank">
7575- scalar.com
7676- </a>
7777- </td>
7878- </tr>
7979- </tbody>
8080-</table>
8181-8282-<h3 align="center">Bronze</h3>
8383-8484-<table align="center" style="justify-content: center;align-items: center;display: flex;">
8585- <tbody>
8686- <tr>
8787- <td align="center">
8888- <a href="https://kutt.it/YpaKsX" target="_blank">
8989- <picture height="34px">
9090- <source media="(prefers-color-scheme: dark)" srcset="https://heyapi.dev/images/kinde-logo-wordmark-dark-480w.webp">
9191- <img alt="Kinde logo" height="34px" src="https://heyapi.dev/images/kinde-logo-wordmark-480w.jpeg">
9292- </picture>
9393- </a>
9494- </td>
9595- </tr>
9696- </tbody>
9797-</table>
9898-9999-## Migration Guides
100100-101101-[OpenAPI Typescript Codegen](https://heyapi.dev/openapi-ts/migrating#openapi-typescript-codegen)
···11+import type { Auth } from '../../client-core/bundle/auth';
12import type {
22- Auth,
33 Client as CoreClient,
44 Config as CoreConfig,
55-} from '@hey-api/client-core';
66-55+} from '../../client-core/bundle/types';
76import type { Middleware } from './utils';
8798export type ResponseStyle = 'data' | 'fields';
···55 sendRequest,
66} from '@hey-api/json-schema-ref-parser';
7788-import { mergeHeaders } from './mergeHeaders';
88+import { mergeHeaders } from './plugins/@hey-api/client-fetch/bundle';
99import type { Config } from './types/config';
1010import type { WatchValues } from './types/types';
1111
-32
packages/openapi-ts/src/mergeHeaders.ts
···11-// copy-pasted from @hey-api/client-fetch
22-export const mergeHeaders = (
33- ...headers: Array<RequestInit['headers'] | undefined>
44-): Headers => {
55- const mergedHeaders = new Headers();
66- for (const header of headers) {
77- if (!header || typeof header !== 'object') {
88- continue;
99- }
1010-1111- const iterator =
1212- header instanceof Headers ? header.entries() : Object.entries(header);
1313-1414- for (const [key, value] of iterator) {
1515- if (value === null) {
1616- mergedHeaders.delete(key);
1717- } else if (Array.isArray(value)) {
1818- for (const v of value) {
1919- mergedHeaders.append(key, v as string);
2020- }
2121- } else if (value !== undefined) {
2222- // assume object headers are meant to be JSON stringified, i.e. their
2323- // content value in OpenAPI specification is 'application/json'
2424- mergedHeaders.set(
2525- key,
2626- typeof value === 'object' ? JSON.stringify(value) : (value as string),
2727- );
2828- }
2929- }
3030- }
3131- return mergedHeaders;
3232-};
···3636 */
3737 baseUrl?: string | number | boolean;
3838 /**
3939- * Bundle the client module? Set this to true if don't want to declare it
4040- * as a separate dependency. When true, the client module will be generated
4141- * from the client package and bundled with the rest of the generated output.
4242- * This is useful if you're repackaging the output, publishing it to other
4343- * users, and you don't want them to install any dependencies.
3939+ * Bundle the client module? When `true`, the client module will be copied
4040+ * from the client plugin and bundled with the generated output.
4441 *
4545- * @default false
4242+ * @default true
4643 */
4744 bundle?: boolean;
4848- /**
4949- * **This is an experimental feature.**
5050- *
5151- * When `bundle` is set to `true`, you can optionally set this option
5252- * to `true` to bundle the client source code instead of the `dist` folder.
5353- * This will copy the TypeScript files instead of CJS/ESM JavaScript files.
5454- *
5555- * @default false
5656- */
5757- bundleSource_EXPERIMENTAL?: boolean;
5845 /**
5946 * Should the exports from the generated files be re-exported in the index
6047 * barrel file?