Skip to content

onlyworlds 0.159.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 19:45
· 12 commits to main since this release
  • Changed: the folder writer's collision rule compares names by the folder format's fold. resolve_filenames, and so write_folder, the import doors and export_world, give two elements of one type whose short file names (slug and id tail) land on one name the id-ascending rule of folder spec §3.2: the lowest id keeps the short name, every other takes its full id. "One name" was str.lower() and is now the fold the archive reader compares names by (NFC, then simple case folding, Unicode 15.1), the same fold 0.158.6's refusal uses. So a few ids beyond ASCII now get the full-id name where before they were refused or lowercased apart: two elements named Bob with ids a1234567ς and b1234567σ kept the short names bob--1234567ς.json and bob--1234567σ.json, which the refusal joined, and are now written as bob--1234567ς.json and bob--b1234567σ.json. No ASCII id and no UUID changes its file name. The npm SDK's folder writer names them alike (tests/fixtures/case-collide.cases.json).