Skip to content

Commit 768dd86

Browse files
authored
Merge pull request #2925 from hey-api/feat/legacy-remove
feat: remove legacy clients and plugins
2 parents cb6ee1e + baae95a commit 768dd86

File tree

504 files changed

+243
-80106
lines changed

Some content is hidden

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

504 files changed

+243
-80106
lines changed

.changeset/seven-walls-return.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@hey-api/openapi-ts': minor
3+
---
4+
5+
feat: remove legacy clients and plugins
6+
7+
### Removed legacy clients
8+
9+
This release removes support for legacy clients and plugins. Please migrate to the new clients if you haven't done so yet. If you're unable to do so due to a missing feature, let us know on [GitHub](https://github.com/hey-api/openapi-ts/issues).

dev/openapi-ts.config.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ export default defineConfig(() => {
3636
// },
3737
path: path.resolve(
3838
getSpecsPath(),
39-
'3.0.x',
40-
// '3.1.x',
39+
// '3.0.x',
40+
'3.1.x',
4141
// 'circular.yaml',
4242
// 'dutchie.json',
4343
// 'invalid',
4444
// 'openai.yaml',
4545
// 'full.yaml',
46-
// 'opencode.yaml',
47-
'sdk-circular-bug.yaml',
46+
'opencode.yaml',
47+
// 'sdk-circular-bug.yaml',
4848
// 'sdk-instance.yaml',
4949
// 'string-with-format.yaml',
5050
// 'transformers.json',
@@ -265,14 +265,14 @@ export default defineConfig(() => {
265265
instance: true,
266266
name: '@hey-api/sdk',
267267
// operationId: false,
268-
// paramsStructure: 'flat',
268+
paramsStructure: 'flat',
269269
// responseStyle: 'data',
270270
// signature: 'auto',
271271
// signature: 'client',
272272
// signature: 'object',
273273
// transformer: '@hey-api/transformers',
274-
transformer: true,
275-
validator: true,
274+
// transformer: true,
275+
// validator: true,
276276
// validator: {
277277
// request: 'zod',
278278
// response: 'zod',
@@ -294,7 +294,7 @@ export default defineConfig(() => {
294294
{
295295
// bigInt: true,
296296
// dates: true,
297-
name: '@hey-api/transformers',
297+
// name: '@hey-api/transformers',
298298
},
299299
{
300300
// name: 'fastify',

dev/package.json

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,17 @@
77
"node": ">=20.19.0"
88
},
99
"devDependencies": {
10-
"@angular-devkit/build-angular": "19.2.19",
11-
"@angular/animations": "19.2.15",
12-
"@angular/cli": "19.2.19",
13-
"@angular/common": "19.2.15",
14-
"@angular/compiler": "19.2.15",
15-
"@angular/compiler-cli": "19.2.15",
16-
"@angular/core": "19.2.15",
17-
"@angular/forms": "19.2.15",
18-
"@angular/platform-browser": "19.2.15",
19-
"@angular/platform-browser-dynamic": "19.2.15",
20-
"@angular/router": "19.2.15",
21-
"@config/vite-base": "workspace:*",
2210
"@hey-api/codegen-core": "workspace:*",
23-
"@hey-api/custom-client": "workspace:*",
2411
"@hey-api/openapi-ts": "workspace:*",
2512
"@pinia/colada": "0.17.7",
2613
"@tanstack/angular-query-experimental": "5.73.3",
2714
"@tanstack/react-query": "5.73.3",
2815
"@tanstack/solid-query": "5.73.3",
2916
"@tanstack/svelte-query": "5.73.3",
3017
"@tanstack/vue-query": "5.73.3",
31-
"@types/cross-spawn": "6.0.6",
32-
"ajv": "8.17.1",
3318
"arktype": "2.1.25",
34-
"axios": "1.8.2",
35-
"cross-spawn": "7.0.6",
36-
"eslint": "9.17.0",
37-
"fastify": "5.2.0",
38-
"glob": "11.0.3",
39-
"node-fetch": "3.3.2",
40-
"nuxt": "3.14.1592",
41-
"ofetch": "1.4.1",
42-
"prettier": "3.4.2",
43-
"rxjs": "7.8.2",
44-
"ts-node": "10.9.2",
45-
"tslib": "2.8.1",
4619
"typescript": "5.9.3",
4720
"valibot": "1.1.0",
48-
"vue": "3.5.13",
4921
"zod": "4.1.12"
5022
}
5123
}

docs/.vitepress/config/en.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,6 @@ export default defineConfig({
119119
link: '/openapi-ts/clients/ky',
120120
text: 'Ky <span data-soon>soon</span>',
121121
},
122-
{
123-
link: '/openapi-ts/clients/legacy',
124-
text: 'Legacy',
125-
},
126122
],
127123
link: '/openapi-ts/clients',
128124
text: 'Clients',

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: home
33

44
hero:
55
name: One OpenAPI spec.<br/>Infinite outputs.
6-
tagline: Codegen for JavaScript/TypeScript projects. Trusted over 3,000,000 times each month to generate reliable API clients and SDKs.
6+
tagline: Code generator for TypeScript projects. Trusted by companies like Google, Amazon, and PayPal to generate API clients, SDKs, validators, and more.
77
actions:
88
- link: /openapi-ts/get-started
99
text: Get Started

docs/openapi-ts/clients.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ Hey API natively supports the following clients.
3434
- [Effect](/openapi-ts/clients/effect) <span data-soon>Soon</span>
3535
- [Got](/openapi-ts/clients/got) <span data-soon>Soon</span>
3636
- [Ky](/openapi-ts/clients/ky) <span data-soon>Soon</span>
37-
- [Legacy](/openapi-ts/clients/legacy)
3837

3938
Don't see your client? [Build your own](/openapi-ts/clients/custom) or let us know your interest by [opening an issue](https://github.com/hey-api/openapi-ts/issues).
4039

docs/openapi-ts/clients/legacy.md

Lines changed: 0 additions & 136 deletions
This file was deleted.

docs/openapi-ts/get-started.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ import { embedProject } from '../embed'
99

1010
# Get Started
1111

12-
[@hey-api/openapi-ts](https://github.com/hey-api/openapi-ts) is an OpenAPI to TypeScript codegen trusted over 3,000,000 times each month to generate reliable API clients and SDKs. The code is [MIT-licensed](/openapi-ts/license) and free to use. Discover available features below or view our [roadmap](https://github.com/orgs/hey-api/discussions/1495) to learn what's coming next.
12+
[@hey-api/openapi-ts](https://github.com/hey-api/openapi-ts) is an [open source](/openapi-ts/license) OpenAPI to TypeScript code generator trusted by companies like Google, Amazon, and PayPal to generate API clients, SDKs, validators, and more. We also build complementary tools and [services](https://app.heyapi.dev/) that help teams design, manage, and distribute APIs more effectively.
13+
14+
> “OpenAPI codegen that just works.”
15+
> — Guillermo Rauch
1316
1417
### Demo
1518

docs/openapi-ts/migrating.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ description: Migrating to @hey-api/openapi-ts.
77

88
While we try to avoid breaking changes, sometimes it's unavoidable in order to offer you the latest features. This page lists changes that require updates to your code. If you run into a problem with migration, please [open an issue](https://github.com/hey-api/openapi-ts/issues).
99

10+
## v0.87.0
11+
12+
### Removed legacy clients
13+
14+
This release removes support for legacy clients and plugins. Please migrate to the new clients if you haven't done so yet. If you're unable to do so due to a missing feature, let us know on [GitHub](https://github.com/hey-api/openapi-ts/issues).
15+
1016
## v0.86.0
1117

1218
### Removed Node 18 support

eslint.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ export default tseslint.config(
6666
'temp/',
6767
'dev/.gen/',
6868
'examples/openapi-ts-openai/src/client/**/*.ts',
69-
'packages/openapi-ts/src/legacy/handlebars/compiled/**/*.js',
70-
'packages/openapi-ts/src/legacy/handlebars/templates/**/*.hbs',
7169
'**/test/generated/',
7270
'**/__snapshots__/',
7371
'**/.next/',

0 commit comments

Comments
 (0)