Skip to content

v0.17.0

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 May 16:02
· 39 commits to main since this release
Immutable release. Only release title and notes can be modified.
v0.17.0
ada3a75
  • BREAKING CHANGES: require tags in unions and enum to be declared in ascending order.

    This is a requirement introduced by the 12th draft of BARE.

    The following BARE schema is now invalid:

    type Gender enum {
        FEMALE = 1
        FLUID = 2
        MALE = 0
    }
    
  • Support data (binary blobs) as map keys.

    This is a change introduced by the 13th draft of BARE.

    The following BARE schema is now valid:

    type Dict map<data><u32>
    
  • BREAKING CHANGES: require Node.js 20.19.0 or above

    This allows us to use import attributes.
    Their support has been introduced in Node.js 20.10.0.

    Requiring NodeJs 20.19.0 and above ensures that users may require an ESM module.
    This drastically simplifies our package.json's exports conditions,
    and prevent dual-package hazard.
    As a result, we no longer ship a CommonJS version of the package.

  • BREAKING CHANGES: rename generate and checkSemantic into generateJs and check.

    - import { generate, checkSemantic } from "@bare-ts/tools"
    + import { generateJs, check } from "@bare-ts/tools"