github hey-api/openapi-ts @hey-api/openapi-ts@0.91.0

latest releases: @hey-api/types@0.1.3, @hey-api/codegen-core@0.6.0, @hey-api/shared@0.1.0...
21 hours ago

Minor Changes

  • BREAKING: Drop CommonJS (CJS) support. This package is now ESM-only. (#3251) (7f19d59) by @mrlubos

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

Don't miss a new openapi-ts release

NewReleases is sending notifications on new releases.