Skip to content

v4.0.2 — Argument checks for vault_edit and vault_update_frontmatter, Windows lock wait

Latest

Choose a tag to compare

@AdrianV101 AdrianV101 released this 17 Nov 00:05
ae68ba8

A patch release with two fixes. Read the 4.0.0 notes for what 4.0 brings and how to upgrade from 3.x.

Fixed

  • vault_edit refuses a missing new_string, or one that isn't a string, instead of writing the text undefined into the note and reporting success. An empty string still deletes the match.
  • vault_update_frontmatter refuses a missing fields, or one that isn't an object, instead of reporting success without changing anything.
  • On Windows, a write no longer fails with EPERM when another session releases the note's lock at that moment. Windows refuses to create a file another process has just deleted until the last handle to it closes. The plugin now waits for it as it waits for a held lock, for up to 15 seconds, and reports EPERM only if it lasts that long. The same applies to the guard file used to take over a lock left by a crashed process.

Full changelog: CHANGELOG.md · v4.0.1...v4.0.2