Skip to content

TomaNote v0.5.8 — Offline Pre-loading & Fallback Foundations

Choose a tag to compare

@camiicode camiicode released this 27 Sep 22:23
· 53 commits to master since this release

Overview

TomaNote v0.5.8 hardens the offline-first, local-first foundation of the editor. Every keystroke now reaches LocalStorage instantly, network state is tracked by a single reactive store, and the UI communicates offline mode without any layout shift. The release also clears all known security advisories in the dependency tree (npm audit: 9 → 0) and ships the largest verified test suite in the project's history.

920 total tests — 761 unit (Vitest, 35 files) + 159 E2E (Playwright), all green, E2E verified against the production build.

Core Changelog

✨ Centralized connectivity framework

  • Reactive window.connectivity store — isOnline, clean subscribe() API and a global connectivity-changed event, with non-leaking online/offline listeners. Single source of truth, ready for the upcoming mobile List/Grid views.
  • Connection status badge — a discrete toast announces connection drops ("You're offline — changes are saved locally") and recovery ("Back online") with zero desktop layout shift (EN/ES).
  • Offline-aware save toasts — autosave and manual save report "Saved locally (Offline mode active)" while the connection is down.
  • Instant-LocalStorage persistence — edits land in tabsData immediately instead of waiting for tab switches or beforeunload; corrupt payloads degrade to an empty list instead of blanking the window.

🐛 Bug fixes

  • Custom font cascade to the editor (#104) — .ProseMirror now consumes var(--font-family-notes, …) instead of a hardcoded stack, so user font preferences reach the Milkdown surface.
  • Autosave debounce event bubbling (#105) — the save-indicator input filter matches editor surfaces structurally, so keystrokes from the Milkdown child surface correctly restart the 5 s countdown.
  • Ctrl+S / Cmd+S shortcut casing (#106) — case-insensitive key matching for Chromium's uppercase delivery, a dedicated Meta+S binding for macOS, and an immediate confirmation toast.
  • Mobile slash-link plugin (#107) — typing " / " in the mobile editor opens the custom Link Insertion Modal through a ProseMirror handleTextInput plugin.
  • waitForAppReady E2E helper hardened against mount races with a mobile fallback path.

Dependency Updates (security)

Package Change Advisory
astro 7.1.0 → 7.3.x critical AVIF image-optimization RCE (GHSA-26w7-cxv4-gfx2) and base-path authorization bypass (GHSA-376h-93r7-7g6f) (#110)
vitest / @vitest/mocker 4.1.10 → 4.1.11 path traversal / arbitrary file read via redirect mock (CVE-2026-84373) (#109)
devalue 5.8.1 → 5.9.4 (pinned via npm overrides) DoS via malformed input (CVE-2026-81176) (#108)

npm audit footprint reduced from 9 to 0 active vulnerabilities, including the transitive brace-expansion advisory.


Full Changelog: v0.5.7...v0.5.8