Compare commits

...

4 Commits

Author SHA1 Message Date
vorotamoroz 236f2293ce Remove notice. 2022-06-10 01:28:41 +09:00
vorotamoroz 4cb908cf62 Fixed migration problem. 2022-06-10 01:26:55 +09:00
vorotamoroz fab2327937 fix a typo. 2022-06-09 18:22:38 +09:00
vorotamoroz 0837648aa6 Add a note 2022-06-09 18:20:51 +09:00
6 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"id": "obsidian-livesync", "id": "obsidian-livesync",
"name": "Self-hosted LiveSync", "name": "Self-hosted LiveSync",
"version": "0.10.0", "version": "0.10.1",
"minAppVersion": "0.9.12", "minAppVersion": "0.9.12",
"description": "Community implementation of self-hosted livesync. Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.", "description": "Community implementation of self-hosted livesync. Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.",
"author": "vorotamoroz", "author": "vorotamoroz",
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "obsidian-livesync", "name": "obsidian-livesync",
"version": "0.10.0", "version": "0.10.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "obsidian-livesync", "name": "obsidian-livesync",
"version": "0.10.0", "version": "0.10.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"diff-match-patch": "^1.0.5", "diff-match-patch": "^1.0.5",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "obsidian-livesync", "name": "obsidian-livesync",
"version": "0.10.0", "version": "0.10.1",
"description": "Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.", "description": "Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.",
"main": "main.js", "main": "main.js",
"type": "module", "type": "module",
+3 -3
View File
@@ -158,7 +158,7 @@ export class LocalPouchDB {
async isOldDatabaseExists() { async isOldDatabaseExists() {
const db = new PouchDB<EntryDoc>(this.dbname + "-livesync", { const db = new PouchDB<EntryDoc>(this.dbname + "-livesync", {
auto_compaction: this.settings.useHistory ? false : true, auto_compaction: this.settings.useHistory ? false : true,
revs_limit: 100, revs_limit: 20,
deterministic_revs: true, deterministic_revs: true,
skip_setup: true, skip_setup: true,
}); });
@@ -253,9 +253,9 @@ export class LocalPouchDB {
Logger(newDbStatus); Logger(newDbStatus);
if (this.settings.encrypt) { if (this.settings.encrypt) {
enableEncryption(old, this.settings.passphrase); enableEncryption(old, this.settings.passphrase, true);
} }
const rep = old.replicate.to(this.localDatabase); const rep = old.replicate.to(this.localDatabase, { batch_size: 25, batches_limit: 10 });
rep.on("change", (e) => { rep.on("change", (e) => {
progress.setMessage(`Converting ${e.docs_written} docs...`); progress.setMessage(`Converting ${e.docs_written} docs...`);
Logger(`Converting ${e.docs_written} docs...`, LOG_LEVEL.VERBOSE); Logger(`Converting ${e.docs_written} docs...`, LOG_LEVEL.VERBOSE);
+1 -1
Submodule src/lib updated: 92c1bbc45d...b031e4e69d
+3 -3
View File
@@ -607,9 +607,9 @@ export default class ObsidianLiveSyncPlugin extends Plugin {
this.logMessage = [].concat(this.logMessage).concat([newmessage]).slice(-100); this.logMessage = [].concat(this.logMessage).concat([newmessage]).slice(-100);
console.log(valutName + ":" + newmessage); console.log(valutName + ":" + newmessage);
this.setStatusBarText(null, messagecontent.substring(0, 30)); this.setStatusBarText(null, messagecontent.substring(0, 30));
if (message instanceof Error) { // if (message instanceof Error) {
console.trace(message); // console.trace(message);
} // }
if (level >= LOG_LEVEL.NOTICE) { if (level >= LOG_LEVEL.NOTICE) {
if (messagecontent in this.notifies) { if (messagecontent in this.notifies) {