github hey-api/openapi-ts @hey-api/codegen-core@0.6.0

latest release: @hey-api/types@0.1.3
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/codegen-core 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 { Project } = await import('@hey-api/codegen-core');

If you have previously written:

const { Project } = require('@hey-api/codegen-core');

Migrate by updating your static imports:

import { Project } from '@hey-api/codegen-core';

If your environment cannot use ESM, pin to a previous version.

Patch Changes

Updated Dependencies:

  • @hey-api/types@0.1.3

Don't miss a new openapi-ts release

NewReleases is sending notifications on new releases.