Repository navigation
v1.1.0
Release Notes — Offline Editing Support
Version: v1.1.0
Date: 2025-08-09
Highlights
- Offline editing: Edits in
teamDocsPathno 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 quickgit ls-remotecheck. - Updated:
FileHandler.onFileModified()andFileHandler.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.isRemoteReachablemock.
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