Compare commits

...

57 Commits

Author SHA1 Message Date
vorotamoroz 77eacade10 Generate fallback types during releases 2026-07-14 03:15:42 +09:00
vorotamoroz d404f2ae54 Add the 0.25.81 release note 2026-07-14 03:04:10 +09:00
github-actions[bot] a7c488f377 Releasing 0.25.81 2026-07-13 18:02:25 +00:00
vorotamoroz 0f75cd92c0 Automate and validate the release flow (#998)
* improve release flow

* limit permission

* Test and harden the release workflow

* Keep workspace lockfile versions aligned

* Run release regression tests in CI
2026-07-14 03:01:22 +09:00
vorotamoroz a41c829c10 fix: preserve U+FEFF at chunk boundaries (#1010) 2026-07-14 02:15:57 +09:00
vorotamoroz ff12778301 Fix strfry tmpfs permissions in CI (#1011) 2026-07-14 02:12:54 +09:00
vorotamoroz e38084b901 Use cached ignore matchers from commonlib (#1008) 2026-07-14 00:29:11 +09:00
vorotamoroz 9265a74578 Merge pull request #1007 from apple-ouyang/codex/cache-cli-ignore-matchers
Compile CLI ignore patterns once
2026-07-13 13:26:21 +09:00
Ouyang Xingyuan f28d886603 perf(cli): compile ignore patterns once
Long-running CLI processes rebuilt the same minimatch ASTs for every checked path.

Compile patterns while loading ignore rules and reuse them until the rules are reloaded.

Refs #1006
2026-07-13 10:47:35 +08:00
vorotamoroz 9c375bd6fd Deploy QR aggregator with GitHub Pages 2026-07-12 21:06:56 +09:00
vorotamoroz 42a333a571 Record P2P validation infrastructure 2026-07-12 20:40:38 +09:00
vorotamoroz a6a5f7af53 Use merged storage capability contracts 2026-07-12 20:40:38 +09:00
vorotamoroz 4df87cc96a Explain portable storage path policy 2026-07-12 20:40:38 +09:00
vorotamoroz d16e66c67a Track unreleased storage contract changes 2026-07-12 20:40:38 +09:00
vorotamoroz 57e26f1079 Enforce rooted storage path contracts 2026-07-12 20:40:38 +09:00
vorotamoroz dbb8d2be22 test: establish storage adapter contracts 2026-07-12 20:40:38 +09:00
vorotamoroz a60932d9e4 Strengthen CLI benchmark verification 2026-07-12 20:02:29 +09:00
vorotamoroz fd3e8416b7 Move CLI E2E runner into CLI tests 2026-07-12 20:02:29 +09:00
vorotamoroz b9a27ffef9 Run CLI P2P E2E in Compose CI 2026-07-12 20:02:29 +09:00
vorotamoroz af72cac4e3 Add scoped CLI benchmark metadata 2026-07-12 20:02:29 +09:00
vorotamoroz 7d26f0ae35 Add P2P signalling-only netem benchmark 2026-07-12 20:02:29 +09:00
vorotamoroz 008a5ace06 Add P2P split-container netem stress fixture 2026-07-12 20:02:29 +09:00
vorotamoroz b1955703b9 Record P2P selected candidate paths 2026-07-12 20:02:29 +09:00
vorotamoroz 39065e15e3 Add CouchDB netem shim benchmark 2026-07-12 20:02:29 +09:00
vorotamoroz 7b480d4c1d Add netem smoke fixture for benchmark simulation 2026-07-12 20:02:29 +09:00
vorotamoroz 33cd6a3b51 Document CLI benchmark comparison model 2026-07-12 20:02:29 +09:00
vorotamoroz 870ac93cac Lower benchmark relay file descriptor limit 2026-07-12 20:02:29 +09:00
vorotamoroz 2fcdbbc4da Stabilise CLI P2P smoke readiness 2026-07-12 20:02:29 +09:00
vorotamoroz 18e8b239bf Run CLI network smoke on pull requests 2026-07-12 20:02:29 +09:00
vorotamoroz ef655a2976 Add Compose-based CLI network benchmarks 2026-07-12 20:02:29 +09:00
vorotamoroz 78eb6ec3bc build: use stable Obsidian test session 2026-07-12 15:10:49 +09:00
vorotamoroz c0780d19ba build: update Obsidian test session preview 2026-07-12 15:10:49 +09:00
vorotamoroz 5b61ea5009 test: share Obsidian E2E session infrastructure 2026-07-12 15:10:49 +09:00
vorotamoroz 6a9918677f Merge pull request #996 from vrtmrz/0_25_80
releasing 0.25.80
2026-07-07 21:21:34 +09:00
vorotamoroz 2d42b92a89 bump 2026-07-07 12:15:58 +00:00
vorotamoroz a2b794c520 Merge pull request #995 from vrtmrz/fix_conflict_issues
Fix conflict issues
2026-07-07 21:13:00 +09:00
vorotamoroz 6f9446f447 Merge remote-tracking branch 'origin/main' into fix_conflict_issues 2026-07-07 12:11:38 +00:00
vorotamoroz 3f9cd67b1c Merge pull request #992 from vrtmrz/fix_989
fix: enable hidden file sync before overwrite setup
2026-07-07 21:10:09 +09:00
vorotamoroz dbcbf2c5ca fix: document safer conflict preservation 2026-07-07 12:05:40 +00:00
vorotamoroz eed0fca8d3 fix: preserve ambiguous conflict candidates 2026-07-07 12:00:24 +00:00
vorotamoroz 05e031b90b update submodule pointer 2026-07-07 11:31:29 +00:00
vorotamoroz bec767c13f add notes 2026-07-07 11:30:36 +00:00
vorotamoroz 8046a777af fix: refine conflict merge policy 2026-07-07 11:29:51 +00:00
vorotamoroz 0c58b0c513 test: reproduce conflict issue reports 2026-07-07 11:07:09 +00:00
vorotamoroz b66e227a02 update doc
update submodule pointer
2026-07-07 10:54:49 +00:00
vorotamoroz af6df84b5d fix: enable hidden file sync before overwrite setup 2026-07-03 05:09:55 +00:00
vorotamoroz 06bba49aad Merge pull request #985 from vrtmrz/test/obsidian-real-e2e
Add real obsidian e2e
2026-07-01 19:18:58 +09:00
vorotamoroz f97888572b (build): use deno command for type generation 2026-06-30 09:37:54 +00:00
vorotamoroz 9d9b512f3f Merge remote-tracking branch 'origin/main' into test/obsidian-real-e2e 2026-06-30 09:18:08 +00:00
vorotamoroz 54e6a761e5 (test): add local Obsidian E2E suite 2026-06-30 08:36:29 +00:00
vorotamoroz d37ed51660 Merge pull request #984 from vrtmrz/0_25_79
bump and releasing 0.25.79
2026-06-30 01:06:43 +09:00
vorotamoroz e916683b8d (test): customisation sync 2 2026-06-26 12:16:39 +00:00
vorotamoroz 7028a0857e (test): customisation sync 2026-06-26 12:02:29 +00:00
vorotamoroz 150f0700b0 (test): hidden file sync roundtrip and misc 2026-06-26 11:39:02 +00:00
vorotamoroz 36590ee762 (test): improve e2e CouchDB 2026-06-26 10:55:06 +00:00
vorotamoroz 4a33236c8f (test): improve e2e session helper 2026-06-26 10:46:45 +00:00
vorotamoroz be23fa51a1 (test): the E2E test on the real-Obsidian 2026-06-26 10:33:51 +00:00
434 changed files with 9085 additions and 1329 deletions
+3 -1
View File
@@ -16,7 +16,9 @@ pouchdb-browser.js
production/ production/
# Test coverage and reports # Test coverage and reports
coverage/ coverage/
test/bench-network/bench-results/
src/apps/cli/testdeno/bench-results/
# Local environment / secrets # Local environment / secrets
.env .env
+43
View File
@@ -9,6 +9,9 @@ on:
- '.github/workflows/cli-deno-tests.yml' - '.github/workflows/cli-deno-tests.yml'
- 'src/apps/cli/**' - 'src/apps/cli/**'
- 'src/lib/src/API/processSetting.ts' - 'src/lib/src/API/processSetting.ts'
- 'src/lib/src/replication/trystero/**'
- 'src/lib/src/rpc/**'
- 'test/bench-network/**'
- 'package.json' - 'package.json'
- 'package-lock.json' - 'package-lock.json'
pull_request: pull_request:
@@ -16,6 +19,9 @@ on:
- '.github/workflows/cli-deno-tests.yml' - '.github/workflows/cli-deno-tests.yml'
- 'src/apps/cli/**' - 'src/apps/cli/**'
- 'src/lib/src/API/processSetting.ts' - 'src/lib/src/API/processSetting.ts'
- 'src/lib/src/replication/trystero/**'
- 'src/lib/src/rpc/**'
- 'test/bench-network/**'
- 'package.json' - 'package.json'
- 'package-lock.json' - 'package-lock.json'
workflow_dispatch: workflow_dispatch:
@@ -155,3 +161,40 @@ jobs:
run: | run: |
docker stop couchdb-test minio-test relay-test coturn-test >/dev/null 2>&1 || true docker stop couchdb-test minio-test relay-test coturn-test >/dev/null 2>&1 || true
docker rm couchdb-test minio-test relay-test coturn-test >/dev/null 2>&1 || true docker rm couchdb-test minio-test relay-test coturn-test >/dev/null 2>&1 || true
compose-p2p-e2e:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Show Docker versions
run: |
docker --version
docker compose version
- name: Run Compose CLI P2P E2E
env:
CLI_E2E_TASK: test:p2p-sync
RELAY: ws://nostr-relay:7777/
PEERS_TIMEOUT: '20'
SYNC_TIMEOUT: '60'
LIVESYNC_USE_COTURN: '0'
TURN_SERVERS: none
LIVESYNC_P2P_PEERS_RETRY: '1'
LIVESYNC_P2P_RELAY_READY_TIMEOUT_MS: '60000'
BENCH_LIVESYNC_TEST_TEE: '0'
run: docker compose -f test/bench-network/compose.yml run --build --rm bench-runner run-livesync-cli-e2e
- name: Show Compose diagnostics
if: failure()
run: |
docker compose -f test/bench-network/compose.yml ps
docker compose -f test/bench-network/compose.yml logs --no-color couchdb nostr-relay || true
- name: Stop Compose services
if: always()
run: docker compose -f test/bench-network/compose.yml down -v --remove-orphans
@@ -0,0 +1,96 @@
# Run the Compose-packaged CLI P2P smoke benchmark.
#
# This workflow is intentionally manual-only. It exercises the local Compose
# package for CouchDB + Nostr relay + CLI runner, and uploads the benchmark JSON
# results for inspection without adding benchmark work to pull-request CI.
name: cli-p2p-compose-smoke
on:
workflow_dispatch:
inputs:
cases:
description: 'Comma-separated benchmark cases'
required: false
default: 'couchdb-baseline,p2p-direct-local'
signalling_cases:
description: 'Comma-separated signalling-shim P2P benchmark cases'
required: false
default: 'p2p-signalling-netem-home-wifi'
md_files:
description: 'Markdown file count'
required: false
default: '2'
bin_files:
description: 'Binary file count'
required: false
default: '1'
couchdb_rtt_ms:
description: 'Requested CouchDB RTT in milliseconds'
required: false
default: '20'
permissions:
contents: read
jobs:
smoke:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Show Docker versions
run: |
docker --version
docker compose version
- name: Run Compose P2P smoke benchmark
env:
BENCH_CASES: ${{ inputs.cases || 'couchdb-baseline,p2p-direct-local' }}
BENCH_MD_FILE_COUNT: ${{ inputs.md_files || '2' }}
BENCH_MD_MIN_SIZE_BYTES: '128'
BENCH_MD_MAX_SIZE_BYTES: '256'
BENCH_BIN_FILE_COUNT: ${{ inputs.bin_files || '1' }}
BENCH_BIN_SIZE_BYTES: '512'
BENCH_COUCHDB_RTT_MS: ${{ inputs.couchdb_rtt_ms || '20' }}
BENCH_SYNC_TIMEOUT: '180'
BENCH_PEERS_TIMEOUT: '20'
LIVESYNC_P2P_RELAY_READY_TIMEOUT_MS: '60000'
BENCH_LIVESYNC_TEST_TEE: '0'
run: docker compose -f test/bench-network/compose.yml run --build --rm bench-runner
- name: Run Compose P2P signalling-shim smoke benchmark
env:
BENCH_CASES: ${{ inputs.signalling_cases || 'p2p-signalling-netem-home-wifi' }}
BENCH_MD_FILE_COUNT: ${{ inputs.md_files || '2' }}
BENCH_MD_MIN_SIZE_BYTES: '128'
BENCH_MD_MAX_SIZE_BYTES: '256'
BENCH_BIN_FILE_COUNT: ${{ inputs.bin_files || '1' }}
BENCH_BIN_SIZE_BYTES: '512'
BENCH_SYNC_TIMEOUT: '180'
BENCH_PEERS_TIMEOUT: '60'
LIVESYNC_P2P_RELAY_READY_TIMEOUT_MS: '60000'
BENCH_LIVESYNC_TEST_TEE: '0'
NETEM_PROFILE: 'home-wifi'
run: docker compose -f test/bench-network/compose.yml --profile signalling-shim run --build --rm bench-runner-signalling-shim
- name: Show Compose diagnostics
if: failure()
run: |
docker compose -f test/bench-network/compose.yml ps
docker compose -f test/bench-network/compose.yml --profile signalling-shim logs --no-color couchdb nostr-relay p2p-signalling-shim || true
- name: Upload benchmark results
if: always()
uses: actions/upload-artifact@v4
with:
name: cli-p2p-compose-smoke-results
path: test/bench-network/bench-results/**
if-no-files-found: warn
- name: Stop Compose services
if: always()
run: docker compose -f test/bench-network/compose.yml down -v --remove-orphans
+67
View File
@@ -0,0 +1,67 @@
name: Deploy GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'aggregator.html'
- '.github/workflows/deploy-pages.yml'
pull_request:
paths:
- 'aggregator.html'
- '.github/workflows/deploy-pages.yml'
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
name: Validate and package Pages site
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate aggregator
run: |
test -s aggregator.html
grep -Fq '<!DOCTYPE html>' aggregator.html
grep -Fq 'obsidian://setuplivesync?settingsQR=' aggregator.html
sed -n '/<script>/,/<\/script>/p' aggregator.html | sed '1d;$d' > aggregator.js
node --check aggregator.js
rm aggregator.js
- name: Prepare Pages site
run: |
mkdir -p _site
cp aggregator.html _site/aggregator.html
touch _site/.nojekyll
- name: Configure GitHub Pages
uses: actions/configure-pages@v5
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: _site
deploy:
name: Deploy GitHub Pages
if: github.event_name != 'pull_request'
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
+92
View File
@@ -0,0 +1,92 @@
name: Finalise Release Tags
on:
workflow_dispatch:
inputs:
version:
description: Release version, for example 0.25.81
required: true
type: string
release_branch:
description: Release PR branch. Defaults to the version with dots replaced by underscores.
required: false
type: string
expected_head_sha:
description: Full head commit SHA reviewed in the release PR
required: true
type: string
jobs:
finalise:
runs-on: ubuntu-latest
environment: release
permissions:
contents: write
steps:
- name: Resolve release branch
id: branch
env:
VERSION: ${{ inputs.version }}
RELEASE_BRANCH_INPUT: ${{ inputs.release_branch }}
run: |
set -euo pipefail
BRANCH="${RELEASE_BRANCH_INPUT}"
if [[ -z "${BRANCH}" ]]; then
BRANCH="${VERSION//./_}"
fi
echo "name=${BRANCH}" >> "$GITHUB_OUTPUT"
- uses: actions/checkout@v4
with:
ref: ${{ steps.branch.outputs.name }}
fetch-depth: 0
submodules: recursive
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "24.x"
- name: Validate release head
env:
VERSION: ${{ inputs.version }}
EXPECTED_HEAD_SHA: ${{ inputs.expected_head_sha }}
run: |
set -euo pipefail
ACTUAL_HEAD_SHA="$(git rev-parse HEAD)"
if [[ "${ACTUAL_HEAD_SHA}" != "${EXPECTED_HEAD_SHA}" ]]; then
echo "Release branch head is ${ACTUAL_HEAD_SHA}, expected ${EXPECTED_HEAD_SHA}." >&2
exit 1
fi
node utils/release-notes.mjs validate "${VERSION}"
git fetch --tags --force
if git rev-parse --verify --quiet "refs/tags/${VERSION}" >/dev/null; then
echo "Tag already exists: ${VERSION}" >&2
exit 1
fi
if git rev-parse --verify --quiet "refs/tags/${VERSION}-cli" >/dev/null; then
echo "Tag already exists: ${VERSION}-cli" >&2
exit 1
fi
- name: Create and push release tags
env:
VERSION: ${{ inputs.version }}
run: |
set -euo pipefail
git tag "${VERSION}"
git tag "${VERSION}-cli"
git push origin "${VERSION}" "${VERSION}-cli"
- name: Summarise next steps
env:
VERSION: ${{ inputs.version }}
run: |
{
echo "Created tags \`${VERSION}\` and \`${VERSION}-cli\`."
echo ""
echo "The plug-in release workflow is triggered by the \`${VERSION}\` tag and creates a draft release by default."
echo "The CLI Docker workflow is triggered by the \`${VERSION}-cli\` tag and publishes the version, major-minor, latest, and SHA-qualified image tags."
echo ""
echo "To create a pre-release instead of the default draft flow, run \`Release Obsidian Plugin\` manually with \`tag=${VERSION}\`, \`draft=false\`, and \`prerelease=true\`."
} >> "$GITHUB_STEP_SUMMARY"
+109
View File
@@ -0,0 +1,109 @@
name: Prepare Release PR
on:
workflow_dispatch:
inputs:
version:
description: Release version, for example 0.25.81
required: true
type: string
base_branch:
description: Base branch for the release PR
required: false
type: string
default: main
release_branch:
description: Release branch name. Defaults to the version with dots replaced by underscores.
required: false
type: string
release_date:
description: Release date in ordinal format. Defaults to the current UTC date.
required: false
type: string
allow_empty_updates:
description: Allow an empty Unreleased section
required: false
type: boolean
default: false
jobs:
prepare:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.base_branch }}
fetch-depth: 0
submodules: recursive
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "24.x"
cache: npm
- name: Install dependencies
run: npm ci
- name: Prepare release changes
id: prepare
env:
VERSION: ${{ inputs.version }}
RELEASE_BRANCH_INPUT: ${{ inputs.release_branch }}
RELEASE_DATE: ${{ inputs.release_date }}
ALLOW_EMPTY_UPDATES: ${{ inputs.allow_empty_updates }}
run: |
set -euo pipefail
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
BRANCH="${RELEASE_BRANCH_INPUT}"
if [[ -z "${BRANCH}" ]]; then
BRANCH="${VERSION//./_}"
fi
if git ls-remote --exit-code --heads origin "${BRANCH}" >/dev/null 2>&1; then
echo "Release branch already exists: ${BRANCH}" >&2
exit 1
fi
git switch -c "${BRANCH}"
npm version "${VERSION}" --no-git-tag-version
node utils/release-notes.mjs prepare "${VERSION}"
npm run pretty:json
npm run build:lib:types
git add package.json package-lock.json manifest.json versions.json updates.md src/apps/cli/package.json src/apps/webpeer/package.json src/apps/webapp/package.json _types
git diff --cached --check
git commit -m "Releasing ${VERSION}"
git push --set-upstream origin "${BRANCH}"
echo "branch=${BRANCH}" >> "$GITHUB_OUTPUT"
- name: Create draft release PR
env:
GH_TOKEN: ${{ github.token }}
VERSION: ${{ inputs.version }}
BASE_BRANCH: ${{ inputs.base_branch }}
RELEASE_BRANCH: ${{ steps.prepare.outputs.branch }}
run: |
cat > /tmp/release-pr-body.md <<EOF
## Release checklist
- [ ] Review and polish \`updates.md\`
- [ ] Confirm the release date
- [ ] Confirm \`manifest.json\`, \`versions.json\`, workspace package versions, and generated \`_types\`
- [ ] Confirm CI has passed
- [ ] Run the finalise release workflow with this PR's fixed head SHA
- [ ] Merge this PR with a merge commit after the draft or pre-release has been created
EOF
gh pr create \
--base "${BASE_BRANCH}" \
--head "${RELEASE_BRANCH}" \
--draft \
--title "Releasing ${VERSION}" \
--body-file /tmp/release-pr-body.md
+31 -2
View File
@@ -6,10 +6,26 @@ on:
- '*' # Push events to matching any tag format, i.e. 1.0, 20.15.10 - '*' # Push events to matching any tag format, i.e. 1.0, 20.15.10
- '!*-cli' # Exclude command-line interface tags - '!*-cli' # Exclude command-line interface tags
workflow_dispatch: workflow_dispatch:
inputs:
tag:
description: Release tag to build
required: true
type: string
draft:
description: Create the GitHub Release as a draft
required: false
type: boolean
default: true
prerelease:
description: Mark the GitHub Release as a pre-release
required: false
type: boolean
default: false
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment: release
permissions: permissions:
contents: write contents: write
id-token: write id-token: write
@@ -19,6 +35,7 @@ jobs:
with: with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
submodules: recursive submodules: recursive
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref }}
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
@@ -27,7 +44,18 @@ jobs:
- name: Get Version - name: Get Version
id: version id: version
run: | run: |
echo "tag=$(git describe --abbrev=0 --tags)" >> $GITHUB_OUTPUT if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
TAG="${{ inputs.tag }}"
DRAFT="${{ inputs.draft }}"
PRERELEASE="${{ inputs.prerelease }}"
else
TAG="${GITHUB_REF_NAME}"
DRAFT="true"
PRERELEASE="false"
fi
echo "tag=${TAG}" >> $GITHUB_OUTPUT
echo "draft=${DRAFT}" >> $GITHUB_OUTPUT
echo "prerelease=${PRERELEASE}" >> $GITHUB_OUTPUT
# Build the plugin # Build the plugin
- name: Build - name: Build
id: build id: build
@@ -58,4 +86,5 @@ jobs:
styles.css styles.css
name: ${{ steps.version.outputs.tag }} name: ${{ steps.version.outputs.tag }}
tag_name: ${{ steps.version.outputs.tag }} tag_name: ${{ steps.version.outputs.tag }}
draft: true draft: ${{ steps.version.outputs.draft }}
prerelease: ${{ steps.version.outputs.prerelease }}
+15 -1
View File
@@ -17,6 +17,13 @@ on:
- 'vitest.config*.ts' - 'vitest.config*.ts'
- 'esbuild.config.mjs' - 'esbuild.config.mjs'
- 'eslint.config.mjs' - 'eslint.config.mjs'
- 'update-workspaces.mjs'
- 'version-bump.mjs'
- 'utils/release-*.mjs'
- 'utils/release-*.unit.spec.ts'
- '.github/workflows/prepare-release.yml'
- '.github/workflows/finalise-release.yml'
- '.github/workflows/release.yml'
- '.github/workflows/unit-ci.yml' - '.github/workflows/unit-ci.yml'
pull_request: pull_request:
paths: paths:
@@ -29,6 +36,13 @@ on:
- 'vitest.config*.ts' - 'vitest.config*.ts'
- 'esbuild.config.mjs' - 'esbuild.config.mjs'
- 'eslint.config.mjs' - 'eslint.config.mjs'
- 'update-workspaces.mjs'
- 'version-bump.mjs'
- 'utils/release-*.mjs'
- 'utils/release-*.unit.spec.ts'
- '.github/workflows/prepare-release.yml'
- '.github/workflows/finalise-release.yml'
- '.github/workflows/release.yml'
- '.github/workflows/unit-ci.yml' - '.github/workflows/unit-ci.yml'
permissions: permissions:
@@ -113,4 +127,4 @@ jobs:
if: always() if: always()
run: | run: |
npm run test:docker-couchdb:stop || true npm run test:docker-couchdb:stop || true
npm run test:docker-s3:stop || true npm run test:docker-s3:stop || true
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { SimpleStore } from "octagonal-wheels/databases/SimpleStoreBase"; import type { SimpleStore } from "octagonal-wheels/databases/SimpleStoreBase";
import type { HasSettings, ObsidianLiveSyncSettings, EntryDoc } from "@lib/common/types"; import type { HasSettings, ObsidianLiveSyncSettings, EntryDoc } from "@lib/common/types";
import type { Confirm } from "@lib/interfaces/Confirm"; import type { Confirm } from "@lib/interfaces/Confirm";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { KeyValueDatabase } from "@lib/interfaces/KeyValueDatabase.ts"; import type { KeyValueDatabase } from "@lib/interfaces/KeyValueDatabase.ts";
export { OpenKeyValueDatabase } from "./KeyValueDBv2.ts"; export { OpenKeyValueDatabase } from "./KeyValueDBv2.ts";
export declare const _OpenKeyValueDatabase: (dbKey: string) => Promise<KeyValueDatabase>; export declare const _OpenKeyValueDatabase: (dbKey: string) => Promise<KeyValueDatabase>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { KeyValueDatabase } from "@lib/interfaces/KeyValueDatabase"; import type { KeyValueDatabase } from "@lib/interfaces/KeyValueDatabase";
import { type IDBPDatabase } from "idb"; import { type IDBPDatabase } from "idb";
export declare function OpenKeyValueDatabase(dbKey: string): Promise<KeyValueDatabase>; export declare function OpenKeyValueDatabase(dbKey: string): Promise<KeyValueDatabase>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { NecessaryServices } from "@lib/interfaces/ServiceModule"; import type { NecessaryServices } from "@lib/interfaces/ServiceModule";
type PeriodicProcessorHost = NecessaryServices<"API" | "control", never>; type PeriodicProcessorHost = NecessaryServices<"API" | "control", never>;
export declare class PeriodicProcessor { export declare class PeriodicProcessor {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { ItemView } from "@/deps.ts"; import { ItemView } from "@/deps.ts";
import { type mount } from "svelte"; import { type mount } from "svelte";
export declare abstract class SvelteItemView extends ItemView { export declare abstract class SvelteItemView extends ItemView {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { eventHub } from "@lib/hub/hub"; import { eventHub } from "@lib/hub/hub";
export declare const EVENT_PLUGIN_LOADED = "plugin-loaded"; export declare const EVENT_PLUGIN_LOADED = "plugin-loaded";
export declare const EVENT_PLUGIN_UNLOADED = "plugin-unloaded"; export declare const EVENT_PLUGIN_UNLOADED = "plugin-unloaded";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { TFile } from "@/deps"; import type { TFile } from "@/deps";
import type { FilePathWithPrefix, LoadedEntry } from "@lib/common/types"; import type { FilePathWithPrefix, LoadedEntry } from "@lib/common/types";
export declare const EVENT_REQUEST_SHOW_HISTORY = "show-history"; export declare const EVENT_REQUEST_SHOW_HISTORY = "show-history";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { ObsidianLiveSyncSettings } from "@lib/common/models/setting.type"; import type { ObsidianLiveSyncSettings } from "@lib/common/models/setting.type";
import type { LiveSyncBaseCore } from "@/LiveSyncBaseCore"; import type { LiveSyncBaseCore } from "@/LiveSyncBaseCore";
export declare function generateReport(settings: ObsidianLiveSyncSettings, core: LiveSyncBaseCore): Promise<{ export declare function generateReport(settings: ObsidianLiveSyncSettings, core: LiveSyncBaseCore): Promise<{
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { PersistentMap } from "octagonal-wheels/dataobject/PersistentMap"; import { PersistentMap } from "octagonal-wheels/dataobject/PersistentMap";
export declare let sameChangePairs: PersistentMap<number[]>; export declare let sameChangePairs: PersistentMap<number[]>;
export declare function initializeStores(vaultName: string): void; export declare function initializeStores(vaultName: string): void;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { type PluginManifest, TFile } from "@/deps.ts"; import { type PluginManifest, TFile } from "@/deps.ts";
import { type DatabaseEntry, type EntryBody, type FilePath } from "@lib/common/types.ts"; import { type DatabaseEntry, type EntryBody, type FilePath } from "@lib/common/types.ts";
export type { CacheData, FileEventItem } from "@lib/common/types.ts"; export type { CacheData, FileEventItem } from "@lib/common/types.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { TAbstractFile } from "@/deps.ts"; import { TAbstractFile } from "@/deps.ts";
import { type AnyEntry, type CouchDBCredentials, type DocumentID, type EntryHasPath, type FilePath, type FilePathWithPrefix, type UXFileInfo, type UXFileInfoStub } from "@lib/common/types.ts"; import { type AnyEntry, type CouchDBCredentials, type DocumentID, type EntryHasPath, type FilePath, type FilePathWithPrefix, type UXFileInfo, type UXFileInfoStub } from "@lib/common/types.ts";
export { ICHeader, ICXHeader } from "./types.ts"; export { ICHeader, ICXHeader } from "./types.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { type FilePath } from "@lib/common/types.ts"; import { type FilePath } from "@lib/common/types.ts";
export { addIcon, App, debounce, Editor, FuzzySuggestModal, MarkdownRenderer, MarkdownView, Modal, Notice, Platform, Plugin, PluginSettingTab, requestUrl, sanitizeHTMLToDom, Setting, stringifyYaml, TAbstractFile, TextAreaComponent, TFile, TFolder, parseYaml, ItemView, WorkspaceLeaf, Menu, request, getLanguage, ButtonComponent, TextComponent, ToggleComponent, DropdownComponent, Component, } from "obsidian"; export { addIcon, App, debounce, Editor, FuzzySuggestModal, MarkdownRenderer, MarkdownView, Modal, Notice, Platform, Plugin, PluginSettingTab, requestUrl, sanitizeHTMLToDom, Setting, stringifyYaml, TAbstractFile, TextAreaComponent, TFile, TFolder, parseYaml, ItemView, WorkspaceLeaf, Menu, request, getLanguage, ButtonComponent, TextComponent, ToggleComponent, DropdownComponent, Component, } from "obsidian";
export type { DataWriteOptions, PluginManifest, RequestUrlParam, RequestUrlResponse, MarkdownFileInfo, ListedFiles, ValueComponent, Stat, Command, ViewCreator, } from "obsidian"; export type { DataWriteOptions, PluginManifest, RequestUrlParam, RequestUrlResponse, MarkdownFileInfo, ListedFiles, ValueComponent, Stat, Command, ViewCreator, } from "obsidian";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { type PluginManifest } from "@/deps.ts"; import { type PluginManifest } from "@/deps.ts";
import type { EntryDoc, LoadedEntry, FilePathWithPrefix, FilePath, AnyEntry } from "@lib/common/types.ts"; import type { EntryDoc, LoadedEntry, FilePathWithPrefix, FilePath, AnyEntry } from "@lib/common/types.ts";
import { LiveSyncCommands } from "@/features/LiveSyncCommands.ts"; import { LiveSyncCommands } from "@/features/LiveSyncCommands.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { mount } from "svelte"; import { mount } from "svelte";
import { App, Modal } from "@/deps.ts"; import { App, Modal } from "@/deps.ts";
import ObsidianLiveSyncPlugin from "@/main.ts"; import ObsidianLiveSyncPlugin from "@/main.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { App, Modal } from "@/deps.ts"; import { App, Modal } from "@/deps.ts";
import { type FilePath, type LoadedEntry } from "@lib/common/types.ts"; import { type FilePath, type LoadedEntry } from "@lib/common/types.ts";
import { mount } from "svelte"; import { mount } from "svelte";
+2 -2
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { type LoadedEntry, type FilePathWithPrefix, type FilePath, type DocumentID, type UXFileInfo, type UXStat, type MetaEntry, type UXDataWriteOptions } from "@lib/common/types.ts"; import { type LoadedEntry, type FilePathWithPrefix, type FilePath, type DocumentID, type UXFileInfo, type UXStat, type MetaEntry, type UXDataWriteOptions } from "@lib/common/types.ts";
import { type InternalFileInfo } from "@/common/types.ts"; import { type InternalFileInfo } from "@/common/types.ts";
import { type CustomRegExp } from "@lib/common/utils.ts"; import { type CustomRegExp } from "@lib/common/utils.ts";
@@ -21,7 +21,7 @@ declare global {
export declare class HiddenFileSync extends LiveSyncCommands { export declare class HiddenFileSync extends LiveSyncCommands {
isThisModuleEnabled(): boolean; isThisModuleEnabled(): boolean;
periodicInternalFileScanProcessor: PeriodicProcessor; periodicInternalFileScanProcessor: PeriodicProcessor;
get kvDB(): import("../../lib/src/interfaces/KeyValueDatabase").KeyValueDatabase; get kvDB(): import("../../lib/src/interfaces/KeyValueDatabase.ts").KeyValueDatabase;
getConflictedDoc(path: FilePathWithPrefix, rev: string): Promise<false | import("@lib/common/types.ts").diff_result_leaf>; getConflictedDoc(path: FilePathWithPrefix, rev: string): Promise<false | import("@lib/common/types.ts").diff_result_leaf>;
onunload(): void; onunload(): void;
onload(): void; onload(): void;
@@ -0,0 +1,11 @@
// @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
type HiddenFileSyncDirection = "pullForce" | "pushForce" | "safe";
type ConfigureHiddenFileSyncHandlers = {
disable: () => Promise<void>;
enable: () => Promise<void>;
initialise: (direction: HiddenFileSyncDirection) => Promise<void>;
};
export type ConfigureHiddenFileSyncResult = "ignored" | "disabled" | "enabled";
export declare function configureHiddenFileSyncMode(mode: keyof OPTIONAL_SYNC_FEATURES, handlers: ConfigureHiddenFileSyncHandlers): Promise<ConfigureHiddenFileSyncResult>;
export {};
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { type AnyEntry, type DocumentID, type FilePath, type FilePathWithPrefix, type LOG_LEVEL } from "@lib/common/types.ts"; import { type AnyEntry, type DocumentID, type FilePath, type FilePathWithPrefix, type LOG_LEVEL } from "@lib/common/types.ts";
import type ObsidianLiveSyncPlugin from "@/main.ts"; import type ObsidianLiveSyncPlugin from "@/main.ts";
import type { LiveSyncCore } from "@/main.ts"; import type { LiveSyncCore } from "@/main.ts";
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { type DocumentID, type EntryDoc, type EntryLeaf } from "@lib/common/types"; import { type DocumentID, type EntryDoc, type EntryLeaf } from "@lib/common/types";
import { LiveSyncCommands } from "@/features/LiveSyncCommands"; import { LiveSyncCommands } from "@/features/LiveSyncCommands";
type ChunkID = DocumentID; type ChunkID = DocumentID;
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { ObsidianLiveSyncSettings } from "@lib/common/types"; import type { ObsidianLiveSyncSettings } from "@lib/common/types";
type MaintenancePrerequisiteSettings = Pick<ObsidianLiveSyncSettings, "doNotUseFixedRevisionForChunks" | "readChunksOnline">; type MaintenancePrerequisiteSettings = Pick<ObsidianLiveSyncSettings, "doNotUseFixedRevisionForChunks" | "readChunksOnline">;
type MaintenancePrerequisiteOptions = { type MaintenancePrerequisiteOptions = {
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { App, Modal } from "@/deps.ts"; import { App, Modal } from "@/deps.ts";
import { mount } from "svelte"; import { mount } from "svelte";
import type { LiveSyncTrysteroReplicator } from "@lib/replication/trystero/LiveSyncTrysteroReplicator"; import type { LiveSyncTrysteroReplicator } from "@lib/replication/trystero/LiveSyncTrysteroReplicator";
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { App } from "@/deps.ts"; import { App } from "@/deps.ts";
import type { LiveSyncTrysteroReplicator } from "@lib/replication/trystero/LiveSyncTrysteroReplicator"; import type { LiveSyncTrysteroReplicator } from "@lib/replication/trystero/LiveSyncTrysteroReplicator";
/** /**
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { Menu, WorkspaceLeaf } from "@/deps.ts"; import { Menu, WorkspaceLeaf } from "@/deps.ts";
import { SvelteItemView } from "@/common/SvelteItemView.ts"; import { SvelteItemView } from "@/common/SvelteItemView.ts";
import { type PeerStatus } from "@lib/replication/trystero/P2PReplicatorPaneCommon.ts"; import { type PeerStatus } from "@lib/replication/trystero/P2PReplicatorPaneCommon.ts";
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { WorkspaceLeaf } from "@/deps.ts"; import { WorkspaceLeaf } from "@/deps.ts";
import { SvelteItemView } from "@/common/SvelteItemView.ts"; import { SvelteItemView } from "@/common/SvelteItemView.ts";
import type { LiveSyncBaseCore } from "@/LiveSyncBaseCore.ts"; import type { LiveSyncBaseCore } from "@/LiveSyncBaseCore.ts";
+1 -1
View File
@@ -1,4 +1,4 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export { DirectFileManipulator } from "./DirectFileManipulatorV2.ts"; export { DirectFileManipulator } from "./DirectFileManipulatorV2.ts";
export type { DirectFileManipulatorOptions } from "./DirectFileManipulatorV2.ts"; export type { DirectFileManipulatorOptions } from "./DirectFileManipulatorV2.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { type ObsidianLiveSyncSettings } from "@lib/common/types"; import { type ObsidianLiveSyncSettings } from "@lib/common/types";
/** /**
* Encode settings to a tiny array to encode in QRCode, * Encode settings to a tiny array to encode in QRCode,
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
/** /**
* Content-Splitter for Self-hosted LiveSync. * Content-Splitter for Self-hosted LiveSync.
* Splits content into manageable chunks for efficient storage and synchronisation. * Splits content into manageable chunks for efficient storage and synchronisation.
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { type SavingEntry } from "@lib/common/types.ts"; import { type SavingEntry } from "@lib/common/types.ts";
import { type ContentSplitterOptions, type SplitOptions } from "./ContentSplitter.ts"; import { type ContentSplitterOptions, type SplitOptions } from "./ContentSplitter.ts";
export declare abstract class ContentSplitterCore { export declare abstract class ContentSplitterCore {
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { ContentSplitterOptions, SplitOptions } from "./ContentSplitter.ts"; import type { ContentSplitterOptions, SplitOptions } from "./ContentSplitter.ts";
import { ContentSplitterBase } from "./ContentSplitterBase.ts"; import { ContentSplitterBase } from "./ContentSplitterBase.ts";
/** /**
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { ContentSplitterOptions, SplitOptions } from "./ContentSplitter"; import type { ContentSplitterOptions, SplitOptions } from "./ContentSplitter";
import { ContentSplitterBase } from "./ContentSplitterBase"; import { ContentSplitterBase } from "./ContentSplitterBase";
/** /**
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { ContentSplitterOptions, SplitOptions } from "./ContentSplitter.ts"; import type { ContentSplitterOptions, SplitOptions } from "./ContentSplitter.ts";
import { ContentSplitterBase } from "./ContentSplitterBase.ts"; import { ContentSplitterBase } from "./ContentSplitterBase.ts";
/** /**
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { SavingEntry } from "@lib/common/types"; import type { SavingEntry } from "@lib/common/types";
import type { ContentSplitterOptions } from "./ContentSplitter"; import type { ContentSplitterOptions } from "./ContentSplitter";
import { ContentSplitterCore, type ContentSplitterBase } from "./ContentSplitterBase"; import { ContentSplitterCore, type ContentSplitterBase } from "./ContentSplitterBase";
+1 -1
View File
@@ -1,4 +1,4 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export type { HasSetResult, HasGetInitialData, ComponentHasResult, GuestDialogProps, DialogSvelteComponentBaseProps, DialogControlBase, } from "@lib/services/implements/base/SvelteDialog.ts"; export type { HasSetResult, HasGetInitialData, ComponentHasResult, GuestDialogProps, DialogSvelteComponentBaseProps, DialogControlBase, } from "@lib/services/implements/base/SvelteDialog.ts";
export { CONTEXT_DIALOG_CONTROLS, setupDialogContext, getDialogContext, SvelteDialogManagerBase, } from "@lib/services/implements/base/SvelteDialog.ts"; export { CONTEXT_DIALOG_CONTROLS, setupDialogContext, getDialogContext, SvelteDialogManagerBase, } from "@lib/services/implements/base/SvelteDialog.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { type SlipBoard } from "octagonal-wheels/bureau/SlipBoard"; import { type SlipBoard } from "octagonal-wheels/bureau/SlipBoard";
declare global { declare global {
interface Slips extends LSSlips { interface Slips extends LSSlips {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { CouchDBConnection, BucketSyncSetting, P2PConnectionInfo } from "./models/setting.type"; import type { CouchDBConnection, BucketSyncSetting, P2PConnectionInfo } from "./models/setting.type";
export type RemoteConfigurationResult = { export type RemoteConfigurationResult = {
type: "couchdb"; type: "couchdb";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { Constructor } from "@lib/common/utils.type"; import type { Constructor } from "@lib/common/utils.type";
interface ErrorWithCause extends Error { interface ErrorWithCause extends Error {
cause?: unknown; cause?: unknown;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { Confirm } from "@lib/interfaces/Confirm"; import type { Confirm } from "@lib/interfaces/Confirm";
import { type ObsidianLiveSyncSettings } from "./types"; import { type ObsidianLiveSyncSettings } from "./types";
declare enum ConditionType { declare enum ConditionType {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { getLanguage as ObsidianGetLanguage } from "obsidian"; import type { getLanguage as ObsidianGetLanguage } from "obsidian";
export declare function setGetLanguage(func: typeof ObsidianGetLanguage): void; export declare function setGetLanguage(func: typeof ObsidianGetLanguage): void;
export declare function getLanguage(): string; export declare function getLanguage(): string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
declare const manifestVersion: string; declare const manifestVersion: string;
declare const packageVersion: string; declare const packageVersion: string;
export { manifestVersion, packageVersion }; export { manifestVersion, packageVersion };
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { AllMessageKeys, I18N_LANGS } from "./rosetta"; import type { AllMessageKeys, I18N_LANGS } from "./rosetta";
import type { TaggedType } from "./types"; import type { TaggedType } from "./types";
export declare let currentLang: I18N_LANGS; export declare let currentLang: I18N_LANGS;
+1 -1
View File
@@ -1,4 +1,4 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export * from "octagonal-wheels/common/logger"; export * from "octagonal-wheels/common/logger";
export type * from "octagonal-wheels/common/logger"; export type * from "octagonal-wheels/common/logger";
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { PartialMessages as def } from "./def.ts"; import { PartialMessages as def } from "./def.ts";
import { type MESSAGE } from "@lib/common/rosetta.ts"; import { type MESSAGE } from "@lib/common/rosetta.ts";
type MessageKeys = keyof typeof def.def; type MessageKeys = keyof typeof def.def;
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare const allMessages: { export declare const allMessages: {
readonly "(Active)": { readonly "(Active)": {
readonly def: "(Active)"; readonly def: "(Active)";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare const PartialMessages: { export declare const PartialMessages: {
readonly de: { readonly de: {
"(Active)": string; "(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare const PartialMessages: { export declare const PartialMessages: {
readonly def: { readonly def: {
"(Active)": string; "(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare const PartialMessages: { export declare const PartialMessages: {
readonly es: { readonly es: {
"(Active)": string; "(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare const PartialMessages: { export declare const PartialMessages: {
readonly fr: { readonly fr: {
"(BETA) Always overwrite with a newer file": string; "(BETA) Always overwrite with a newer file": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare const PartialMessages: { export declare const PartialMessages: {
readonly he: { readonly he: {
"(BETA) Always overwrite with a newer file": string; "(BETA) Always overwrite with a newer file": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare const PartialMessages: { export declare const PartialMessages: {
readonly ja: { readonly ja: {
"(Active)": string; "(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare const PartialMessages: { export declare const PartialMessages: {
readonly ko: { readonly ko: {
"(Active)": string; "(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare const PartialMessages: { export declare const PartialMessages: {
readonly ru: { readonly ru: {
"(Active)": string; "(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare const PartialMessages: { export declare const PartialMessages: {
readonly "zh-tw": { readonly "zh-tw": {
"(Active)": string; "(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare const PartialMessages: { export declare const PartialMessages: {
readonly zh: { readonly zh: {
"(Active)": string; "(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export type CouchDBCredentials = BasicCredentials | JWTCredentials; export type CouchDBCredentials = BasicCredentials | JWTCredentials;
export type JWTAlgorithm = "HS256" | "HS512" | "ES256" | "ES512" | ""; export type JWTAlgorithm = "HS256" | "HS512" | "ES256" | "ES512" | "";
export type Credential = { export type Credential = {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { DocumentID } from "./db.type"; import type { DocumentID } from "./db.type";
export declare const VERSIONING_DOCID: DocumentID; export declare const VERSIONING_DOCID: DocumentID;
export declare const MILESTONE_DOCID: DocumentID; export declare const MILESTONE_DOCID: DocumentID;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { MILESTONE_DOCID, NODEINFO_DOCID } from "./db.const"; import type { MILESTONE_DOCID, NODEINFO_DOCID } from "./db.const";
import type { AnyEntry, ChunkVersionRange, DatabaseEntry, EntryChunkPack, EntryLeaf, EntryTypes, EntryVersionInfo, InternalFileEntry, LoadedEntry, MetaEntry, NewEntry, NoteEntry, PlainEntry } from "./db.type"; import type { AnyEntry, ChunkVersionRange, DatabaseEntry, EntryChunkPack, EntryLeaf, EntryTypes, EntryVersionInfo, InternalFileEntry, LoadedEntry, MetaEntry, NewEntry, NoteEntry, PlainEntry } from "./db.type";
import type { TweakValues } from "./tweak.definition"; import type { TweakValues } from "./tweak.definition";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { TaggedType } from "octagonal-wheels/common/types"; import type { TaggedType } from "octagonal-wheels/common/types";
import type { EntryTypes, SYNCINFO_ID } from "./db.const"; import type { EntryTypes, SYNCINFO_ID } from "./db.const";
export type FilePath = TaggedType<string, "FilePath">; export type FilePath = TaggedType<string, "FilePath">;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { AUTO_MERGED, CANCELLED, MISSING_OR_ERROR, NOT_CONFLICTED } from "./shared.const.symbols"; import type { AUTO_MERGED, CANCELLED, MISSING_OR_ERROR, NOT_CONFLICTED } from "./shared.const.symbols";
export type diff_result_leaf = { export type diff_result_leaf = {
rev: string; rev: string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare const CHeader = "h:"; export declare const CHeader = "h:";
export declare const PSCHeader = "ps:"; export declare const PSCHeader = "ps:";
export declare const PSCHeaderEnd = "ps;"; export declare const PSCHeaderEnd = "ps;";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { FilePath, FilePathWithPrefix } from "./db.type"; import type { FilePath, FilePathWithPrefix } from "./db.type";
export type UXStat = { export type UXStat = {
size: number; size: number;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { FilePath } from "./db.type"; import type { FilePath } from "./db.type";
export declare const PREFIXMD_LOGFILE = "livesync_log_"; export declare const PREFIXMD_LOGFILE = "livesync_log_";
export declare const PREFIXMD_LOGFILE_UC = "LIVESYNC_LOG_"; export declare const PREFIXMD_LOGFILE_UC = "LIVESYNC_LOG_";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare const SETTING_VERSION_INITIAL = 0; export declare const SETTING_VERSION_INITIAL = 0;
export declare const SETTING_VERSION_SUPPORT_CASE_INSENSITIVE = 10; export declare const SETTING_VERSION_SUPPORT_CASE_INSENSITIVE = 10;
export declare const CURRENT_SETTING_VERSION = 10; export declare const CURRENT_SETTING_VERSION = 10;
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { type ObsidianLiveSyncSettings, type P2PSyncSetting } from "./setting.type"; import { type ObsidianLiveSyncSettings, type P2PSyncSetting } from "./setting.type";
export declare const P2P_DEFAULT_SETTINGS: P2PSyncSetting; export declare const P2P_DEFAULT_SETTINGS: P2PSyncSetting;
export declare const DEFAULT_SETTINGS: ObsidianLiveSyncSettings; export declare const DEFAULT_SETTINGS: ObsidianLiveSyncSettings;
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { ObsidianLiveSyncSettings } from "./setting.type"; import type { ObsidianLiveSyncSettings } from "./setting.type";
export declare const PREFERRED_BASE: Partial<ObsidianLiveSyncSettings>; export declare const PREFERRED_BASE: Partial<ObsidianLiveSyncSettings>;
export declare const PREFERRED_SETTING_CLOUDANT: Partial<ObsidianLiveSyncSettings>; export declare const PREFERRED_SETTING_CLOUDANT: Partial<ObsidianLiveSyncSettings>;
+1 -1
View File
@@ -1,4 +1,4 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { ObsidianLiveSyncSettings } from "./setting.type"; import type { ObsidianLiveSyncSettings } from "./setting.type";
export declare const KeyIndexOfSettings: Record<keyof ObsidianLiveSyncSettings, number>; export declare const KeyIndexOfSettings: Record<keyof ObsidianLiveSyncSettings, number>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { ChunkAlgorithms, E2EEAlgorithms, HashAlgorithms, MODE_AUTOMATIC, MODE_PAUSED, MODE_SELECTIVE, MODE_SHINY, RemoteTypes } from "./setting.const"; import type { ChunkAlgorithms, E2EEAlgorithms, HashAlgorithms, MODE_AUTOMATIC, MODE_PAUSED, MODE_SELECTIVE, MODE_SHINY, RemoteTypes } from "./setting.const";
import type { I18N_LANGS } from "@lib/common/rosetta"; import type { I18N_LANGS } from "@lib/common/rosetta";
import type { CustomRegExpSourceList } from "./shared.type.util"; import type { CustomRegExpSourceList } from "./shared.type.util";
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare const MAX_DOC_SIZE = 1000; export declare const MAX_DOC_SIZE = 1000;
export declare const MAX_DOC_SIZE_BIN = 102400; export declare const MAX_DOC_SIZE_BIN = 102400;
export declare const VER = 12; export declare const VER = 12;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare const SETTING_KEY_P2P_DEVICE_NAME = "p2p_device_name"; export declare const SETTING_KEY_P2P_DEVICE_NAME = "p2p_device_name";
export declare const configURIBase = "obsidian://setuplivesync?settings="; export declare const configURIBase = "obsidian://setuplivesync?settings=";
export declare const configURIBaseQR = "obsidian://setuplivesync?settingsQR="; export declare const configURIBaseQR = "obsidian://setuplivesync?settingsQR=";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare const CANCELLED: unique symbol; export declare const CANCELLED: unique symbol;
export declare const AUTO_MERGED: unique symbol; export declare const AUTO_MERGED: unique symbol;
export declare const NOT_CONFLICTED: unique symbol; export declare const NOT_CONFLICTED: unique symbol;
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { ObsidianLiveSyncSettings } from "./setting.type"; import type { ObsidianLiveSyncSettings } from "./setting.type";
export declare const LEVEL_ADVANCED = "ADVANCED"; export declare const LEVEL_ADVANCED = "ADVANCED";
export declare const LEVEL_POWER_USER = "POWER_USER"; export declare const LEVEL_POWER_USER = "POWER_USER";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare const DatabaseConnectingStatuses: { export declare const DatabaseConnectingStatuses: {
readonly STARTED: "STARTED"; readonly STARTED: "STARTED";
readonly NOT_CONNECTED: "NOT_CONNECTED"; readonly NOT_CONNECTED: "NOT_CONNECTED";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { TaggedType } from "octagonal-wheels/common/types"; import type { TaggedType } from "octagonal-wheels/common/types";
export type { TaggedType }; export type { TaggedType };
export type CustomRegExpSource = TaggedType<string, "CustomRegExp">; export type CustomRegExpSource = TaggedType<string, "CustomRegExp">;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { EntryTypes } from "./db.const"; import { EntryTypes } from "./db.const";
import type { DatabaseEntry, DocumentID } from "./db.type"; import type { DatabaseEntry, DocumentID } from "./db.type";
export declare const ProtocolVersions: { export declare const ProtocolVersions: {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { ObsidianLiveSyncSettings } from "./setting.type"; import type { ObsidianLiveSyncSettings } from "./setting.type";
export declare const TweakValuesShouldMatchedTemplate: Partial<ObsidianLiveSyncSettings>; export declare const TweakValuesShouldMatchedTemplate: Partial<ObsidianLiveSyncSettings>;
type TweakKeys = keyof TweakValues; type TweakKeys = keyof TweakValues;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
/** /**
# Rosetta stone # Rosetta stone
- To localise messages to your language, please write a translation to this file and submit a PR. - To localise messages to your language, please write a translation to this file and submit a PR.
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { type ConfigurationItem, type ObsidianLiveSyncSettings } from "./types.ts"; import { type ConfigurationItem, type ObsidianLiveSyncSettings } from "./types.ts";
type ExtractPropertiesByType<T, U> = { type ExtractPropertiesByType<T, U> = {
[K in keyof T as T[K] extends U ? K : never]: T[K] extends U ? K : never; [K in keyof T as T[K] extends U ? K : never]: T[K] extends U ? K : never;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { DocumentID, FilePath, FilePathWithPrefix } from "./models/db.type"; import type { DocumentID, FilePath, FilePathWithPrefix } from "./models/db.type";
import type { UXFileInfoStub } from "./types"; import type { UXFileInfoStub } from "./types";
/** /**
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export type { TaggedType } from "./models/shared.type.util.ts"; export type { TaggedType } from "./models/shared.type.util.ts";
export { LOG_LEVEL_DEBUG, LOG_LEVEL_INFO, LOG_LEVEL_NOTICE, LOG_LEVEL_URGENT, LOG_LEVEL_VERBOSE, } from "octagonal-wheels/common/logger"; export { LOG_LEVEL_DEBUG, LOG_LEVEL_INFO, LOG_LEVEL_NOTICE, LOG_LEVEL_URGENT, LOG_LEVEL_VERBOSE, } from "octagonal-wheels/common/logger";
export type { LOG_LEVEL } from "octagonal-wheels/common/logger"; export type { LOG_LEVEL } from "octagonal-wheels/common/logger";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { type AnyEntry, type DatabaseEntry, type EntryLeaf, type SyncInfo, type LoadedEntry, type SavingEntry, type NewEntry, type PlainEntry, type CustomRegExpSource, type ParsedCustomRegExp, type CustomRegExpSourceList, type ObsidianLiveSyncSettings, type RemoteDBSettings, type P2PConnectionInfo, type BucketSyncSetting, type CouchDBConnection, type EncryptionSettings } from "./types.ts"; import { type AnyEntry, type DatabaseEntry, type EntryLeaf, type SyncInfo, type LoadedEntry, type SavingEntry, type NewEntry, type PlainEntry, type CustomRegExpSource, type ParsedCustomRegExp, type CustomRegExpSourceList, type ObsidianLiveSyncSettings, type RemoteDBSettings, type P2PConnectionInfo, type BucketSyncSetting, type CouchDBConnection, type EncryptionSettings } from "./types.ts";
import { replaceAll, replaceAllPairs } from "octagonal-wheels/string"; import { replaceAll, replaceAllPairs } from "octagonal-wheels/string";
export { replaceAll, replaceAllPairs }; export { replaceAll, replaceAllPairs };
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare function isErrorOf(ex: unknown, statusCode: number): boolean; export declare function isErrorOf(ex: unknown, statusCode: number): boolean;
/** /**
* Checks if the error is effectively a 404 error from CouchDB or PouchDB. * Checks if the error is effectively a 404 error from CouchDB or PouchDB.
+1 -1
View File
@@ -1,4 +1,4 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare function asCopy<T>(obj: T): T; export declare function asCopy<T>(obj: T): T;
export declare function ensureError(error: unknown): Error; export declare function ensureError(error: unknown): Error;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export declare function generatePatchObj(from: Record<string | number | symbol, unknown>, to: Record<string | number | symbol, unknown>): Record<string | number | symbol, unknown>; export declare function generatePatchObj(from: Record<string | number | symbol, unknown>, to: Record<string | number | symbol, unknown>): Record<string | number | symbol, unknown>;
export declare function applyPatch(from: Record<string | number | symbol, unknown>, patch: Record<string | number | symbol, unknown>): Record<string | number | symbol, unknown>; export declare function applyPatch(from: Record<string | number | symbol, unknown>, patch: Record<string | number | symbol, unknown>): Record<string | number | symbol, unknown>;
export declare function mergeObject(objA: Record<string | number | symbol, unknown> | [unknown], objB: Record<string | number | symbol, unknown> | [unknown]): unknown[] | { export declare function mergeObject(objA: Record<string | number | symbol, unknown> | [unknown], objB: Record<string | number | symbol, unknown> | [unknown]): unknown[] | {
+1 -1
View File
@@ -1,3 +1,3 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export type Constructor<T> = new (...args: any[]) => T; // eslint-disable-line @typescript-eslint/no-explicit-any -- Only type declaration export type Constructor<T> = new (...args: any[]) => T; // eslint-disable-line @typescript-eslint/no-explicit-any -- Only type declaration
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { SimpleStore } from "octagonal-wheels/databases/SimpleStoreBase"; import type { SimpleStore } from "octagonal-wheels/databases/SimpleStoreBase";
export declare class StoredMapLike<U> { export declare class StoredMapLike<U> {
_store: SimpleStore<U>; _store: SimpleStore<U>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
interface InstanceHaveOnBindFunction<T> { interface InstanceHaveOnBindFunction<T> {
onBindFunction: (...params: T[]) => void; onBindFunction: (...params: T[]) => void;
} }
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { encryptHKDFWorker, decryptHKDFWorker } from "@lib/worker/bgWorker.ts"; import { encryptHKDFWorker, decryptHKDFWorker } from "@lib/worker/bgWorker.ts";
export declare const encryptHKDF: typeof encryptHKDFWorker; export declare const encryptHKDF: typeof encryptHKDFWorker;
export declare const decryptHKDF: typeof decryptHKDFWorker; export declare const decryptHKDF: typeof decryptHKDFWorker;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
/** /**
* Encrypts a string using a passphrase, unless the string is already encrypted. * Encrypts a string using a passphrase, unless the string is already encrypted.
* *
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { FilePathWithPrefix, ObsidianLiveSyncSettings } from "@lib/common/types"; import type { FilePathWithPrefix, ObsidianLiveSyncSettings } from "@lib/common/types";
export declare const EVENT_LAYOUT_READY = "layout-ready"; export declare const EVENT_LAYOUT_READY = "layout-ready";
export declare const EVENT_PLUGIN_LOADED = "plugin-loaded"; export declare const EVENT_PLUGIN_LOADED = "plugin-loaded";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import { EventHub } from "octagonal-wheels/events"; import { EventHub } from "octagonal-wheels/events";
declare global { declare global {
interface LSEvents { interface LSEvents {
+1 -1
View File
@@ -1,3 +1,3 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export { DirectFileManipulator, type DirectFileManipulatorOptions } from "./API/DirectFileManipulator.ts"; export { DirectFileManipulator, type DirectFileManipulatorOptions } from "./API/DirectFileManipulator.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
export interface Confirm { export interface Confirm {
askYesNo(message: string): Promise<"yes" | "no">; askYesNo(message: string): Promise<"yes" | "no">;
askString(title: string, key: string, placeholder: string, isPassword?: boolean): Promise<string | false>; askString(title: string, key: string, placeholder: string, isPassword?: boolean): Promise<string | false>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 87dc724 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: ef1bdf0
import type { FilePathWithPrefix, LoadedEntry, MetaEntry, UXFileInfo, UXFileInfoStub } from "@lib/common/types"; import type { FilePathWithPrefix, LoadedEntry, MetaEntry, UXFileInfo, UXFileInfoStub } from "@lib/common/types";
export interface DatabaseFileAccess { export interface DatabaseFileAccess {
delete: (file: UXFileInfoStub | FilePathWithPrefix, rev?: string) => Promise<boolean>; delete: (file: UXFileInfoStub | FilePathWithPrefix, rev?: string) => Promise<boolean>;

Some files were not shown because too many files have changed in this diff Show More