Skip to content

Releases: trip2g/obsidian-sync

0.3.5

14 Jan 04:09

Choose a tag to compare

feat(cli): add prefix argument for multi-repo setups

  • New syntax: trip2g-sync [prefix] [options]
  • Files uploaded with prefix path (e.g., docs/file.md)
  • Prefix only works in push-only mode
  • Filter server hashes by prefix to avoid conflicts

0.3.4

13 Jan 12:55

Choose a tag to compare

feat(cli): add --meta option for frontmatter injection

Allows injecting/overwriting frontmatter fields when syncing files via CLI.
Useful for multi-repo setups where each repo needs different subgraph.

Usage: --meta key=value (can be repeated)
Example: --meta subgraph=docs --meta author=Team

0.3.3

07 Jan 14:45

Choose a tag to compare

fix: _layouts/*.html files now sync without requiring publishFields

0.3.2

07 Jan 09:05

Choose a tag to compare

Bug Fixes

  • Fix HTML files sync with publishFields: HTML files (like _layouts/*.html) are now always synced even when publishFields is set (e.g., publishFields: free). Previously, HTML files were filtered out because they don't have frontmatter.

Technical Details

  • HTML files don't have frontmatter, so they're now treated as always publishable
  • Added tests to verify HTML file handling with publishFields filtering
  • This fix ensures template files in _layouts/ directory sync correctly

0.3.1

25 Dec 13:19

Choose a tag to compare

fix(sync): detect changed assets on unchanged notes

When only an asset file (e.g., CSS) changed but the referencing note remained unchanged, the sync would not detect or upload the asset change.

0.3.0 Update sync logic

21 Dec 12:03

Choose a tag to compare

A few small fixes in sync logic

0.2.8

17 Dec 11:41

Choose a tag to compare

fix: deduplicate assets by (noteId, localPath) instead of just localPath
fix: skip asset downloads for unchanged files when twoWaySync disabled
fix: handle HTTP 404 errors in asset downloads

0.2.7

15 Dec 05:12

Choose a tag to compare

fix: skip asset downloads when twoWaySync disabled
fix: handle HTTP 404 errors in asset downloads

0.2.6

13 Dec 06:58

Choose a tag to compare

Changes

Security

  • Defense in depth: pushNotes now validates publish field in frontmatter before sending to server
  • Throws exception if note without publish field attempts to sync (when publishField is configured)
  • Prevents accidental publishing of private notes even if filterPlan has a bug

CLI

  • Add --publish-field option support

0.2.5

13 Dec 05:12

Choose a tag to compare

Changes

Obsidian Plugin

  • feat(sync): add batching for pushNotes to handle large vaults (2000+ files)

CLI (new!)

  • Standalone CLI bundle: trip2g-sync.mjs (26KB, zero dependencies)
  • Usage: node trip2g-sync.mjs --folder ./vault --api-key xxx
  • Supports: push, two-way sync, dry-run, conflict resolution