fork of hey-api/openapi-ts because I need some additional things

Merge pull request #1632 from hey-api/changeset-release/main

Version Packages

authored by

Lubos and committed by
GitHub
c928e800 14cc209d

+160 -84
-26
.changeset/afraid-eyes-greet.md
··· 1 - --- 2 - '@hey-api/openapi-ts': patch 3 - --- 4 - 5 - fix: move sdk.throwOnError option to client.throwOnError 6 - 7 - ### Moved `sdk.throwOnError` option 8 - 9 - This SDK configuration option has been moved to the client plugins where applicable. Not every client can be configured to throw on error, so it didn't make sense to expose the option when it didn't have any effect. 10 - 11 - ```js 12 - export default { 13 - input: 'path/to/openapi.json', 14 - output: 'src/client', 15 - plugins: [ 16 - { 17 - name: '@hey-api/client-fetch', 18 - throwOnError: true, // [!code ++] 19 - }, 20 - { 21 - name: '@hey-api/sdk', 22 - throwOnError: true, // [!code --] 23 - }, 24 - ], 25 - }; 26 - ```
-14
.changeset/friendly-jars-argue.md
··· 1 - --- 2 - '@hey-api/openapi-ts': patch 3 - --- 4 - 5 - fix: sdks import client from client.gen.ts instead of defining it inside the file 6 - 7 - ### Added `client.gen.ts` file 8 - 9 - The internal `client` instance previously located in `sdk.gen.ts` is now defined in `client.gen.ts`. If you're importing it in your code, update the import module. 10 - 11 - ```js 12 - import { client } from 'client/sdk.gen'; // [!code --] 13 - import { client } from 'client/client.gen'; // [!code ++] 14 - ```
-5
.changeset/happy-ladybugs-type.md
··· 1 - --- 2 - '@hey-api/openapi-ts': patch 3 - --- 4 - 5 - fix: throw if inferred plugin not found
-18
.changeset/late-moons-impress.md
··· 1 - --- 2 - '@hey-api/openapi-ts': minor 3 - --- 4 - 5 - feat: move clients to plugins 6 - 7 - ### Client plugins 8 - 9 - Clients are now plugins generating their own `client.gen.ts` file. There's no migration needed if you're using CLI. If you're using the configuration file, move `client` options to `plugins`. 10 - 11 - ```js 12 - export default { 13 - client: '@hey-api/client-fetch', // [!code --] 14 - input: 'path/to/openapi.json', 15 - output: 'src/client', 16 - plugins: ['@hey-api/client-fetch'], // [!code ++] 17 - }; 18 - ```
-7
.changeset/tiny-poets-cross.md
··· 1 - --- 2 - '@hey-api/client-axios': patch 3 - '@hey-api/client-fetch': patch 4 - '@hey-api/client-nuxt': patch 5 - --- 6 - 7 - fix: export CreateClientConfig type
+7
examples/openapi-ts-axios/CHANGELOG.md
··· 1 1 # @example/openapi-ts-axios 2 2 3 + ## 0.0.25 4 + 5 + ### Patch Changes 6 + 7 + - Updated dependencies [[`8eba19d`](https://github.com/hey-api/openapi-ts/commit/8eba19d4092fc0903572ab9fdadf0b4c26928ba2)]: 8 + - @hey-api/client-axios@0.5.2 9 + 3 10 ## 0.0.24 4 11 5 12 ### Patch Changes
+1 -1
examples/openapi-ts-axios/package.json
··· 1 1 { 2 2 "name": "@example/openapi-ts-axios", 3 3 "private": true, 4 - "version": "0.0.24", 4 + "version": "0.0.25", 5 5 "type": "module", 6 6 "scripts": { 7 7 "build": "tsc && vite build",
+7
examples/openapi-ts-fastify/CHANGELOG.md
··· 1 1 # @example/openapi-ts-fastify 2 2 3 + ## 0.1.2 4 + 5 + ### Patch Changes 6 + 7 + - Updated dependencies [[`8eba19d`](https://github.com/hey-api/openapi-ts/commit/8eba19d4092fc0903572ab9fdadf0b4c26928ba2)]: 8 + - @hey-api/client-fetch@0.7.2 9 + 3 10 ## 0.1.1 4 11 5 12 ### Patch Changes
+1 -1
examples/openapi-ts-fastify/package.json
··· 1 1 { 2 2 "name": "@example/openapi-ts-fastify", 3 3 "private": true, 4 - "version": "0.1.1", 4 + "version": "0.1.2", 5 5 "type": "module", 6 6 "scripts": { 7 7 "openapi-ts": "openapi-ts",
+7
examples/openapi-ts-fetch/CHANGELOG.md
··· 1 1 # @example/openapi-ts-fetch 2 2 3 + ## 0.0.43 4 + 5 + ### Patch Changes 6 + 7 + - Updated dependencies [[`8eba19d`](https://github.com/hey-api/openapi-ts/commit/8eba19d4092fc0903572ab9fdadf0b4c26928ba2)]: 8 + - @hey-api/client-fetch@0.7.2 9 + 3 10 ## 0.0.42 4 11 5 12 ### Patch Changes
+1 -1
examples/openapi-ts-fetch/package.json
··· 1 1 { 2 2 "name": "@example/openapi-ts-fetch", 3 3 "private": true, 4 - "version": "0.0.42", 4 + "version": "0.0.43", 5 5 "type": "module", 6 6 "scripts": { 7 7 "build": "tsc && vite build",
+8
examples/openapi-ts-next/CHANGELOG.md
··· 1 + # @example/openapi-ts-next 2 + 3 + ## 0.1.1 4 + 5 + ### Patch Changes 6 + 7 + - Updated dependencies [[`8eba19d`](https://github.com/hey-api/openapi-ts/commit/8eba19d4092fc0903572ab9fdadf0b4c26928ba2)]: 8 + - @hey-api/client-fetch@0.7.2
+1 -1
examples/openapi-ts-next/package.json
··· 1 1 { 2 2 "name": "@example/openapi-ts-next", 3 3 "private": true, 4 - "version": "0.1.0", 4 + "version": "0.1.1", 5 5 "scripts": { 6 6 "build": "next build", 7 7 "dev": "next dev",
+7
examples/openapi-ts-nuxt/CHANGELOG.md
··· 1 1 # @example/openapi-ts-nuxt 2 2 3 + ## 0.0.4 4 + 5 + ### Patch Changes 6 + 7 + - Updated dependencies [[`8eba19d`](https://github.com/hey-api/openapi-ts/commit/8eba19d4092fc0903572ab9fdadf0b4c26928ba2)]: 8 + - @hey-api/client-nuxt@0.1.2 9 + 3 10 ## 0.0.3 4 11 5 12 ### Patch Changes
+1 -1
examples/openapi-ts-nuxt/package.json
··· 1 1 { 2 2 "name": "@example/openapi-ts-nuxt", 3 3 "private": true, 4 - "version": "0.0.3", 4 + "version": "0.0.4", 5 5 "type": "module", 6 6 "scripts": { 7 7 "build": "nuxt build",
+7
examples/openapi-ts-sample/CHANGELOG.md
··· 1 1 # @example/openapi-ts-sample 2 2 3 + ## 0.0.3 4 + 5 + ### Patch Changes 6 + 7 + - Updated dependencies [[`8eba19d`](https://github.com/hey-api/openapi-ts/commit/8eba19d4092fc0903572ab9fdadf0b4c26928ba2)]: 8 + - @hey-api/client-fetch@0.7.2 9 + 3 10 ## 0.0.2 4 11 5 12 ### Patch Changes
+1 -1
examples/openapi-ts-sample/package.json
··· 1 1 { 2 2 "name": "@example/openapi-ts-sample", 3 3 "private": true, 4 - "version": "0.0.2", 4 + "version": "0.0.3", 5 5 "type": "module", 6 6 "scripts": { 7 7 "build": "tsc && vite build",
+7
examples/openapi-ts-tanstack-angular-query-experimental/CHANGELOG.md
··· 1 1 # @example/openapi-ts-tanstack-angular-query-experimental 2 2 3 + ## 0.0.14 4 + 5 + ### Patch Changes 6 + 7 + - Updated dependencies [[`8eba19d`](https://github.com/hey-api/openapi-ts/commit/8eba19d4092fc0903572ab9fdadf0b4c26928ba2)]: 8 + - @hey-api/client-fetch@0.7.2 9 + 3 10 ## 0.0.13 4 11 5 12 ### Patch Changes
+1 -1
examples/openapi-ts-tanstack-angular-query-experimental/package.json
··· 1 1 { 2 2 "name": "@example/openapi-ts-tanstack-angular-query-experimental", 3 - "version": "0.0.13", 3 + "version": "0.0.14", 4 4 "scripts": { 5 5 "ng": "ng", 6 6 "start": "ng serve",
+7
examples/openapi-ts-tanstack-react-query/CHANGELOG.md
··· 1 1 # @example/openapi-ts-tanstack-react-query 2 2 3 + ## 0.0.25 4 + 5 + ### Patch Changes 6 + 7 + - Updated dependencies [[`8eba19d`](https://github.com/hey-api/openapi-ts/commit/8eba19d4092fc0903572ab9fdadf0b4c26928ba2)]: 8 + - @hey-api/client-fetch@0.7.2 9 + 3 10 ## 0.0.24 4 11 5 12 ### Patch Changes
+1 -1
examples/openapi-ts-tanstack-react-query/package.json
··· 1 1 { 2 2 "name": "@example/openapi-ts-tanstack-react-query", 3 3 "private": true, 4 - "version": "0.0.24", 4 + "version": "0.0.25", 5 5 "type": "module", 6 6 "scripts": { 7 7 "build": "tsc && vite build",
+7
examples/openapi-ts-tanstack-svelte-query/CHANGELOG.md
··· 1 1 # @example/openapi-ts-tanstack-svelte-query 2 2 3 + ## 0.0.25 4 + 5 + ### Patch Changes 6 + 7 + - Updated dependencies [[`8eba19d`](https://github.com/hey-api/openapi-ts/commit/8eba19d4092fc0903572ab9fdadf0b4c26928ba2)]: 8 + - @hey-api/client-fetch@0.7.2 9 + 3 10 ## 0.0.24 4 11 5 12 ### Patch Changes
+1 -1
examples/openapi-ts-tanstack-svelte-query/package.json
··· 1 1 { 2 2 "name": "@example/openapi-ts-tanstack-svelte-query", 3 3 "private": true, 4 - "version": "0.0.24", 4 + "version": "0.0.25", 5 5 "type": "module", 6 6 "scripts": { 7 7 "build": "vite build",
+7
examples/openapi-ts-tanstack-vue-query/CHANGELOG.md
··· 1 1 # @example/openapi-ts-tanstack-vue-query 2 2 3 + ## 0.0.25 4 + 5 + ### Patch Changes 6 + 7 + - Updated dependencies [[`8eba19d`](https://github.com/hey-api/openapi-ts/commit/8eba19d4092fc0903572ab9fdadf0b4c26928ba2)]: 8 + - @hey-api/client-fetch@0.7.2 9 + 3 10 ## 0.0.24 4 11 5 12 ### Patch Changes
+1 -1
examples/openapi-ts-tanstack-vue-query/package.json
··· 1 1 { 2 2 "name": "@example/openapi-ts-tanstack-vue-query", 3 3 "private": true, 4 - "version": "0.0.24", 4 + "version": "0.0.25", 5 5 "type": "module", 6 6 "scripts": { 7 7 "build-only": "vite build",
+6
packages/client-axios/CHANGELOG.md
··· 1 1 # @hey-api/client-axios 2 2 3 + ## 0.5.2 4 + 5 + ### Patch Changes 6 + 7 + - [#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 8 + 3 9 ## 0.5.1 4 10 5 11 ### Patch Changes
+1 -1
packages/client-axios/package.json
··· 1 1 { 2 2 "name": "@hey-api/client-axios", 3 - "version": "0.5.1", 3 + "version": "0.5.2", 4 4 "description": "🚀 Axios client for `@hey-api/openapi-ts` codegen.", 5 5 "homepage": "https://heyapi.dev/", 6 6 "repository": {
+6
packages/client-fetch/CHANGELOG.md
··· 1 1 # @hey-api/client-fetch 2 2 3 + ## 0.7.2 4 + 5 + ### Patch Changes 6 + 7 + - [#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 8 + 3 9 ## 0.7.1 4 10 5 11 ### Patch Changes
+1 -1
packages/client-fetch/package.json
··· 1 1 { 2 2 "name": "@hey-api/client-fetch", 3 - "version": "0.7.1", 3 + "version": "0.7.2", 4 4 "description": "🚀 Fetch API client for `@hey-api/openapi-ts` codegen.", 5 5 "homepage": "https://heyapi.dev/", 6 6 "repository": {
+6
packages/client-nuxt/CHANGELOG.md
··· 1 1 # @hey-api/client-nuxt 2 2 3 + ## 0.1.2 4 + 5 + ### Patch Changes 6 + 7 + - [#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 8 + 3 9 ## 0.1.1 4 10 5 11 ### Patch Changes
+1 -1
packages/client-nuxt/package.json
··· 1 1 { 2 2 "name": "@hey-api/client-nuxt", 3 - "version": "0.1.1", 3 + "version": "0.1.2", 4 4 "description": "🚀 Nuxt client for `@hey-api/openapi-ts` codegen.", 5 5 "homepage": "https://heyapi.dev/", 6 6 "repository": {
+57
packages/openapi-ts/CHANGELOG.md
··· 1 1 # @hey-api/openapi-ts 2 2 3 + ## 0.63.0 4 + 5 + ### Minor Changes 6 + 7 + - [#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)! - feat: move clients to plugins 8 + 9 + ### Client plugins 10 + 11 + Clients are now plugins generating their own `client.gen.ts` file. There's no migration needed if you're using CLI. If you're using the configuration file, move `client` options to `plugins`. 12 + 13 + ```js 14 + export default { 15 + client: '@hey-api/client-fetch', // [!code --] 16 + input: 'path/to/openapi.json', 17 + output: 'src/client', 18 + plugins: ['@hey-api/client-fetch'], // [!code ++] 19 + }; 20 + ``` 21 + 22 + ### Patch Changes 23 + 24 + - [#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: move sdk.throwOnError option to client.throwOnError 25 + 26 + ### Moved `sdk.throwOnError` option 27 + 28 + This SDK configuration option has been moved to the client plugins where applicable. Not every client can be configured to throw on error, so it didn't make sense to expose the option when it didn't have any effect. 29 + 30 + ```js 31 + export default { 32 + input: 'path/to/openapi.json', 33 + output: 'src/client', 34 + plugins: [ 35 + { 36 + name: '@hey-api/client-fetch', 37 + throwOnError: true, // [!code ++] 38 + }, 39 + { 40 + name: '@hey-api/sdk', 41 + throwOnError: true, // [!code --] 42 + }, 43 + ], 44 + }; 45 + ``` 46 + 47 + - [#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: sdks import client from client.gen.ts instead of defining it inside the file 48 + 49 + ### Added `client.gen.ts` file 50 + 51 + The internal `client` instance previously located in `sdk.gen.ts` is now defined in `client.gen.ts`. If you're importing it in your code, update the import module. 52 + 53 + ```js 54 + import { client } from 'client/sdk.gen'; // [!code --] 55 + import { client } from 'client/client.gen'; // [!code ++] 56 + ``` 57 + 58 + - [#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: throw if inferred plugin not found 59 + 3 60 ## 0.62.3 4 61 5 62 ### Patch Changes
+1 -1
packages/openapi-ts/package.json
··· 1 1 { 2 2 "name": "@hey-api/openapi-ts", 3 - "version": "0.62.3", 3 + "version": "0.63.0", 4 4 "description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.", 5 5 "homepage": "https://heyapi.dev/", 6 6 "repository": {