Skip to content

v0.12.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 04 Feb 16:28
· 62 commits to main since this release
v0.12.0
616dba2
  • Emit ES2020

    bare-ts now publishes ES2020 builds.
    This allows to output smaller builds.
    This should cause no issue since we require a node version ^14.18 or >=16.

  • Allow root types that resolve to void

    Since the 0.9.0 version, root types that resolve to void are forbidden.

    To conform with the bare specification, they are now allowed.
    This makes valid the following schema:

    type Root void
    
  • Add option --lib to prevent decode and encode generation

    A decoder and encoder are generated for every root types that doesn't resolve to void.
    The --lib flag prevents this generation.

    This is particularly useful for libraries that export only readers and writers.

  • BREAKING CHANGES: emit type aliases instead of interfaces

    As a consequence, it is no longer possible to rely
    on interface-merging for augmenting an emitted type.