v0.12.0
Pre-release-
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 preventdecode
andencode
generationA 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.