Commit graph

61 commits

Author SHA1 Message Date
eb1cc61042
Implement cursor broadcasting backend 2025-06-01 09:50:52 +01:00
0295b5633f
Allow deleting non-existent files 2025-05-23 21:56:39 +01:00
70fe45a09d
Rename user-agent header to device-id 2025-05-22 22:24:30 +01:00
961032b24f
Keep content on delete 2025-05-22 21:08:18 +01:00
715bbc4d2e
Add user and device provenance colums 2025-05-22 21:05:26 +01:00
f63d3dd830
Add websocket message type 2025-04-08 23:01:08 +01:00
33fd127cf6
Take last_seen_vault_update_id as a WS message instead of query parameter 2025-04-08 22:22:37 +01:00
74a8060246
Always normalise vaultId and trim token 2025-04-07 22:29:23 +01:00
f8b0501eea
Fix E2E tests 2025-04-06 13:55:27 +01:00
648db73628
Add device id and use it to filter out updates coming from the same device 2025-04-04 23:13:50 +01:00
3881f56b45
Bump rust deps 2025-04-04 21:58:05 +01:00
0e53631cc8
Format 2025-04-04 21:48:27 +01:00
b5e528d8b8
Use middleware instead of manual auth checks 2025-04-04 21:47:19 +01:00
fb71460fc3
Turn auth into a middleware 2025-04-04 21:46:08 +01:00
1f9728d893
Add cursor moving (#19) 2025-04-02 22:06:38 +01:00
b3e98d32b6
Add vault-level access control 2025-03-29 12:25:15 +00:00
1aad0fce31
Add WebSocket support (#12) 2025-03-29 10:17:46 +00:00
baba8f82bf
Take config path as input 2025-03-24 21:57:56 +00:00
e9c6f99df2
Give unique names to path params 2025-03-22 20:30:24 +00:00
8b8f1d91d9
Fix syncing when network latency is present (#4)
* WIP

* Add debug

* Dedupe inserts

* Add deterministic ordering

* Fix whitespaces

* Update insta

* Add integration test script

* Rename

* Add test

* Working for non-deletes

* omg it mostly works for deletes

* Isdeleted fix

* remove created dates

* update api

* Take document id

* No max attempt

* works

* Use string uuids

* .

* working!!!! (hopefully)

* Improve bundling

* Add module

* lint

* .

* lint

* Fix CI

* use toolchain

* clean up

* Add useSlowFileEvents

* Delete fuzz

* Fix CI

* use docker

* fix script

* clean up

* Clean up

* change node version

* Build docker image on every commit

* fix ci

* 1 db per vault

* Add scritps folder

* Bump versions

* Lint

* .

* Fix tests for real

* Style

* .

* try

* Consistent ordering

* Fix tests

* hmm

* .

* Clean up diff

* Fixes

* .

* Fix version bump

* .

* .

* .
2025-03-16 20:13:49 +00:00
e493b98a24
Don't merge with existing document on create for correctness reasons 2025-02-26 23:11:46 +00:00
0111afd296
Extract & add test 2025-02-23 21:34:19 +00:00
c5a89f5205
Fix path deduping again 2025-02-23 14:12:42 +00:00
0ab89ccf01
Fix dedup logic 2025-02-23 13:56:37 +00:00
4ed2095fd6
Dedup renamed files 2025-02-23 12:30:59 +00:00
60181ae53f
Add fetch doc version endpoints 2025-01-14 21:41:11 +00:00
a9227fa5bb
Merge based on file type 2025-01-11 10:53:05 +00:00
72be6ba18b
Implement multipart upload endpoints 2025-01-07 22:29:13 +00:00
f4a87d073a
Bump rust edition & reformat 2025-01-07 22:25:59 +00:00
6d5b183a3c
Sanitize relative paths server-side 2025-01-04 16:16:54 +00:00
0943681702
Move app state 2025-01-04 16:15:15 +00:00
c41ce7ef68
Don't return content in response if it's unchanged 2025-01-04 12:32:18 +00:00
752efd7a27
Use new API 2025-01-03 22:30:46 +00:00
b074202ed8
No need to merge if the contents are equal 2025-01-03 18:25:00 +00:00
aeae75b541
Typo 2025-01-03 14:45:32 +00:00
2911b195f4
Don't create new doc if one already exists with the same content 2025-01-03 14:40:52 +00:00
ec9845577a
Add lints 2024-12-20 11:08:14 +00:00
2d5c91a5ef
More lints 2024-12-18 22:27:25 +00:00
1e1dd7b877
Apply more lints 2024-12-18 22:14:09 +00:00
0c92bf959b
Make lints pass 2024-12-18 21:54:58 +00:00
da0e5f7373
Enable more lints 2024-12-18 21:33:30 +00:00
5bea3c94c1
Add write transactions 2024-12-18 20:36:38 +00:00
cfeab3939f
Fix delete bug 2024-12-15 15:47:25 +00:00
c567cec656
Add back document ids 2024-12-15 11:45:53 +00:00
65a42a18bf
Implement "since" query for fetch_latest_documents 2024-12-14 17:02:58 +00:00
70471f5142
Go from per document to per vault version ids to allow "since" queries 2024-12-14 17:02:44 +00:00
fe8d236948
Extract responses 2024-12-14 16:48:31 +00:00
fe7ff5349d
Replace document_id with relative path 2024-12-14 14:59:29 +00:00
10bc8c7099
Extract binary merging logic 2024-12-12 22:07:36 +00:00
7a8cca8fe7
Show auth success 2024-12-12 21:32:41 +00:00