Minor Changes
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.
Patch Changes
Updated Dependencies:
- @hey-api/shared@0.1.0
- @hey-api/codegen-core@0.6.0
- @hey-api/types@0.1.3