Skip to content

onlyworlds 0.156.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 04:21
· 37 commits to main since this release
  • A world file refused for a world.json it cannot read says what is wrong with it: WorldFileError.world_fault is too_deep (nested past 200 levels), not_json or number_out_of_range (a number too large to read), beside the reason not_a_world the folder format gives it, so a tool reads the field, never the message. It is None on every other refusal, a missing world.json or one with no id included.
  • A calendar has size bounds, and a date past the exact range is its plain number (the calendar profile, schema-dist serial 149; the schema pin is v0.34.1-dist.149, canonical 00.34.01 unchanged). read_calendar_value now refuses a value with more than 256 eras, 64 months, a week longer than 64 steps or with more than 64 names, 16 entries in intercalary, an except longer than 8 (version 2), or a template or name longer than 256 characters (code points, untrimmed), and one whose longest year (the months' lengths plus every intercalary entry) is past 253 - 1. A date whose step, year index plus a leap rule's offset, or year in its era is outside -(253 - 1) to 253 - 1 is worded as its plain number by format_step, format_steps, format_year_label and format_mid_label, and breakdown_step keeps its step with every other part None (abs_year and year are now int | None); before, such a date printed a rounded label or, past 253 on an offset, could raise. A bundles that is not an object still reads as no bundles, and bundles.months given as false, 0 or "" as no months; except and offset on a version-1 value are unknown keys, never measured. On the fixture's 95 calendars, only the eight dates past the exact range word differently from 0.155.0, and all 191 cases (402 steps) pass.
  • The Kanka door's docstring no longer says the folder lint flags hidden elements. The lint has known the hidden key since folder spec §4.8 and checks only that it is true or false: the third real Kanka export in the tests converts to 6 hidden elements and lints with 0 problems.