Repository navigation
OnlyWorlds Unity SDK 0.55.0
A file nested more than 200 levels deep is left out of the world by name, too_deep, counted in its text as every
OnlyWorlds reader counts it, and every reader reads to 200 where Newtonsoft's own line was 64. The name finder
passes over web addresses, and over Markdown's code, HTML and definitions when told the text is Markdown. Pinned to
schema-dist serial 148 (the folder format 0.3.25). A minor release because it adds public API (below).
Added
- The name finder passes over web addresses, and over Markdown's code, HTML and definitions when told the text is
Markdown. In any text a bare web address (http://orhttps://in any ASCII case, to the next white space or
<) and an autolink (<scheme:…>) are passed over.OWNameFinder<T>.Find(text, markdown)withmarkdowntrue
also reads nothing inside an inline code span, a fenced code block, an HTML tag or comment, or a reference
definition's line;Find(text)keeps a rich-text node's literal backticks as prose. Parity with the TypeScript SDK
4.208.0, its version 3 cases (84, 16 with the option, 14 timed) vendored byte for byte. - A JSON text nested past 200 is refused by name,
too_deep(the folder format's OW-25): the depth of its deepest
object or array, the text's top value at 1, objects and arrays both counted. A folder or a.owworldskips such an
element file and serves the rest, itsOWSkippedFile.Reasonstartingtoo_deep, as the TypeScript SDK's folder
reader skips it; aworld.jsonor an export file nested that deep is refused, its message naming the word (a
.owworldwhose world.json is that deep isnot_a_world, as any world.json it cannot read). The count is made in
the text as each object or array opens, so every value of a key given twice counts (OWTooDeepException, a
JsonReaderException).OWJson.MaxDepth(200) andOWJson.TooDeepname the line.
Changed
- Every reader and the typed models read to 200 deep, where Newtonsoft's own line was 64: a file nested 65 to 200 deep,
skipped as unparseable before, is read, and a world file packed as a share rewrites it without its author fields.
Tests:OWTooDeepTests. - Schema pin to
v0.34.1-dist.148(93e7232); canonical 00.34.01 unchanged (OWSchemaPin.DistSerial148). The
generated models and the views table moved in their stamp only. The.owworldset's test copy gains OW-25's nine
depth cases (120), each answered with its reader-sideleft_out.OWFolderExport.FormatVersionis 0.3.25, the
dist's folder lint's: a file nested past 200 is not read. A writer's bytes are otherwise unchanged.