Skip to content

OnlyWorlds Unity SDK 0.19.1

Choose a tag to compare

@tmoosting tmoosting released this 24 Oct 21:20
· 470 commits to main since this release

The .owworld reader agrees with every other reader of the format: it refuses a deflate stream that does not end at
its declared size, and it folds names with Unicode 15.1's NFC built from Unicode's own files, so a newer runtime can
no longer change which names collide. It passes all 96 cases of the conformance set at dist.60, and a read of a big
world is about a quarter faster. The repository now says who maintains it and where questions, bugs and security
reports go. A patch release: no public API changed.

Added

  • The repository says who writes it and where a stranger goes: the README names its maintainer (an AI mind of the
    OnlyWorlds crew, its replies posted from the founder's account), questions and bugs go to this repository's issues
    (the package README pointed at Discussions on the standard's repository, which nobody read), a security problem
    goes through GitHub's private vulnerability reporting (SECURITY.md), package.json carries homepage and
    bugs, and the README links the OnlyWorlds code of conduct.

Changed

  • The schema pin moves to dist.60 (v0.33.0-dist.60; canonical 00.33.00 unchanged, no schema file moved). The
    .owworld conformance set the tests vendor grows to 96 cases (from dist.57 to 59: eight NFC pairs, the two deflate
    cases below and a pair of unassigned code points two Unicode versions tell apart), and the dist carries Unicode
    15.1's UnicodeData and CompositionExclusions beside its case folds. Before it, dist.55: the
    folder check takes hidden as a folder key, and the review profile says how a reader treats a mark that is not an
    object (a reader that hands a world on counts it as a doubt and leaves it out; a viewer shows the element as
    settled): OWPayload.IsHidden, IsProposedOrInDoubt and IsProposed already read both so. The checks profile
    gains where.type as a list, and a new spine profile describes a world that maps a software ecosystem; this SDK
    reads neither. The generated models changed only in their serial and date stamps.
  • An .owworld read is about a quarter faster on a big world: each entry was inflated through a buffer of its own
    of 80 KiB, which Mono puts on its large-object heap, and that cost more than the inflating. The buffer is now the
    entry's size plus one byte (at most 80 KiB), so an entry that inflates past its size, an empty one included, still
    shows it on the first read. Sikelia's pack (20,791 entries), the deflate walk below included: a read's median
    4.4 to 4.7 s before, 3.2 to 3.6 s after (three runs each, alternated).

Fixed

  • The .owworld reader's NFC is Unicode 15.1's, built from Unicode's own files, never the runtime's (folder spec
    §4.7, OW-18, ruled at dist.57). The name fold called string.Normalize, which answers from the runtime's tables:
    the set passed only because Mono's predate Unicode 16, and a runtime at 16 decomposes U+11383 (unassigned at 15.1)
    and would refuse pass-OW-18-nfc-unassigned as a collision. NFC now comes from UnicodeData-15.1.0.txt and
    CompositionExclusions-15.1.0.txt, the dist's copies, as the case fold comes from CaseFolding-15.1.0.txt:
    tools/gen_nfc.py writes their facts into OWNfcData (internal: the classes, the canonical decompositions one level
    deep, the listed exclusions; 74 KB of source, about 30 KB of assembly), and OWNfc (internal) derives the rest at its
    first use (Full_Composition_Exclusion, 1,120 code points; 941 primary composites) and runs UAX #15: decompose, order
    the marks by class, recompose; Hangul by arithmetic. Unicode's NormalizationTest-15.1.0.txt, vendored in the tests'
    fixtures, proves it: 19,074 lines, every NFC invariant held, and every code point its Part 1 does not list is its own
    NFC. A name below U+0300 (any ASCII path) is returned untouched without building a table. A lone surrogate is folded
    by case alone on every runtime (Mono's string.Normalize composed around one, CoreCLR's refuses it). Sikelia's pack
    reads in the same time (its 20,791 names are ASCII); folding them is faster, and the first non-ASCII fold in a process
    costs about 7 ms once, where Mono's tables cost about 1.4 ms.
  • An .owworld entry whose deflate stream does not end at its declared compressed size refuses the archive
    (OWWorldArchive.Read, cause not_openable; folder spec §4.7's size bullet, which speaks of every size an entry
    declares, compressed and uncompressed alike, ruled 2026-10-24). Mono's DeflateStream stops at a stream's end and
    ignores what follows, and at the end of its input it stops as if the stream were whole, so two broken entries read
    as good ones: a stream that ends before the size its headers declare, with bytes after it that are no part of it
    (the conformance set's fail-OW-14-deflate-early-end), and a stream with no end-of-block code at all
    (fail-OW-14-deflate-no-end), both with honest inflated sizes and CRCs. Every reader but Unity refused them. Each
    deflated entry's raw bytes are now walked after its size and CRC pass (OWDeflateEnd, internal: RFC 1951's stored,
    fixed and dynamic blocks, every symbol decoded and nothing copied) to the byte holding the final end-of-block code,
    which must be the last byte the entry declares (its bits after the code are padding). The walk reads through a file
    stream of its own in the archive's order, so it never seeks: on Sikelia's pack (20,790 deflated entries) it adds
    about 0.4 s to a read of about 4.5 s.