Skip to content

v1.1.0

Choose a tag to compare

@lutefd lutefd released this 09 Aug 15:22
· 186 commits to main since this release
76776aa

Release Notes — Offline Editing Support

Version: v1.1.0
Date: 2025-08-09

Highlights

  • Offline editing: Edits in teamDocsPath no longer get reverted while offline. Reservation checks/enforcement only happen when the remote is reachable.

Changes

  • New: GitService.isRemoteReachable(timeoutMs?: number) in [src/services/GitService.ts]) to detect connectivity via a quick git ls-remote check.
  • Updated: FileHandler.onFileModified() and FileHandler.onEditorChange() in [src/handlers/FileHandlers.ts]
    • Online: preserve original behavior (sync/extend reservations, revert unauthorized edits, enforce read-only for others’ reservations).
    • Offline: skip reservation sync/enforcement and do not revert edits.

Tests

  • [tests/services/GitService.test.ts]: success/failure coverage for [isRemoteReachable()].
  • [tests/handlers/FileHandlers.test.ts]:
    • No read-only enforcement on editor change when offline.
    • No revert or reservation attempts on modify when offline.
  • [tests/helpers/mockPlugin.ts]: adds gitService.isRemoteReachable mock.

Notes

  • Auto-commit still requires a valid local reservation; offline commits are skipped unless you already hold one.
  • [.gitignore]: now ignores coverage.

Potential follow-ups

  • Optionally gate deletion restore in [onFileDeleted()] by connectivity.
  • Consider making reachability timeout configurable if networks are slow.

Full Changelog: v1.0.0...v1.1.0