Skip to content

OnlyWorlds Unity SDK 0.56.0

Choose a tag to compare

@tmoosting tmoosting released this 27 Nov 05:12
· 83 commits to main since this release

A calendar has size bounds, and a date past the exact range of whole numbers is shown as a plain number, as the
calendar profile now says. Pinned to schema-dist serial 149. A minor release because it adds public API and
changes a type (below).

Added

  • A calendar has size bounds, and a date past the exact range is a plain number (the calendar profile at
    schema-dist serial 149). A value with more than 256 eras, 64 months, a week longer than 64 steps or with more than 64
    names, more than 16 entries in intercalary, an except longer than 8, or a template or a name longer than 256 code
    points (counted as decoded, untrimmed, not normalised) is not a calendar, and neither is one whose longest year (the
    months plus every entry in intercalary) is longer than 2^53 - 1: OWCalendar.ReadConfig returns null and its dates
    read as plain numbers. A date whose step, year index plus any leap rule's offset, or shown year lies outside
    -(2^53 - 1) to 2^53 - 1 is shown as the plain step by FormatStep, FormatYearLabel and FormatMidLabel, and
    OWCalendar.IsPastExactRange names it. The profile's fixture (191 cases, 100 new) is read whole. Tests:
    OWCalendarFixtureTests, OWCalendarTests.

Changed

  • StepBreakdown.AbsYear and StepBreakdown.Year are long?: null, with every other field but Step, for a date
    past the exact range. Code that reads them as long reads .Value, or compares as before.
  • Schema pin to v0.34.1-dist.149 (6792960); canonical 00.34.01 unchanged (OWSchemaPin.DistSerial 149). Only the
    calendar profile and its fixture moved; the generated models and the views table moved in their stamp only. The
    calendar's parity vectors stay those made from dist.148's fixture until the TypeScript SDK reads serial 149.