mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-09-02 00:37:07 +00:00
Merge pull request #882 from vrtmrz/p2p-rpc
feat: use new p2p-rpc wrapper
This commit is contained in:
+1
-1
Submodule src/lib updated: 97530553a6...6a2dc6777f
@@ -5,7 +5,14 @@ The head note of 0.25 is now in [updates_old.md](https://github.com/vrtmrz/obsid
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Improved
|
||||||
|
|
||||||
|
- P2P synchronisation has been made more robust
|
||||||
|
Now the foundation for P2P synchronisation has been rewritten, and the unit tests have been added. The foundation has been separated into the transport layer, signalling-and-connection layer, and, an RPC layers. And each layer has been unit-tested. As the result, the P2P synchronisation now uses the robust shim that uses RPC-ed PouchDB synchronisation in contrast to previous implementation.
|
||||||
|
This P2P synchronisation is not compatible with previous versions in terms of connectivity. All devices must be updated.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- No longer baffling errors occur when setting-update is triggered during the early stage of initialisation.
|
- No longer baffling errors occur when setting-update is triggered during the early stage of initialisation.
|
||||||
|
|
||||||
## 0.25.60
|
## 0.25.60
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
import { defineConfig, mergeConfig } from "vitest/config";
|
||||||
|
import viteConfig from "./vitest.config.common";
|
||||||
|
|
||||||
|
export default mergeConfig(
|
||||||
|
viteConfig,
|
||||||
|
defineConfig({
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
obsidian: "",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
test: {
|
||||||
|
name: "rpc-unit-tests",
|
||||||
|
include: ["src/lib/src/rpc/**/*.unit.spec.ts"],
|
||||||
|
exclude: ["test/**"],
|
||||||
|
coverage: {
|
||||||
|
include: ["src/lib/src/rpc/**/*.ts"],
|
||||||
|
exclude: ["**/*.unit.spec.ts", "**/index.ts"],
|
||||||
|
provider: "v8",
|
||||||
|
reporter: ["text", "json", "html", ["text", { file: "coverage-rpc-text.txt" }]],
|
||||||
|
thresholds: {
|
||||||
|
lines: 90,
|
||||||
|
functions: 90,
|
||||||
|
branches: 75,
|
||||||
|
statements: 90,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
);
|
||||||
Reference in New Issue
Block a user