From 8f20d53f5566b56f2b82ded271d61dc50a0f86ff Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Fri, 22 May 2026 11:01:51 +0100 Subject: [PATCH 1/2] Update trystero, typed well. fixed some potentially problems Weaken terser for libraries --- package-lock.json | 32 ++++++++++++++++---------------- package.json | 4 ++-- src/lib | 2 +- terser.config.mjs | 4 ++-- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9b4c981..902d1f9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "@smithy/middleware-apply-body-checksum": "^4.3.9", "@smithy/protocol-http": "^5.3.9", "@smithy/querystring-builder": "^4.2.9", - "@trystero-p2p/nostr": "^0.23.0", + "@trystero-p2p/nostr": "^0.24.0", "chokidar": "^4.0.0", "commander": "^14.0.3", "diff-match-patch": "^1.0.5", @@ -28,7 +28,7 @@ "octagonal-wheels": "^0.1.45", "pouchdb-adapter-leveldb": "^9.0.0", "qrcode-generator": "^1.4.4", - "werift": "^0.22.9", + "werift": "^0.23.0", "xxhash-wasm-102": "npm:xxhash-wasm@^1.0.2" }, "devDependencies": { @@ -2684,9 +2684,9 @@ } }, "node_modules/@noble/secp256k1": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-3.0.0.tgz", - "integrity": "sha512-NJBaR352KyIvj3t6sgT/+7xrNyF9Xk9QlLSIqUGVUYlsnDTAUqY8LOmwpcgEx4AMJXRITQ5XEVHD+mMaPfr3mg==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-3.1.0.tgz", + "integrity": "sha512-+F7iS7tUMaNGXcc9X3PjmjvuQnXEuSjCRNzVVA2xAcKXgCaP0dHYz4SFyt4FKNHef7sOP//xihowcySSS7PK9g==", "license": "MIT", "funding": { "url": "https://paulmillr.com/funding/" @@ -4297,19 +4297,19 @@ "license": "MIT" }, "node_modules/@trystero-p2p/core": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@trystero-p2p/core/-/core-0.23.0.tgz", - "integrity": "sha512-ozhtgxKDZH11Gdef0wH8xivwAE/L0/lDFvEcNFWPJWnHZlxWPPyfeonwE287ssGevQNi10vnj6x2ZcOi0n1bQQ==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@trystero-p2p/core/-/core-0.24.0.tgz", + "integrity": "sha512-W5ATiflgzZLE21fN2VA3YsK2yBJEzCvhmJ/9q2Vm3QT/gcdqDpcBxsO0DYCy/wE1PBEwoB+A75eBNtGIGAPdxw==", "license": "MIT" }, "node_modules/@trystero-p2p/nostr": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@trystero-p2p/nostr/-/nostr-0.23.0.tgz", - "integrity": "sha512-KSqUR2c1KVfv4zeErcntuegtyKzFTzNNiitIKGD0LiKA/4H3CeTF81ROk2h+X/PNvP4mv7Gp5eVxFYwfMu4Nrg==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@trystero-p2p/nostr/-/nostr-0.24.0.tgz", + "integrity": "sha512-LmsJSicsFU/rhmOWYaP/OxFl3rwGieX+q0eh0pAWUQM7IXbMu6tLC5+aAimtHitikPv9r6sck6EUTWMin8dBAw==", "license": "MIT", "dependencies": { - "@noble/secp256k1": "^3.0.0", - "@trystero-p2p/core": "0.23.0" + "@noble/secp256k1": "^3.1.0", + "@trystero-p2p/core": "0.24.0" } }, "node_modules/@tsconfig/svelte": { @@ -16291,9 +16291,9 @@ "license": "BSD-2-Clause" }, "node_modules/werift": { - "version": "0.22.9", - "resolved": "https://registry.npmjs.org/werift/-/werift-0.22.9.tgz", - "integrity": "sha512-TE9AxskSRWBMYm0MBRllfnKVXQelqC76JCvyolQyVWpmKabfY5BA/cuvkGg+71JWn3QrGih1YWtpIWGPqoxcoA==", + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/werift/-/werift-0.23.0.tgz", + "integrity": "sha512-/WcIN5DHFG9Ri4anGOmIkp8gxBGFMWSIB/m4sfZ5CWlLfD3iMhiaAUuTBuc+KV3SY9NDmvmLtiN2uaM7k3lVzw==", "license": "MIT", "dependencies": { "@fidm/x509": "^1.2.1", diff --git a/package.json b/package.json index f879eb1..95b8c94 100644 --- a/package.json +++ b/package.json @@ -130,7 +130,7 @@ "@smithy/middleware-apply-body-checksum": "^4.3.9", "@smithy/protocol-http": "^5.3.9", "@smithy/querystring-builder": "^4.2.9", - "@trystero-p2p/nostr": "^0.23.0", + "@trystero-p2p/nostr": "^0.24.0", "chokidar": "^4.0.0", "commander": "^14.0.3", "obsidian": "^1.12.3", @@ -143,7 +143,7 @@ "octagonal-wheels": "^0.1.45", "pouchdb-adapter-leveldb": "^9.0.0", "qrcode-generator": "^1.4.4", - "werift": "^0.22.9", + "werift": "^0.23.0", "xxhash-wasm-102": "npm:xxhash-wasm@^1.0.2" } } diff --git a/src/lib b/src/lib index c5beaa3..b9aaf3c 160000 --- a/src/lib +++ b/src/lib @@ -1 +1 @@ -Subproject commit c5beaa3866e1475cb0bca703db6732deefe09483 +Subproject commit b9aaf3c03a773cf54887da5826e52774239106b9 diff --git a/terser.config.mjs b/terser.config.mjs index 6b35d5c..e15bc67 100644 --- a/terser.config.mjs +++ b/terser.config.mjs @@ -34,11 +34,11 @@ const terserOption = { inline: false, join_vars: true, loops: true, - passes: 4, + passes: 1, reduce_vars: true, reduce_funcs: false, arrows: true, - collapse_vars: true, + collapse_vars: false, comparisons: true, //@ts-ignore lhs_constants: true, From e739302fb9109181e99a6b417284221538ab6ac8 Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Fri, 22 May 2026 11:11:18 +0100 Subject: [PATCH 2/2] bump --- manifest.json | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- updates.md | 10 ++++++++++ 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/manifest.json b/manifest.json index 63aa6f0..027fd64 100644 --- a/manifest.json +++ b/manifest.json @@ -1,10 +1,10 @@ { "id": "obsidian-livesync", "name": "Self-hosted LiveSync", - "version": "0.25.67", + "version": "0.25.68", "minAppVersion": "1.7.2", "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", "authorUrl": "https://github.com/vrtmrz", "isDesktopOnly": false -} +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 902d1f9..bd8f9bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "obsidian-livesync", - "version": "0.25.67", + "version": "0.25.68", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "obsidian-livesync", - "version": "0.25.67", + "version": "0.25.68", "license": "MIT", "dependencies": { "@aws-sdk/client-s3": "^3.808.0", diff --git a/package.json b/package.json index 95b8c94..057971c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-livesync", - "version": "0.25.67", + "version": "0.25.68", "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", "type": "module", diff --git a/updates.md b/updates.md index b8b9bc9..6bedf71 100644 --- a/updates.md +++ b/updates.md @@ -3,6 +3,16 @@ Since 19th July, 2025 (beta1 in 0.25.0-beta1, 13th July, 2025) The head note of 0.25 is now in [updates_old.md](https://github.com/vrtmrz/obsidian-livesync/blob/main/updates_old.md). Because 0.25 got a lot of updates, thankfully, compatibility is kept and we do not need breaking changes! In other words, when get enough stabled. The next version will be v1.0.0. Even though it my hope. +## 0.25.68 + +22nd May, 2026 + +### Improved + +- P2P connections have improved slightly + - Upgrade to `trystero` v0.24.0, and fixes event handler assignment. This should fix some edge cases where P2P connections fail to establish or messages are not properly handled. + - Weaken terser options to avoid potential issues with minification that could cause runtime errors in some environments. + ## ~~0.25.66~~ 0.25.67 20th May, 2026