v0.14.0
Pre-release-
BREAKING CHANGES: enum member names in
PascalCaseinstead ofCONSTANT_CASEIn a bare schema, an
enumvariant must be inCONSTANT_CASE:type Status enum { OPEN = 0 CLOSE = 1 }Previously, bare-ts preserved the case:
export enum Status { OPEN = "OPEN", CLOSE = "CLOSE", }
To follow the TypeScript convention, the case is now in
PascalCase.
Thus, bare-ts generates the following code:export enum Status { Open = "Open", Close = "Close", }
-
BREAKING CHANGES: remove option
--import-factoryPreviously, bare-ts allowed external factory functions to build struct objects.
For now, there is no replacement for this feature. -
BREAKING CHANGES: remove option
--use-quoted-propertyPreviously, bare-ts allowed emitting JavaScript code with all object properties quoted.
This feature was under-used and against the JavaScript conventions. -
Fix name clashes
Previously, bare-ts did not support the use of aliases like
MaporUint8Array.
Now, it properly handles these aliases and usesglobalThiswhen necessary.