Repository navigation
3.21.1
Six ways the plugin could lose or overwrite your writing are closed: each is now a refusal with a sentence, or a plain fix. All six were in 3.20.0 and 3.21.0 as well.
Update world to latest format.
- A note whose properties hold an empty
description:(or only spaces) beside a body with no sections kept an empty Description section and lost the body. The body now becomes the Description section. - A note with a heading twice (two
### Descriptionsections, or### Looksand### looks) is left as it is, and the notice names the heading. Before, the note was rebuilt from the last of the two sections.
Manage fields.
- A note with text above its first section (a note from 3.0 or 3.1, or a paragraph before the first heading) is left as it is, with one sentence: run Update world to latest format first. Before, ticking any field dropped that text.
- A note with a heading twice, or with properties that are not valid YAML, is left as it is and named. Before, invalid properties were rebuilt from nothing and the note lost its id and every property.
- A section that holds text is kept even when it was empty when the dialog opened and you did not tick it. The command reads the note once and builds the whole note from that reading.
Save, Upload world, Copy world, Export as OnlyWorlds folder. A note with a heading twice is refused by all of them, with the heading named, and nothing is sent or copied from it. Before, only Save checked; Upload world replaced the server's text with the last section, and Copy and Export left the first section out. All of them now ask one shared check, so the next kind of refusal is added in one place.
Save reads the note, not Obsidian's index. A note's id, type and name are read from the bytes Save sends, for the Save command and for auto-sync. A note whose id was just changed or removed was sent under the id the index still held, with its new text.
Paste world. Each note it writes is marked as the plugin's own, so with auto-sync on a pasted world is not uploaded note by note as if you had edited it. Your next real edit of a pasted note is still saved.
Download world. A line - **ID:** <an element's id> in your own note no longer makes a pull write over it or rename it. The element gets its own note beside yours. (No plugin version ever wrote that line into an element note.)
Auto-sync's own-write marks expire after 30 seconds. A write by the plugin that failed left its mark behind, and the mark swallowed your next edit of that note. It now expires.
Known and not fixed here, each the same on 3.21.0:
- Download, Paste and Import find an existing note by Obsidian's index; a note whose id you removed a moment ago can still be matched, and a note not yet indexed is missed.
- A note under
Elements/<Type>/with an id that is not a UUID is still read as an element. - Save's check for two notes with one id does not see an old-layout note.
- Upload world can send a hand-edited old-layout note under another id when one of its fields is labelled
Id_id. - Copy world keeps one value silently when a property of your own is written two ways (
moodbesidex_properties.mood), where Upload world refuses the note. - Upload world's per-run counters are shared between runs of the command.
- A plugin write that takes longer than 30 seconds to finish (a stalled disk, a phone put to sleep mid-write) could be read as your edit and saved. No such delay has been seen.
Under the hood: 974 tests. The branch was read twice by a second model family and each round of fixes was read again; its two reads found six things: four are fixed here, one is filed above, and the last is the 30-second limit above.
Walked in a real Obsidian before release, on the 3.21.1 build (main.js sha256 5a02cfbe203280f0): a new walk of these six cases, 30 of 30: Update, Manage fields, Save, Paste with auto-sync on and Download against onlyworlds.com, with each result read from the note's bytes on disk and, for the server cases, from the server. The same walk on 3.21.0 reads red on exactly the 19 rows that name a loss, with its controls green, and with the plugin's commands left out the 16 rows that need them go red. The standing walks on the same build: notes in folders that are no type's, notes with no id, a note quoting old-layout lines 29 of 29; Upload world against onlyworlds.com 10 of 10; a note with status and mood through Save, Download and Save again 14 of 14; auto-sync against another program writing the vault's files 12 of 12. All on Windows desktop. Not walked on this release: Manage fields' refusal of invalid properties (tests only), a Paste beside a note with a bold id line (tests only), auto-sync's own Save of a note with a heading twice (tests only), a note with Windows line endings in the new walk (every seed used \n), a write stalled past 30 seconds, iOS, Android, macOS, Linux, a vault of thousands of notes.