Skip to content

v2.19.0

Compare
Choose a tag to compare
@samchungy samchungy released this 19 Jun 05:21
· 44 commits to master since this release
046f4aa

What's Changed

New Features 🎉

  • This release addresses ESM/CJS and subpath type issues for this library but as a side-effect also contains some minor BREAKING CHANGES to the types. If you were previously importing types directly from a subpath, you will now need to import them directly from the lib. There should be effect on the runtime functionality of the library.

    - import { ServerObject } from 'zod-openapi/lib-types/openapi3-ts/dist/oas31';
    - declare const server: ServerObject;
    
    + import { oas31 } from 'zod-openapi 
    + declare const server: oas31.ServerObject;

    This change also omits some extraneous class and function types from the openapi3-ts types that this library re-exports.

Other Changes

Full Changelog: v2.18.0...v2.19.0