Skip to content

Obsidian Community Plugin Store Compliance

Choose a tag to compare

@shawnduggan shawnduggan released this 21 Aug 10:56
· 260 commits to main since this release

Major Updates

API Modernization

  • Replaced deprecated activeLeaf with getActiveViewOfType(MarkdownView)
  • Updated vault.modify() to Editor API (editor.replaceRange(), editor.setValue())
  • Replaced fetch() with requestUrl() for proper CORS handling
  • Added proper deferred view handling for Obsidian v1.7.2+

Memory Leak Prevention

  • All event listeners now use registerDomEvent() system
  • All timers properly registered with registerInterval()
  • Proper cleanup systems for all UI components

Performance Improvements

  • Optimized file operations using MetadataCache instead of iterating all files
  • Replaced inefficient file path resolution with direct getFileByPath() calls
  • Removed redundant saveData() operations for faster settings updates

UI Enhancements

  • Replaced custom dropdown with native DropdownComponent
  • Added Enter key submission to Tell Nova modal (Shift+Enter for new lines)
  • Proper icon registration using Obsidian's addIcon()/setIcon() APIs
  • Converted all settings headings to proper Setting API format

Bug Fixes

  • Fixed tag normalization to handle special characters (apostrophes, periods, C++, etc.)
  • Fixed metadata update to create frontmatter when none exists
  • Fixed command ID naming to remove redundant plugin prefixes

Code Quality

  • Removed 100+ lines of dead code and unused CSS
  • Obfuscated license signing keys for security
  • Updated all text to sentence case per Obsidian guidelines
  • Enhanced README with clear payment/ads disclosure

Technical Details

Compliance Requirements Addressed:

  • ✅ Modern API usage (no deprecated APIs)
  • ✅ Proper event listener registration
  • ✅ Timer registration for memory leak prevention
  • ✅ CSS scoping to avoid core style conflicts
  • ✅ Command naming without plugin prefixes
  • ✅ Settings UI following Obsidian patterns
  • ✅ Security best practices for sensitive data

Files Changed: 44 files with 1,723 additions and 1,844 deletions