Skip to content

Commit 6e9c9c2

Browse files
ci: release
1 parent d45675e commit 6e9c9c2

File tree

8 files changed

+69
-67
lines changed

8 files changed

+69
-67
lines changed

.changeset/clean-apes-divide.md

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

.changeset/eight-rabbits-unite.md

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

.changeset/gentle-spoons-kneel.md

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

.changeset/plenty-walls-repeat.md

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

packages/codegen-core/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @hey-api/codegen-core
22

3+
## 0.4.0
4+
5+
### Minor Changes
6+
7+
- **symbols**: remove `placeholder` property ([#2990](https://github.com/hey-api/openapi-ts/pull/2990)) ([`c3a81e8`](https://github.com/hey-api/openapi-ts/commit/c3a81e89ba5ed3f373409582c5f814e1d10cae06)) by [@mrlubos](https://github.com/mrlubos)
8+
39
## 0.3.3
410

511
### Patch Changes

packages/codegen-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hey-api/codegen-core",
3-
"version": "0.3.3",
3+
"version": "0.4.0",
44
"description": "🧱 TypeScript framework for generating structured, multi-file source code from abstract syntax trees.",
55
"homepage": "https://heyapi.dev/",
66
"repository": {

packages/openapi-ts/CHANGELOG.md

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

3+
## 0.89.0
4+
5+
### Minor Changes
6+
7+
- **output**: add `preferExportAll` option ([#2990](https://github.com/hey-api/openapi-ts/pull/2990)) ([`c3a81e8`](https://github.com/hey-api/openapi-ts/commit/c3a81e89ba5ed3f373409582c5f814e1d10cae06)) by [@mrlubos](https://github.com/mrlubos)
8+
9+
### Prefer named exports
10+
11+
This release changes the default for `index.ts` to prefer named exports. Named exports may lead to better IDE and bundler performance compared to asterisk (`*`) as your tooling doesn't have to inspect the underlying module to discover exports.
12+
13+
While this change is merely cosmetic, you can set `output.preferExportAll` to `true` if you prefer to use the asterisk.
14+
15+
```js
16+
export default {
17+
input: 'hey-api/backend', // sign up at app.heyapi.dev
18+
output: {
19+
path: 'src/client',
20+
preferExportAll: true,
21+
},
22+
};
23+
```
24+
25+
- **parser**: removed `symbol:setValue:*` events ([#2990](https://github.com/hey-api/openapi-ts/pull/2990)) ([`c3a81e8`](https://github.com/hey-api/openapi-ts/commit/c3a81e89ba5ed3f373409582c5f814e1d10cae06)) by [@mrlubos](https://github.com/mrlubos)
26+
27+
### Removed `symbol:setValue:*` events
28+
29+
These events have been removed in favor of `node:set:*` events.
30+
31+
### Patch Changes
32+
33+
- **output**: add `nameConflictResolver` option ([#2990](https://github.com/hey-api/openapi-ts/pull/2990)) ([`c3a81e8`](https://github.com/hey-api/openapi-ts/commit/c3a81e89ba5ed3f373409582c5f814e1d10cae06)) by [@mrlubos](https://github.com/mrlubos)
34+
35+
## Name Conflicts
36+
37+
As your project grows, the chances of name conflicts increase. We use a simple conflict resolver that appends numeric suffixes to duplicate identifiers. If you prefer a different strategy, you can provide your own `nameConflictResolver` function.
38+
39+
```js
40+
export default {
41+
input: 'hey-api/backend', // sign up at app.heyapi.dev
42+
output: {
43+
nameConflictResolver({ attempt, baseName }) {
44+
return attempt === 0 ? baseName : `${baseName}_N${attempt + 1}`;
45+
},
46+
path: 'src/client',
47+
},
48+
};
49+
```
50+
51+
Example output:
52+
53+
```ts
54+
export type ChatCompletion = string;
55+
56+
export type ChatCompletion_N2 = number;
57+
```
58+
59+
### Updated Dependencies:
60+
61+
62+
363
## 0.88.2
464

565
### Patch Changes

packages/openapi-ts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hey-api/openapi-ts",
3-
"version": "0.88.2",
3+
"version": "0.89.0",
44
"description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
55
"homepage": "https://heyapi.dev/",
66
"repository": {
@@ -89,7 +89,7 @@
8989
"node": ">=20.19.0"
9090
},
9191
"dependencies": {
92-
"@hey-api/codegen-core": "workspace:^0.3.3",
92+
"@hey-api/codegen-core": "workspace:^0.4.0",
9393
"@hey-api/json-schema-ref-parser": "1.2.2",
9494
"ansi-colors": "4.1.3",
9595
"c12": "3.3.2",

0 commit comments

Comments
 (0)