Commit Graph

3972 Commits

Author SHA1 Message Date
Mega Yu
b9745dbaec fix test 2026-04-23 15:40:11 +08:00
Tienson Qin
f24c58577a Merge remote-tracking branch 'refs/remotes/origin/feat/cliable' into feat/cliable 2026-04-22 21:28:20 +08:00
Tienson Qin
e048996880 Merge branch 'master' into feat/cliable 2026-04-22 21:07:00 +08:00
Tienson Qin
9bd349dfe9 fix: lint and tests 2026-04-21 21:15:39 +08:00
Tienson Qin
b646db6a68 enhance(backup): share sqlite backup flow and trigger via save shortcut 2026-04-21 18:43:13 +08:00
Tienson Qin
b2cc4ea829 fix(sync): handle snapshot reset and tx epoch rollback
Fix snapshot-stream reset coercion so first non-empty chunk actually applies reset during full uploads.

Broadcast changed(t-now) after finished snapshot upload so connected peers learn the new snapshot epoch immediately.

Handle remote tx rollback on clients (hello/changed with remote-tx < local-tx) by rebasing local tx/checksum cursor and requesting pull from the new baseline.

Harden ws broadcast in non-WS test contexts and add regression tests for reset-on-first-chunk and finished-upload changed broadcast.

Verified with: cli-e2e sync-multi-batch-operations (passes).
2026-04-20 17:45:57 +08:00
Tienson Qin
85c5a412a4 revert changes from 1bdba92 related to sync 2026-04-20 15:19:33 +08:00
rcmerci
1bdba923eb fix sync test 2026-04-20 10:56:44 +08:00
rcmerci
4b13d67a88 Merge remote-tracking branch 'origin/master' into feat/cliable 2026-04-18 10:25:32 +08:00
Mega Yu
d6bc0b75ec Merge branch 'master' into enhance/i18n 2026-04-17 20:26:15 +08:00
megayu
76285de44b refactor: toolchain upgrade (#12517)
* chore(deps): upgrade Clojure version to 1.12.4 across multiple dependency files

* chore: bump shadow-cljs to 3.3.6

* chore: bump org.clojure/clojurescript to 1.12.134

* chore(deps): upgrade Clojure version to 1.12.4 in workflow files

* chore(deps): upgrade Java version to 21 in workflow files

* chore(deps): upgrade Node.js version to 24 in workflow files

* chore(deps): upgrade Node.js version to 24 in Dockerfile

* feat(updater): migrate electron-forge to electron-builder

* fix wrong android app version

* fix workflow

* feat(dependency-upgrade): add max-update-interval option for dependency audits

* chore(deps): upgrade electron-builder and electron-updater

* fix: update manual verification instructions for Electron shim cache

* chore: update shadow-cljs version to 3.4.4 across all dependencies

* chore: upgrade electron version to 41.2.1

* chore: update metosin/malli dependency to latest

* chore: upgrade cider-nrepl version to 0.59.0 in dependencies

* chore: upgrade clj-kondo version to 2026.04.15 and fix warning

* chore: move Electron windows build configuration from yml to ci

* chore: update Electron signing configuration to extend from base config

* fix: replace icon file for NSIS compatibility

* chore: resolve metosin/malli version conflicts

* chore: upgrade jdk to 21 in e2e workflow

---------

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2026-04-17 19:40:01 +08:00
Tienson Qin
f53767dfc6 chore: remove both transit-read and transit-write
use write-transit-str and read-transit-str instead
2026-04-17 16:58:18 +08:00
Tienson Qin
12509f58db fix: plugins e2e tests 2026-04-17 15:57:53 +08:00
Mega Yu
92681111b6 Merge branch 'master' into enhance/i18n 2026-04-17 10:35:36 +08:00
Tienson Qin
8606a8b5f0 fix: it's unsafe to invoke d/store in nested batch tx
Switched to use our own `conn-from-db` that doesn't call `d/store`.
2026-04-17 01:36:30 +08:00
megayu
0fa98f35e5 Merge branch 'master' into enhance/i18n 2026-04-16 16:05:13 +08:00
Mega Yu
950b4d36ae Merge 'master' into enhance/i18n 2026-04-16 15:30:25 +08:00
hoellen
8a2159e907 fix: use scheme instead of hardcoded http 2026-04-16 15:21:51 +08:00
Gabriel Horner
996a278b45 fix: batch page delete always returns failed message
This happened because successful deletes didn't return their result
and threw errors
2026-04-15 17:18:10 -04:00
Mega Yu
230a2b8296 Merge master into enhance/i18n 2026-04-15 22:30:34 +08:00
Tienson Qin
8058ece6c4 fix(page): gate deferred root reveal by children completion 2026-04-15 17:49:50 +08:00
Tienson Qin
58fdd8aea1 add doc for batch-transact! and batch-transact-with-temp-conn! 2026-04-15 17:49:50 +08:00
Tienson Qin
9d292435c8 fix: keep property ops uuid-only 2026-04-15 17:49:50 +08:00
Mega Yu
69ee9e2f83 chore: change Github to GitHub 2026-04-15 15:43:52 +08:00
Mega Yu
8347708c69 Merge master into enhance/i18n 2026-04-15 10:23:06 +08:00
Tienson Qin
bc27dd90a6 fix: lint 2026-04-15 00:04:38 +08:00
Tienson Qin
fc76192631 fix: stabilize uuid-based outliner ops and undo/redo replay 2026-04-14 22:11:51 +08:00
Tienson Qin
cfe00a5e71 fix(template): resolve dynamic variables in template insertion 2026-04-14 22:11:51 +08:00
Mega Yu
5eda6a8ab6 Merge master into enhance/i18n 2026-04-14 16:42:19 +08:00
Tienson Qin
ff56c143ab continue to improve view performance 2026-04-14 05:37:45 +08:00
Tienson Qin
995d0bf4a9 enhance(view): speed up large-graph get-view-data 2026-04-14 04:52:10 +08:00
Tienson Qin
e3a974947a perf: views 2026-04-14 04:33:46 +08:00
Tienson Qin
5cecff842d fix(sync): preserve apply-template uuids in rebase replay 2026-04-14 03:58:29 +08:00
Tienson Qin
a327063497 fix(db-sync): keep encrypted title updates after decrypt collapse 2026-04-14 03:29:42 +08:00
Gabriel Horner
4ab1216303 fix(cli): logseq upsert block --id modifies built-in nodes
it shouldn't be able to. Somes of these bugs are caused by same incorrect
definition of built-in? as found in
22c7736751. --content and --pos could modify all
built-in nodes. *properties and *tags options could modify private
built-in nodes which the app is not able to do and the CLI should be
disallowed from doing as well
2026-04-13 15:15:42 -04:00
Tienson Qin
73bc59857e fix(perf): don't call d/datoms to get all eavt
It's too slow (+8s) for a 500m sqlite file to just insert a new block
2026-04-14 00:27:36 +08:00
Gabriel Horner
22c7736751 fix(cli): remove block --id can remove built-in nodes
files, empty-placeholder and import-tx idents could all be deleted.
Ents with :kv/value would error unintentionally with
'No protocol method INode.-del defined for type null:'.
Now these all gracefully error
2026-04-13 10:02:36 -04:00
Tienson Qin
6e737b78ac fix: db unlisten 2026-04-13 18:25:03 +08:00
Mega Yu
69b7a0e893 improve i18n 2026-04-13 14:39:53 +08:00
Tienson Qin
174fd15c8e fix(sync): stabilize incremental checksum updates 2026-04-12 19:27:05 +08:00
Tienson Qin
3dd7302dc9 fix(db-sync): handle duplicate :block/uuid in incremental checksum
Account for duplicate :block/uuid datom multiplicity during incremental checksum delta calculation.
Expand touched eids to uuid peers and apply digest add/remove by tuple counts.
Add regression fixture+test from rebased retract mismatch log.
2026-04-12 17:46:14 +08:00
Tienson Qin
30bb4acc27 fix: stabilize undo/redo raw tx replay order 2026-04-12 15:55:52 +08:00
Tienson Qin
9baeee6e49 simplify transact ops 2026-04-12 15:41:22 +08:00
Tienson Qin
6cda7fc869 fix: align outliner and db-sync tests with history-op changes 2026-04-11 07:24:28 +08:00
Gabriel Horner
963cdf9234 fix: recycled/deleted page can't be restored by user
When a user deletes a page and then restores it by creating it again with cmd-k,
the page wasn't restored. The previously recycled page and its block are
now restored when the page is re-created
2026-04-10 11:30:06 -04:00
Mega Yu
5a752ef99d fix multiple logic errors caused by date format switching 2026-04-10 22:58:48 +08:00
Mega Yu
da07a518d5 feat(date): add new date format "yyyy-MM-dd EEE" for journal titles 2026-04-10 18:42:10 +08:00
Mega Yu
1cff73eddd remove deprecated code 2026-04-10 18:17:00 +08:00
Tienson Qin
32806264ce fix: reversed datoms should be normalized too for rebase 2026-04-10 14:49:54 +08:00
Tienson Qin
e275cbef0b fix: slow checksum 2026-04-10 03:42:01 +08:00