@hey-api/openapi-ts
0.99.0 · 22 Jun 2026MIT8.3M / weekRepositoryHomepagenpmAtom feed
0.99.0 is the newest release of 0.58.x.
In short
2 removed2 new3 fixed
- Removed
Remove schemas and transformers re-exports from index.ts
- Removed
Add output.clean option
Security
1 advisory affects 0.58.0; 0.97.3 fixes them
- Moderate@hey-api/openapi-ts's `buildClientParams` template: prototype chain substitution via unknown `$<slot>___proto__` keyGHSA-hhx9-57xq-r5rw · 1 Jul 2026Fixed in 0.97.3
Release note
Minor Changes
Add typescript.identifierCase option
Added typescript.identifierCase option
**This change affects only the experimental parser.** By default, the generated TypeScript interfaces will follow the PascalCase naming convention. In the previous versions, we tried to preserve the original name as much as possible. To keep the previous behavior, set `typescript.identifierCase` to `preserve`.
```js
export default {
client: '@hey-api/client-fetch',
experimentalParser: true,
input: 'path/to/openapi.json',
output: 'src/client',
plugins: [
// ...other plugins
{
identifierCase: 'preserve', // [!code ++]
name: '@hey-api/typescript',
},
],
};
```- Removed
Remove schemas and transformers re-exports from index.ts
Removed schemas.gen.ts re-export
`index.ts` will no longer re-export `schemas.gen.ts` to reduce the chance of producing broken output. Please update your code to import from `schemas.gen.ts` directly.
```js
import { mySchema } from 'client'; // [!code --]
import { mySchema } from 'client/schemas.gen'; // [!code ++]
```Removed transformers.gen.ts re-export
`index.ts` will no longer re-export `transformers.gen.ts` to reduce the chance of producing broken output. Please update your code to import from `transformers.gen.ts` directly.
```js
import { myTransformer } from 'client'; // [!code --]
import { myTransformer } from 'client/transformers.gen'; // [!code ++]
```- Removed
Add output.clean option
Added output.clean option
By default, the `output.path` folder will be emptied on every run. To preserve the previous behavior, set `output.clean` to `false`.
```js
export default {
client: '@hey-api/client-fetch',
input: 'path/to/openapi.json',
output: {
clean: false, // [!code ++]
path: 'src/client',
},
};
```Add typescript.enumsCase option
Patch Changes
Add before and after to pagination keywords
Export Plugin API namespace
TanStack Query plugin handles conflict with internal function name in experimental parser
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.