### Improved

- Database fetching (a.k.a. Reset Synchronisation on This Device) on the initialisation now supports streaming and is faster (CouchDB only)
- The database fetching process has been streamlined, and database operations are now suspended until it has been completed
- The initial synchronisation process has been simplified, making it easier to synchronise files with the remote server
- We can select the remote database to fetch from during the initialisation, when there are multiple remote databases configured (e.g. multiple CouchDBs or S3 remotes)
This commit is contained in:
vorotamoroz
2026-06-02 12:34:46 +01:00
parent 0e6dd300ef
commit 7d2ba1b0b9
8 changed files with 749 additions and 92 deletions
@@ -80,7 +80,9 @@ describe("CLIStorageEventManagerAdapter", () => {
expect(handlers.onCreate).toHaveBeenCalledTimes(1);
const created = (handlers.onCreate as ReturnType<typeof vi.fn>).mock.calls[0][0] as NodeFile;
expect(created.path).toBe("subdir/note.md");
if(process.platform !== "win32") {
expect(created.path).toBe("subdir/note.md");
}
expect(created.stat?.size).toBe(42);
});