@hey-api/openapi-ts
0.99.0 · 22 Jun 2026MIT8.3M / weekRepositoryHomepagenpmAtom feed
0.99.0 is the newest release of 0.91.x.
In short
2 breaking3 internal
- Breaking
Drop CommonJS (CJS) support. This package is now ESM-only.
- Breaking
CommonJS entry points (
require(),module.exports) are no longer supported.
Security
1 advisory affects 0.91.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
- Breaking
Drop CommonJS (CJS) support. This package is now ESM-only.
Removed CommonJS (CJS) support
@hey-api/openapi-ts is now ESM-only. This change simplifies the codebase, improves tree-shaking, and enables better integration with modern bundlers and TypeScript tooling.
CommonJS entry points (require(), module.exports) are no longer supported. If you are in a CJS environment, you can still load the package dynamically using import() like:
const { defineConfig } = await import('@hey-api/openapi-ts');If you have previously written:
const { defineConfig } = require('@hey-api/openapi-ts');Migrate by updating your static imports:
import { defineConfig } from '@hey-api/openapi-ts';If your environment cannot use ESM, pin to a previous version.
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.