Skip to content

0.5.1

Choose a tag to compare

@github-actions github-actions released this 26 Nov 05:53
9a3838d

okvault 0.5.1 is a fix release. Two okvault servers on one checkout no longer trip over each other's git fetches. Questions are no longer dropped on Windows. The server no longer serves stale results after overlapping reloads. Plugin buttons now say so when they fail.

Fixes

Server

  • Two okvault servers on one checkout no longer fail to sync. When another process held a git ref lock during a fetch, sync reported "offline?" and gave up. Now okvault waits up to 3 seconds for the other fetch to finish. If the lock is still held, it says so and retries on the next sync. On Windows it also waits briefly for another process to release okvault.lock instead of failing. (#26)
  • Knowledge-gap questions are no longer lost on Windows. When one okvault rotated the gaps log, another could not open it for a moment, so the question was dropped and kb_gaps could fail. Opening the log now waits out the busy file. (#27)
  • No more stale results after overlapping reloads. The file watcher, writes, git and rescan can all reload the vault at once. An older reload or search-index rebuild could finish last, leaving broken links, review status or search results stale until the next change. Reloads and index rebuilds now run one at a time, and the newest always wins. (#30)
  • okvault --version shows the real version for go install builds. It printed dev; it now reports the module version (for example v0.5.1), or dev-<commit> for a local build. (#25)
  • The okvault verify usage message now lists --vault, like the help text. (#29)

Obsidian plugin (#28)

  • Failed actions show an error. About 30 buttons and actions (Sync, Rescan, Save, Reconnect, inspector fixes, opening notes and tickets) used to fail without a word. They now show the error as a notice.
  • No more "[object Object]". A list or map in frontmatter or .okvault.yaml where text belongs no longer shows up, or gets saved, as "[object Object]".
  • A free-text status no longer ends up in an element's CSS class name.
  • Ticket links in reading view now work in popout windows.
  • The plugin passes Obsidian's lint rules, the ones the community directory checks. CI and the release workflow now run them.

Upgrading

  • Plugin: Obsidian or BRAT picks up 0.5.1. You can also put the three files below in <vault>/.obsidian/plugins/okvault/.
  • Server: the sync, gaps and reload fixes are in the server, so update okvault too:
    go install github.com/baschen-dev/okvault/cmd/okvault@v0.5.1
    
  • No config changes.
  • Verify the assets: gh attestation verify main.js --repo baschen-dev/okvault

All changes

Fixes

  • fix(cli): report the module version from go install builds by @abaschen in #25
  • fix(gitsync): wait out another okvault's fetch and lock release by @abaschen in #26
  • fix(gaps): wait out a busy log on Windows instead of dropping the question by @abaschen in #27
  • fix(obsidian): pass Obsidian's lint rules and show failed actions by @abaschen in #28
  • fix(vault): keep the newest snapshot and index when reloads overlap by @abaschen in #30

Maintenance

Full Changelog: 0.5.0...0.5.1