Skip to content

v0.7.0 — Read attachments through the vault client

Latest

Choose a tag to compare

@odiak odiak released this 09 Oct 07:12
· 3 commits to main since this release
6e74802

Attachments

  • Add Vault.listFileStats(), which lists every synced file including attachments such as images. Hidden internal files (i:) are excluded and reserved paths are enforced.
  • Add Vault.readFile(path), which returns a file's bytes as Uint8Array, or null when it is missing, incomplete or cannot be decoded.
  • Binary documents are decoded chunk by chunk, since LiveSync encodes each piece separately; LiveSync's legacy % encoding is supported as well. Text documents are returned as UTF-8.

Existing Markdown APIs (listNoteStats, readNote, …) are unchanged.

Validation

Type checking, 170 tests, and the library build passed.