You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed: write_world_file(include_hidden=False) could carry a hidden element. 0.142.0 made the package's reader refuse a file nested more than 200 deep, and the writer of a world file took that refusal for "this file is no element": a hidden element whose file was nested that deep travelled in a share, whole and with its author fields, where 0.141.0 had left it out. The same was true in every earlier version for an element file holding an integer of more than 4,300 digits. Now a file the reader refuses stops the write: write_world_file and world_file_bytes raise ValueError naming the file and why, and nothing is written, whenever they would have had to read that file, to leave out the hidden (include_hidden=False) or to take out author fields (the default). A copy that leaves nothing out (include_hidden=True, include_author_fields=True) reads no element file and still carries every one byte for byte. Text that is no JSON at all is no element to any reader and travels as it is, as before. If you share world files from folders you did not write yourself, upgrade.
A number that is not finite makes its file unreadable.1e400 in an element file read as infinity, which no writer of this package can write back and a JavaScript reader serves as null; NaN, Infinity and -Infinity, which are no JSON, were read as floats by the Kanka and LegendKeeper doors. The one reader for text the package did not write now refuses all of them with a plain ValueError (a number too large to read, NaN is not JSON), so read_folder skips such a file with that reason, the doctor lists it under unread, and the Kanka door skips it with a note instead of stopping with an error at the write. A finite number of any size reads as before.
Not changed: an integer of up to 4,300 digits is read exactly, as Python reads it. The npm SDK's Kanka door skips a file holding an integer past 2^53, which a JavaScript number rounds: the one input on which the two doors differ.