Skip to content

15.0.0

Choose a tag to compare

@meszaros-lajos-gyorgy meszaros-lajos-gyorgy released this 24 Oct 22:07
· 5 commits to main since this release

Breaking changes

  • The enums are const objects now. The names and the values are unchanged, so
    ArxPolygonFlags.Tiled, the type annotations and the bitwise combinations work the same way. What is
    gone is the reverse mapping that an enum carries:
    // before
    ArxPolygonFlags[64] // 'Tiled'
    // after
    ArxPolygonFlags[64] // undefined
    The upside is that Object.keys() and JSON.stringify() of a flags object no longer contain the
    duplicated numeric keys.
  • The type of a bitmask flag is number (a combination such as
    SetBackgroundColor | SetDrawDistance is not one of the members), while the two discrete enums
    (ArxZoneAndPathPointType, ArxFaceType) are the union of their values. Code that annotates with the
    old enum names keeps compiling; assigning a raw number to a discrete one needs a cast.

Fixes

  • Sixteen entries of the character table were wrong. The bytes 0x10–0x1F were stored as a NUL
    byte followed by the text x10, x11, … instead of the control characters (the entries read
    '\0x10'). The readers and the writers of the 256 byte string fields — the names and the paths of
    the formats — map those bytes correctly now. This was a pre-existing typo, not a regression.

Improvements

  • The documentation of the public API. Every description is a complete sentence now, and the path
    transformations and the value ranges moved under @example / @remarks, so an editor shows them as
    structured documentation instead of a run-on paragraph. The generated .d.ts carries all of it.
  • The served JSON schemas are refreshed by the release workflow automatically.

Smaller changes

  • Cell.readFrom() always contains the anchors key (it is undefined when the cell has none). The
    JSON output does not change, JSON.stringify() drops the undefined values.
  • The contributors of package.json credit the AI coding agent that works on the project.

Full Changelog: v14.0.1...v15.0.0