mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-09-21 18:17:05 +00:00
Use Commonlib 0.1.27 for Journal transfer readiness
This commit is contained in:
Generated
+4
-4
@@ -23,7 +23,7 @@
|
|||||||
"@smithy/types": "^4.14.3",
|
"@smithy/types": "^4.14.3",
|
||||||
"@smithy/util-retry": "^4.4.5",
|
"@smithy/util-retry": "^4.4.5",
|
||||||
"@vrtmrz/browser-ui-kit": "0.1.0",
|
"@vrtmrz/browser-ui-kit": "0.1.0",
|
||||||
"@vrtmrz/livesync-commonlib": "0.1.26",
|
"@vrtmrz/livesync-commonlib": "0.1.27",
|
||||||
"@vrtmrz/obsidian-plugin-kit": "0.1.4",
|
"@vrtmrz/obsidian-plugin-kit": "0.1.4",
|
||||||
"@vrtmrz/ui-interactions": "0.1.2",
|
"@vrtmrz/ui-interactions": "0.1.2",
|
||||||
"diff-match-patch": "^1.0.5",
|
"diff-match-patch": "^1.0.5",
|
||||||
@@ -4567,9 +4567,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vrtmrz/livesync-commonlib": {
|
"node_modules/@vrtmrz/livesync-commonlib": {
|
||||||
"version": "0.1.26",
|
"version": "0.1.27",
|
||||||
"resolved": "https://registry.npmjs.org/@vrtmrz/livesync-commonlib/-/livesync-commonlib-0.1.26.tgz",
|
"resolved": "https://registry.npmjs.org/@vrtmrz/livesync-commonlib/-/livesync-commonlib-0.1.27.tgz",
|
||||||
"integrity": "sha512-AVJky976PP1M+g18im6tJ1eKSq82uN73vkS98WWZWvMJ1UDz6O8YRVWa9dkFakAVXecdxxxLkiD45g5HTRnn6Q==",
|
"integrity": "sha512-n/AIqXPGN9Z7zmq0QSKnlE5uY5hTZgXW6VM6NJERR0/ggx3TTv1b3WsSbiLpCeU7Mu6KbPqC2BSjr4jCGvSdCA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aws-sdk/client-s3": "^3.808.0",
|
"@aws-sdk/client-s3": "^3.808.0",
|
||||||
|
|||||||
+1
-1
@@ -183,7 +183,7 @@
|
|||||||
"@smithy/types": "^4.14.3",
|
"@smithy/types": "^4.14.3",
|
||||||
"@smithy/util-retry": "^4.4.5",
|
"@smithy/util-retry": "^4.4.5",
|
||||||
"@vrtmrz/browser-ui-kit": "0.1.0",
|
"@vrtmrz/browser-ui-kit": "0.1.0",
|
||||||
"@vrtmrz/livesync-commonlib": "0.1.26",
|
"@vrtmrz/livesync-commonlib": "0.1.27",
|
||||||
"@vrtmrz/obsidian-plugin-kit": "0.1.4",
|
"@vrtmrz/obsidian-plugin-kit": "0.1.4",
|
||||||
"@vrtmrz/ui-interactions": "0.1.2",
|
"@vrtmrz/ui-interactions": "0.1.2",
|
||||||
"diff-match-patch": "^1.0.5",
|
"diff-match-patch": "^1.0.5",
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import {
|
|||||||
CAPABILITY_NOT_APPLICABLE,
|
CAPABILITY_NOT_APPLICABLE,
|
||||||
CENTRAL_REMOTE_REPLICATION_READINESS,
|
CENTRAL_REMOTE_REPLICATION_READINESS,
|
||||||
NO_INTERACTION,
|
NO_INTERACTION,
|
||||||
|
PROVIDER_OWNED_CENTRAL_REMOTE_REPLICATION_READINESS,
|
||||||
REPLICATION_PROGRESS_PRESENTATIONS,
|
REPLICATION_PROGRESS_PRESENTATIONS,
|
||||||
REMOTE_RESOURCE_KINDS,
|
REMOTE_RESOURCE_KINDS,
|
||||||
defineReplicatorProviderDefinitions,
|
defineReplicatorProviderDefinitions,
|
||||||
@@ -134,7 +135,7 @@ export function createCentralReplicatorProviderDefinitions(
|
|||||||
[REMOTE_MINIO]: {
|
[REMOTE_MINIO]: {
|
||||||
kind: REMOTE_MINIO,
|
kind: REMOTE_MINIO,
|
||||||
diagnosticName: "Object Storage",
|
diagnosticName: "Object Storage",
|
||||||
readiness: CENTRAL_REMOTE_REPLICATION_READINESS,
|
readiness: PROVIDER_OWNED_CENTRAL_REMOTE_REPLICATION_READINESS,
|
||||||
isConfigured: (settings) =>
|
isConfigured: (settings) =>
|
||||||
settings.remoteType === REMOTE_MINIO && !!settings.endpoint?.trim() && !!settings.bucket?.trim(),
|
settings.remoteType === REMOTE_MINIO && !!settings.endpoint?.trim() && !!settings.bucket?.trim(),
|
||||||
configurationIdentity: getObjectStorageReplicatorConfigurationIdentity,
|
configurationIdentity: getObjectStorageReplicatorConfigurationIdentity,
|
||||||
|
|||||||
@@ -47,6 +47,12 @@ describe("central Replicator provider definitions", () => {
|
|||||||
.toEqual(["connection", "preferred-tweak", "security-seed", "synchronisation-information"].sort());
|
.toEqual(["connection", "preferred-tweak", "security-seed", "synchronisation-information"].sort());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("lets Journal prepare its own fresh Security Seed while CouchDB uses central preparation", () => {
|
||||||
|
const definitions = createCentralReplicatorProviderDefinitions({} as never);
|
||||||
|
expect(definitions.get(REMOTE_COUCHDB)?.readiness.centralRemotePreparation).toBe("required");
|
||||||
|
expect(definitions.get(REMOTE_MINIO)?.readiness.centralRemotePreparation).toBe("provider-owned");
|
||||||
|
});
|
||||||
|
|
||||||
it("composes CouchDB and Object Storage policies outside LiveSyncBaseCore", async () => {
|
it("composes CouchDB and Object Storage policies outside LiveSyncBaseCore", async () => {
|
||||||
const host = {} as Parameters<typeof createCentralReplicatorProviderDefinitions>[0];
|
const host = {} as Parameters<typeof createCentralReplicatorProviderDefinitions>[0];
|
||||||
const definitions = createCentralReplicatorProviderDefinitions(host);
|
const definitions = createCentralReplicatorProviderDefinitions(host);
|
||||||
|
|||||||
Reference in New Issue
Block a user