Skip to content

@onlyworlds/sdk 4.225.2

Choose a tag to compare

@github-actions github-actions released this 30 Nov 14:42
· 19 commits to main since this release

Fixed

  • A folder the writer writes always packs into a world file. worldFolderFiles, and convertKanka through it, now also refuse an element id whose <id>.json the world file's name check refuses (folder spec §3.2): one holding <, >, ", |, ? or *, a control character from U+007F to U+009F, or a Windows device name such as con. Before, such an id was written, and writeWorldFile then refused the folder. The refusal says why in the archive's words, as "a?b.json" it holds a reserved or control character. An id ending in a dot or a space is still written, since its file name ends in .json. The shared cases (test/fixtures/unsafe-ids.cases.json, the same bytes as the Python package's) move with it: 22 refused, 5 written.