Skip to content

v5.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Sep 14:09
· 65 commits to main since this release
Immutable release. Only release title and notes can be modified.
87cdfb4

@kubb/adapter-oas

Features

  • Let dateType set date-time, date, and time independently, instead of one value driving all three

    Pass an object to represent timestamps as a JS Date while keeping date-only and time-only fields as strings, since Date cannot round-trip those without inventing a timezone.

    adapterOas({
      dateType: {
        dateTime: 'date',
        date: 'string',
        time: 'string',
      },
    })

    The scalar form (dateType: 'date') still applies one value to all three formats. (#3957, 9fca8e9)

Bug Fixes

  • Explicit types fields for each package.json exports entry, so that it works with tsconfig.json moduleResolution: 'bundler' (#3964, be4cd17)

Contributors

Thanks to everyone who contributed to this release:

@stijnvanhulle