-29
.changeset/clean-apes-divide.md
-29
.changeset/clean-apes-divide.md
···
1
-
---
2
-
'@hey-api/openapi-ts': patch
3
-
---
4
-
5
-
**output**: add `nameConflictResolver` option
6
-
7
-
## Name Conflicts
8
-
9
-
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.
10
-
11
-
```js
12
-
export default {
13
-
input: 'hey-api/backend', // sign up at app.heyapi.dev
14
-
output: {
15
-
nameConflictResolver({ attempt, baseName }) {
16
-
return attempt === 0 ? baseName : `${baseName}_N${attempt + 1}`;
17
-
},
18
-
path: 'src/client',
19
-
},
20
-
};
21
-
```
22
-
23
-
Example output:
24
-
25
-
```ts
26
-
export type ChatCompletion = string;
27
-
28
-
export type ChatCompletion_N2 = number;
29
-
```
-21
.changeset/eight-rabbits-unite.md
-21
.changeset/eight-rabbits-unite.md
···
1
-
---
2
-
'@hey-api/openapi-ts': minor
3
-
---
4
-
5
-
**output**: add `preferExportAll` option
6
-
7
-
### Prefer named exports
8
-
9
-
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.
10
-
11
-
While this change is merely cosmetic, you can set `output.preferExportAll` to `true` if you prefer to use the asterisk.
12
-
13
-
```js
14
-
export default {
15
-
input: 'hey-api/backend', // sign up at app.heyapi.dev
16
-
output: {
17
-
path: 'src/client',
18
-
preferExportAll: true,
19
-
},
20
-
};
21
-
```
-5
.changeset/gentle-spoons-kneel.md
-5
.changeset/gentle-spoons-kneel.md
-9
.changeset/plenty-walls-repeat.md
-9
.changeset/plenty-walls-repeat.md
+6
packages/codegen-core/CHANGELOG.md
+6
packages/codegen-core/CHANGELOG.md
···
1
1
# @hey-api/codegen-core
2
2
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
+
3
9
## 0.3.3
4
10
5
11
### Patch Changes
+1
-1
packages/codegen-core/package.json
+1
-1
packages/codegen-core/package.json
+60
packages/openapi-ts/CHANGELOG.md
+60
packages/openapi-ts/CHANGELOG.md
···
1
1
# @hey-api/openapi-ts
2
2
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
+
- @hey-api/codegen-core@0.4.0
62
+
3
63
## 0.88.2
4
64
5
65
### Patch Changes
+2
-2
packages/openapi-ts/package.json
+2
-2
packages/openapi-ts/package.json
···
1
1
{
2
2
"name": "@hey-api/openapi-ts",
3
-
"version": "0.88.2",
3
+
"version": "0.89.0",
4
4
"description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
5
5
"homepage": "https://heyapi.dev/",
6
6
"repository": {
···
89
89
"node": ">=20.19.0"
90
90
},
91
91
"dependencies": {
92
-
"@hey-api/codegen-core": "workspace:^0.3.3",
92
+
"@hey-api/codegen-core": "workspace:^0.4.0",
93
93
"@hey-api/json-schema-ref-parser": "1.2.2",
94
94
"ansi-colors": "4.1.3",
95
95
"c12": "3.3.2",