v0.17.0
Pre-release-
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
requirean ESM module.
This drastically simplifies ourpackage.json'sexportsconditions,
and prevent dual-package hazard.
As a result, we no longer ship a CommonJS version of the package. -
BREAKING CHANGES: rename
generateandcheckSemanticintogenerateJsandcheck.- import { generate, checkSemantic } from "@bare-ts/tools" + import { generateJs, check } from "@bare-ts/tools"