Skip to content

v0.2.0

Choose a tag to compare

@odiak odiak released this 24 Sep 11:10
· 24 commits to main since this release
5a1f648

Default behaviour is unchanged; this release adds extension points for hosts, each of which only takes effect when set.

  • VaultBindings.fullText (FullTextIndex): replace the full-text index with an external implementation. Notes are upserted / deleted one by one as they change, and the in-DO R2 rebuild of the whole vault (which exceeds 128 MB for large vaults) is not run. Progress is tracked separately from the vectors; failures are retried without re-embedding. Existing notes are backfilled automatically. bucket may be omitted when fullText is given.
  • VaultBindings.objectName: choose the Durable Object name (default tenantId:databaseName; override LiveSyncVaultDO.vaultRef() as well if you change it).
  • VaultPolicy.excludeHiddenPaths: keep dot-prefixed paths such as .obsidian/ and .trash/, and i: hidden files, out of the indexes (default false).
  • vaultDb accepts the class-typed DurableObjectNamespace<…> that wrangler types generates.
  • handleLiveSyncRequest: exceptions become 500 responses with CORS headers (so the plugin no longer misreports them as CORS errors), and preflight responses are cacheable via Access-Control-Max-Age.

See "Optional: an external full-text index" and "Optional: Durable Object names" in docs/embedding.md.