mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-04-27 11:28:34 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb69eb13e7 | ||
|
|
7c9db6376f | ||
|
|
4c04e4e676 | ||
|
|
14ec35b257 | ||
|
|
b609e4973c | ||
|
|
16804ed34c | ||
|
|
12f04f6cf7 |
@@ -24,7 +24,7 @@ Additionally, it supports peer-to-peer synchronisation using WebRTC now (experim
|
|||||||
- WebRTC is a peer-to-peer synchronisation method, so **at least one device must be online to synchronise**.
|
- WebRTC is a peer-to-peer synchronisation method, so **at least one device must be online to synchronise**.
|
||||||
- Instead of keeping your device online as a stable peer, you can use two pseudo-peers:
|
- Instead of keeping your device online as a stable peer, you can use two pseudo-peers:
|
||||||
- [livesync-serverpeer](https://github.com/vrtmrz/livesync-serverpeer): A pseudo-client running on the server for receiving and sending data between devices.
|
- [livesync-serverpeer](https://github.com/vrtmrz/livesync-serverpeer): A pseudo-client running on the server for receiving and sending data between devices.
|
||||||
- [webpeer](https://github.com/vrtmrz/livesync-commonlib/tree/main/apps/webpeer): A pseudo-client for receiving and sending data between devices.
|
- [webpeer](https://github.com/vrtmrz/obsidian-livesync/tree/main/src/apps/webpeer): A pseudo-client for receiving and sending data between devices.
|
||||||
- A pre-built instance is available at [fancy-syncing.vrtmrz.net/webpeer](https://fancy-syncing.vrtmrz.net/webpeer/) (hosted on the vrtmrz blog site). This is also peer-to-peer. Feel free to use it.
|
- A pre-built instance is available at [fancy-syncing.vrtmrz.net/webpeer](https://fancy-syncing.vrtmrz.net/webpeer/) (hosted on the vrtmrz blog site). This is also peer-to-peer. Feel free to use it.
|
||||||
- For more information, refer to the [English explanatory article](https://fancy-syncing.vrtmrz.net/blog/0034-p2p-sync-en.html) or the [Japanese explanatory article](https://fancy-syncing.vrtmrz.net/blog/0034-p2p-sync).
|
- For more information, refer to the [English explanatory article](https://fancy-syncing.vrtmrz.net/blog/0034-p2p-sync-en.html) or the [Japanese explanatory article](https://fancy-syncing.vrtmrz.net/blog/0034-p2p-sync).
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "obsidian-livesync",
|
"id": "obsidian-livesync",
|
||||||
"name": "Self-hosted LiveSync",
|
"name": "Self-hosted LiveSync",
|
||||||
"version": "0.25.58",
|
"version": "0.25.59",
|
||||||
"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",
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "obsidian-livesync",
|
"name": "obsidian-livesync",
|
||||||
"version": "0.25.58",
|
"version": "0.25.59",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "obsidian-livesync",
|
"name": "obsidian-livesync",
|
||||||
"version": "0.25.58",
|
"version": "0.25.59",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aws-sdk/client-s3": "^3.808.0",
|
"@aws-sdk/client-s3": "^3.808.0",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "obsidian-livesync",
|
"name": "obsidian-livesync",
|
||||||
"version": "0.25.58",
|
"version": "0.25.59",
|
||||||
"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",
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ export const _requestToCouchDBFetch = async (
|
|||||||
authorization: authHeader,
|
authorization: authHeader,
|
||||||
"content-type": "application/json",
|
"content-type": "application/json",
|
||||||
};
|
};
|
||||||
const uri = `${baseUri}/${path}`;
|
const uri = `${baseUri.replace(/\/+$/, "")}/${path}`;
|
||||||
const requestParam = {
|
const requestParam = {
|
||||||
url: uri,
|
url: uri,
|
||||||
method: method || (body ? "PUT" : "GET"),
|
method: method || (body ? "PUT" : "GET"),
|
||||||
@@ -162,7 +162,7 @@ export const _requestToCouchDB = async (
|
|||||||
const authHeaderGen = new AuthorizationHeaderGenerator();
|
const authHeaderGen = new AuthorizationHeaderGenerator();
|
||||||
const authHeader = await authHeaderGen.getAuthorizationHeader(credentials);
|
const authHeader = await authHeaderGen.getAuthorizationHeader(credentials);
|
||||||
const transformedHeaders: Record<string, string> = { authorization: authHeader, origin: origin, ...customHeaders };
|
const transformedHeaders: Record<string, string> = { authorization: authHeader, origin: origin, ...customHeaders };
|
||||||
const uri = `${baseUri}/${path}`;
|
const uri = `${baseUri.replace(/\/+$/, "")}/${path}`;
|
||||||
const requestParam: RequestUrlParam = {
|
const requestParam: RequestUrlParam = {
|
||||||
url: uri,
|
url: uri,
|
||||||
method: method || (body ? "PUT" : "GET"),
|
method: method || (body ? "PUT" : "GET"),
|
||||||
|
|||||||
@@ -781,7 +781,8 @@ Success: ${successCount}, Errored: ${errored}`;
|
|||||||
const credential = generateCredentialObject(this.settings);
|
const credential = generateCredentialObject(this.settings);
|
||||||
const request = async (path: string, method: string = "GET", body: any = undefined) => {
|
const request = async (path: string, method: string = "GET", body: any = undefined) => {
|
||||||
const req = await _requestToCouchDB(
|
const req = await _requestToCouchDB(
|
||||||
this.settings.couchDB_URI + (this.settings.couchDB_DBNAME ? `/${this.settings.couchDB_DBNAME}` : ""),
|
this.settings.couchDB_URI.replace(/\/+$/, "") +
|
||||||
|
(this.settings.couchDB_DBNAME ? `/${this.settings.couchDB_DBNAME}` : ""),
|
||||||
credential,
|
credential,
|
||||||
window.origin,
|
window.origin,
|
||||||
path,
|
path,
|
||||||
|
|||||||
2
src/lib
2
src/lib
Submodule src/lib updated: 5dc3b21d36...e4380ccd00
13
updates.md
13
updates.md
@@ -3,6 +3,19 @@ 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.
|
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.59
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- No longer Setup-wizard drops username and password silently. (#865)
|
||||||
|
- Thank you so much for @koteitan !
|
||||||
|
- Setup URI is now correctly imported (#859).
|
||||||
|
- Also thank you so much for @koteitan !
|
||||||
|
|
||||||
|
### Improved
|
||||||
|
|
||||||
|
- now French translation is added by @foXaCe ! Thank you so much!
|
||||||
|
|
||||||
## 0.25.58
|
## 0.25.58
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
Reference in New Issue
Block a user