Skip to content

onlyworlds 0.142.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 17:21
· 71 commits to main since this release
  • The doctor names what it could not read. On a folder, Report.unread (and unread in --json, after written) lists each file the folder reader did not read as an element, with why: a file that is not JSON, is not an object or has no id, a second file of one id, a directory that is no type's. The prose report puts the list first, and any entry makes the exit code 1. Until now the doctor said nothing: with one element file cut off mid-write it reported the other elements as the whole world and listed every link to the unread one under "a link to an element that is not there". A dot-prefixed file is not listed. The API door's list is always empty.
  • A file nested too deep is skipped, not a traceback. An element file or a world.json holding a value nested 100,000 deep made read_folder raise RecursionError on Windows and on Python 3.12 and 3.13, which nothing caught: the doctor and pack stopped with a traceback. Python 3.14 on Linux read the same file whole, and left the depth to whatever walked the value next. A value nested more than 200 deep is now refused on every platform, as a file that cannot be read ("nested more than 200 deep"), the way a file that is not JSON is. The archive reader and the Kanka and LegendKeeper doors parse their files through the same reader. A number of more than 4,300 digits was already skipped; its reason now says so in plain words in place of Python's advice about an interpreter setting.
  • Not changed: python -m onlyworlds.lint reads element files through the schema distribution's own checker, which still stops on a file nested that deep.
  • KindLayout and AroundLayout say in their docstrings that the version key is deprecated: it is always 1, the layout profile's mark carries no such key, and it leaves when the npm SDK's does, at its 5.0. Until now only a source comment said so, so help() and an editor's hover showed nothing. No behaviour changes.
  • A test holds the address parser's length check on a moment: a run of more than 4,300 digits after @ is refused as bad_moment before int() can raise on it, and the readers of prose pass over it.