Skip to content

Commit b5a972b

Browse files
authored
Merge branch 'main' into fix/transformer-returns
2 parents 2de84ea + fae5e53 commit b5a972b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+3178
-1970
lines changed

.changeset/chilled-tips-lie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@hey-api/openapi-ts': patch
3+
---
4+
5+
fix: don't throw on missing performance marks

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
workflow_dispatch:
99

1010
concurrency:
11-
group: ${{ github.workflow }}=${{ github.head_ref }}
1211
cancel-in-progress: true
12+
group: ${{ github.workflow }}=${{ github.head_ref }}
1313

1414
jobs:
1515
ci:

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
- generates TypeScript interfaces and SDKs
3737
- Fetch API, Axios, Nuxt, Angular, Node.js, and XHR clients available
3838
- plugin ecosystem to reduce third-party boilerplate
39+
- [platform](https://heyapi.dev/openapi-ts/integrations) for automating codegen builds
40+
41+
## Platform
42+
43+
Our platform for OpenAPI specifications is now available. Automatically update your code when the APIs it depends on change. [Find out more](https://heyapi.dev/openapi-ts/integrations).
3944

4045
## Sponsors
4146

@@ -47,17 +52,13 @@ Love Hey API? Become our [sponsor](https://github.com/sponsors/hey-api).
4752
</a>
4853
</p>
4954

50-
## GitHub Integration (coming 2025)
51-
52-
Automatically update your code when the APIs it depends on change. [Find out more](https://heyapi.dev/openapi-ts/integrations.html).
53-
5455
## Quick Start
5556

5657
The fastest way to use `@hey-api/openapi-ts` is via npx
5758

5859
```sh
5960
npx @hey-api/openapi-ts \
60-
-i path/to/openapi.json \
61+
-i https://get.heyapi.dev/hey-api/backend \
6162
-o src/client \
6263
-c @hey-api/client-fetch
6364
```
@@ -114,7 +115,7 @@ You can also generate clients programmatically by importing `@hey-api/openapi-ts
114115
import { createClient } from '@hey-api/openapi-ts';
115116

116117
createClient({
117-
input: 'path/to/openapi.json',
118+
input: 'https://get.heyapi.dev/hey-api/backend',
118119
output: 'src/client',
119120
plugins: ['@hey-api/client-fetch'],
120121
});
@@ -130,7 +131,7 @@ createClient({
130131
import { defineConfig } from '@hey-api/openapi-ts';
131132

132133
export default defineConfig({
133-
input: 'path/to/openapi.json',
134+
input: 'https://get.heyapi.dev/hey-api/backend',
134135
output: 'src/client',
135136
plugins: ['@hey-api/client-fetch'],
136137
});
@@ -141,7 +142,7 @@ export default defineConfig({
141142
```js
142143
/** @type {import('@hey-api/openapi-ts').UserConfig} */
143144
module.exports = {
144-
input: 'path/to/openapi.json',
145+
input: 'https://get.heyapi.dev/hey-api/backend',
145146
output: 'src/client',
146147
plugins: ['@hey-api/client-fetch'],
147148
};
@@ -152,7 +153,7 @@ module.exports = {
152153
```js
153154
/** @type {import('@hey-api/openapi-ts').UserConfig} */
154155
export default {
155-
input: 'path/to/openapi.json',
156+
input: 'https://get.heyapi.dev/hey-api/backend',
156157
output: 'src/client',
157158
plugins: ['@hey-api/client-fetch'],
158159
};

docs/.vitepress/config/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export default defineConfig({
210210
items: [
211211
{
212212
link: '/openapi-ts/integrations',
213-
text: 'GitHub <span data-soon>soon</span>',
213+
text: 'GitHub',
214214
},
215215
],
216216
text: 'Integrations',

docs/.vitepress/theme/Layout.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ const { Layout } = DefaultTheme;
88
<Layout>
99
<template #layout-top>
1010
<div class="announcement">
11+
<span>
12+
Our platform<span class="hide-sm"> for OpenAPI specifications</span>
13+
is now available
14+
</span>
15+
<a href="https://app.heyapi.dev/"> Join Beta </a>
16+
</div>
17+
<!-- <div class="announcement">
1118
<span>
1219
Request a feature<span class="hide-sm"> for your business</span>
1320
</span>
@@ -18,7 +25,7 @@ const { Layout } = DefaultTheme;
1825
>
1926
Let's Talk
2027
</a>
21-
</div>
28+
</div> -->
2229
</template>
2330
</Layout>
2431
</template>

docs/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @docs/openapi-ts
22

3+
## 0.10.1
4+
5+
### Patch Changes
6+
7+
- [#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
8+
39
## 0.10.0
410

511
### Minor Changes

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: home
33

44
hero:
55
name: High-quality tools for interacting with APIs
6-
tagline: Codegen for your TypeScript projects. Trusted more than 800k times each month to generate reliable API clients and SDKs.
6+
tagline: Codegen for your TypeScript projects. Trusted more than 900k times each month to generate reliable API clients and SDKs.
77
actions:
88
- link: /openapi-ts/get-started
99
text: Get Started
@@ -40,7 +40,7 @@ features:
4040
link: /openapi-ts/plugins
4141
linkText: Learn more
4242
- icon: <svg class="icon-github" width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 98 98"><path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" fill="#24292f"/></svg>
43-
title: Integrations <span data-soon>Soon</span>
43+
title: Integrations
4444
details: Automatically update your code when the APIs it depends on change. Works with any codegen.
4545
link: /openapi-ts/integrations
4646
linkText: Find out more

docs/openapi-ts/clients/axios.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ In your [configuration](/openapi-ts/get-started), add `@hey-api/client-axios` to
5353

5454
```js [config]
5555
export default {
56-
input: 'path/to/openapi.json',
56+
input: 'https://get.heyapi.dev/hey-api/backend',
5757
output: 'src/client',
5858
plugins: ['@hey-api/client-axios'], // [!code ++]
5959
};
6060
```
6161

6262
```sh [cli]
6363
npx @hey-api/openapi-ts \
64-
-i path/to/openapi.json \
64+
-i https://get.heyapi.dev/hey-api/backend \
6565
-o src/client \
6666
-c @hey-api/client-axios # [!code ++]
6767
```
@@ -94,7 +94,7 @@ Since `client.gen.ts` is a generated file, we can't directly modify it. Instead,
9494

9595
```js
9696
export default {
97-
input: 'path/to/openapi.json',
97+
input: 'https://get.heyapi.dev/hey-api/backend',
9898
output: 'src/client',
9999
plugins: [
100100
{
@@ -224,7 +224,7 @@ Sometimes, you may not want to declare client packages as a dependency. This sce
224224

225225
```js
226226
export default {
227-
input: 'path/to/openapi.json',
227+
input: 'https://get.heyapi.dev/hey-api/backend',
228228
output: 'src/client',
229229
plugins: [
230230
{

docs/openapi-ts/clients/fetch.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ In your [configuration](/openapi-ts/get-started), add `@hey-api/client-fetch` to
5353

5454
```js [config]
5555
export default {
56-
input: 'path/to/openapi.json',
56+
input: 'https://get.heyapi.dev/hey-api/backend',
5757
output: 'src/client',
5858
plugins: ['@hey-api/client-fetch'], // [!code ++]
5959
};
6060
```
6161

6262
```sh [cli]
6363
npx @hey-api/openapi-ts \
64-
-i path/to/openapi.json \
64+
-i https://get.heyapi.dev/hey-api/backend \
6565
-o src/client \
6666
-c @hey-api/client-fetch # [!code ++]
6767
```
@@ -94,7 +94,7 @@ Since `client.gen.ts` is a generated file, we can't directly modify it. Instead,
9494

9595
```js
9696
export default {
97-
input: 'path/to/openapi.json',
97+
input: 'https://get.heyapi.dev/hey-api/backend',
9898
output: 'src/client',
9999
plugins: [
100100
{
@@ -264,7 +264,7 @@ Sometimes, you may not want to declare client packages as a dependency. This sce
264264

265265
```js
266266
export default {
267-
input: 'path/to/openapi.json',
267+
input: 'https://get.heyapi.dev/hey-api/backend',
268268
output: 'src/client',
269269
plugins: [
270270
{

docs/openapi-ts/clients/legacy.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,39 +19,39 @@ Before client packages, clients were generated using `@hey-api/openapi-ts`. In f
1919

2020
```js [fetch]
2121
export default {
22-
input: 'path/to/openapi.json',
22+
input: 'https://get.heyapi.dev/hey-api/backend',
2323
output: 'src/client',
2424
plugins: ['legacy/fetch'], // [!code ++]
2525
};
2626
```
2727

2828
```js [axios]
2929
export default {
30-
input: 'path/to/openapi.json',
30+
input: 'https://get.heyapi.dev/hey-api/backend',
3131
output: 'src/client',
3232
plugins: ['legacy/axios'], // [!code ++]
3333
};
3434
```
3535

3636
```js [angular]
3737
export default {
38-
input: 'path/to/openapi.json',
38+
input: 'https://get.heyapi.dev/hey-api/backend',
3939
output: 'src/client',
4040
plugins: ['legacy/angular'], // [!code ++]
4141
};
4242
```
4343

4444
```js [node]
4545
export default {
46-
input: 'path/to/openapi.json',
46+
input: 'https://get.heyapi.dev/hey-api/backend',
4747
output: 'src/client',
4848
plugins: ['legacy/node'], // [!code ++]
4949
};
5050
```
5151

5252
```js [xhr]
5353
export default {
54-
input: 'path/to/openapi.json',
54+
input: 'https://get.heyapi.dev/hey-api/backend',
5555
output: 'src/client',
5656
plugins: ['legacy/xhr'], // [!code ++]
5757
};

0 commit comments

Comments
 (0)