Skip to content

Version 0.2.0

Choose a tag to compare

@eliotBenitez eliotBenitez released this 22 Jul 22:20
· 224 commits to main since this release

🆕 Added

Notion ZIP Import

  • Secure desktop import: Added local-workspace import for Notion Markdown & CSV ZIP exports with validated in-memory archive sessions, nested pages, internal links, attachments, callouts, and per-item error reporting.

  • Notion databases: Imported CSV collections into Database V2 blocks with repository-backed records and safe source-code fallbacks for malformed data.

  • Window-close flush pipeline: The native window close is now intercepted in Rust (WindowEvent::CloseRequested), which prevents the default close, emits nevo://close-requested, and waits for the frontend (useAppCloseGuard) to flush pending editor content and the authoritative Y.Doc via saveNote before calling allow_app_close. Prevents loss of the last edits sitting in the autosave / Y.Doc debounce window when quitting.

  • Obsidian vault import: Added a complete importer that preserves folder structure, notes, links, attachments, embeds, frontmatter, tags, callouts, highlights, comments, and display math.

  • Workspace Home: Added a responsive home view with global search, quick creation, recent notes and boards, and persistent, accessible favorites.

  • Sandboxed Plugin SDK: Added the publishable SDK v2 with isolated Worker and iframe runtimes, permissions, marketplace migrations, storage, assets, editor extensions, and safe network access.

  • Database blocks: Added document-native databases with table, list, card, and chart views; CSV import; filtering and sorting; SQLite-backed storage; safe legacy migration; and large-data virtualization.

  • French, Spanish, and German: Added complete interface translations and language selection alongside English and Russian.

  • Android bootstrap: Added Tauri mobile scaffolding, touch-aware editor and onboarding behavior, mobile media loading, safe-area support, and mobile build scripts.

🛠️ Fixed

  • Notion page and callout cleanup: Removed duplicate page-title H1 blocks during Notion ZIP import, moved exported callout emoji into the Nevo callout icon, and used the standard icon when no emoji was available.
  • Windows bundle-size check: build-tools/check-bundle-size.mjs now resolves the assets directory via fileURLToPath instead of URL.pathname, fixing the doubled-drive path (D:\D:\...) that broke pnpm build (and therefore tauri build) on Windows.
  • Y.Doc persistence on save: saveNote now flushes the editor-owned Y.Doc (setPendingYjsFlush) on every save trigger, independent of the note-store dirty flag, so navigation and app-close saves persist the authoritative .yjs file instead of relying solely on its 2s debounce.
  • Atomic snapshot writes: Note version snapshots are now written via write_atomic instead of std::fs::write, so a crash mid-write can no longer leave a truncated snapshot JSON.
  • Idle-autosave safety net: Added a coarse periodic flush (3 min) in useNotePersistence so a dirty note is never left unsaved indefinitely under the window-idle autosave policy, bounding note.json ↔ Y.Doc drift.
  • Windows atomic writes: Serialized same-process replacements to prevent access-denied errors during concurrent writes.
  • Workspace data integrity: Prevented data loss and stale metadata during note, folder, graph, database, and workspace-manifest operations; database records now survive undo, cut/paste, and GitHub Sync.
  • GitHub Sync reliability: Reused unchanged blobs, retried transient and rate-limit failures, skipped oversized assets safely, and included the SQLite database in synchronization.
  • Security boundaries: Hardened workspace file access, plugin networking and marketplace downloads, local AI endpoints, remote image imports, LAN collaboration, and stored SVG handling.
  • Imports and exports: Restored block math during Markdown/Obsidian import and made PDF preview/export reliable for large notes.
  • Platform behavior: Fixed mobile workspace creation, Linux viewport scaling, Windows sidebar clipping, and stale Home recent-item timestamps.

🔄 Updated / Improved

  • Extracted transaction cleanup into documentCleanup: Moved the per-transaction asset-removal detection (collectRemovedAssetSrcs) and the deferred database-block deletion tracking out of useEditorCore into a framework-agnostic module. Behavior is unchanged (the asset scan stays gated on the onAssetSrcsRemoved callback; database deletes stay deferred and reconciled against the live doc), and both the tricky step-replay diff and the deferral/reconciliation state machine are now unit-tested. Completes the useEditorCore decomposition (1167 → 903 lines).
  • Extracted the plugin-host runtime bridge into buildPluginRuntime: Moved the ~110-line plugin↔host↔Tauri runtime object (capability methods gated by typeof … === 'function') out of useEditorCore.initPluginHost into a dedicated factory typed against EditorPluginHostOptions['runtime']. Behavior is identical; the whole plugin capability surface now lives in one place instead of leaking into the editor lifecycle, and the type system enforces the contract. useEditorCore dropped below 1000 lines.
  • Extracted paste handling into usePasteHandling: Moved the ProseMirror handlePaste logic (image short-circuit, rich HTML/Markdown handling, plain-text paragraph splitting) out of useEditorCore into a pure, unit-tested factory. Behavior is unchanged — paste behavior is read at paste time via a getter, exactly as before — and the branch logic is now covered by tests.
  • Extracted Y.Doc persistence into useYjsPersistence: Moved the debounced disk-persistence lifecycle of the editor-owned Y.Doc (save timer, update handler, teardown-flush, immediate flush) out of useEditorCore into a dedicated, unit-tested composable. Behavior and teardown ordering are unchanged; the timer/handler ownership now lives in one place with its own tests (debounce/coalesce, teardown-flush, stale-doc guard, flushNow). First step of the useEditorCore decomposition.
  • Extracted loadOrCreateYDoc with corrupt-.yjs recovery tests: Moved the note Y.Doc load/restore/fallback logic out of useEditorCore.setupEditorForNote into a pure, unit-tested helper in editor-core/collaboration. Behavior is unchanged (restore valid state, seed from note.content on empty or corrupt bytes, degrade to non-Yjs mode only if seeding fails), but the recovery path is now covered by tests so a corrupt saved document provably cannot leave a note unopenable.
  • Content-authority invariant documented: Made the Y.Doc ↔ note.content relationship explicit at the editor setup site — the disk-backed Y.Doc is authoritative, note.content is a derived cache that ySyncPlugin reconciles on open, and both are flushed at the same save points. Prevents future changes from reintroducing silent drift.
  • Removed a guarded unwrap in start_collab_server: Replaced is_some() + as_ref().unwrap() with an if let, matching the no-panic-in-command-handlers guideline (behavior unchanged).
  • Collab session token transport: The embedded collaboration relay now accepts the session token via the Sec-WebSocket-Protocol header (marker subprotocol nevo-collab-v1) and echoes it back on a successful handshake, keeping the token out of the connection URL (which can leak into logs). The legacy ?token= query parameter is still accepted as a fallback.
  • Rust dependency security: Updated Typst, Tauri, and transitive backend dependencies to their latest compatible releases and documented temporary Cargo Audit exceptions for upstream-constrained quick-xml advisories.
  • Workspace navigation: Replaced titlebar search with a keyboard-accessible command-palette overlay and added docked or floating sidebar layouts.
  • Workspace appearance: Added a curated SVG glyph set, refreshed key dialogs and Home interactions, and updated README screenshots.
  • Performance and resilience: Improved large-workspace database operations, graph indexing, editor and plugin responsiveness, atomic workspace writes, and frontend bundle size.
  • Mobile readiness: Separated desktop-only permissions and services from mobile builds and bundled application fonts locally.