Skip to content

v0.7.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 24 Apr 15:26
f239bee
  • BREAKING CHANGES: require node versions that support ESM

    @bare-ts/tools requires now a node versions that support
    ECMAScript Modules.

    Note that, @bare-ts/tools still exports a CommonJS build.

  • Add pure annotation in generated code

    Pure annotations enables to bundler to detect pure function calls.
    @bare-ts/tools adds now these annotations in top-level function calls.

  • Allow circular references where possible

    @bare-ts/tools was previously conservative about circular references.
    It now allows all circular references that can encode at least one
    finite message. The following circular references are now allowed:

    type A list<A>
    type B map<str><B>
    type C list<optional<C>>[2]
    type D list<union { D | str }>[2]
    type E optional<E>
    type F union { F | str }
    

    The following circular references are still rejected:

    type X list<A>[2]
    type Y union { Y }
    type Z struct { field: Z }