Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support yjs in dexie-cloud-addon #2045

Merged
merged 134 commits into from
Apr 2, 2025
Merged

Support yjs in dexie-cloud-addon #2045

merged 134 commits into from
Apr 2, 2025

Conversation

dfahlander
Copy link
Collaborator

No description provided.

dfahlander and others added 30 commits June 10, 2024 19:39
Still need to think it through. Might need to find a better way than iterating all updates in entire DB periodically.
Could not take latest as it generates double types. Found out we needed version 9.3.1 exactly.
* Renamed updTable to updatesTable
* Renamed id / rowId to parentId
* To lookup whether a certain document is open and find it
* updates
* awareness
* sync
* websocket
Move all yjs related modules to an yjs directory
* updatesTable is not meaningful outside of client
* server need to know the parent table to verify access
* parent table + yDoc prop combined forms the same uniqueness as updatesTable.
David Fahlander added 28 commits February 4, 2025 16:40
* run triggers instantly when for docs that are not open
* enque triggers while docs are open, so they run when they eventually close

This is a good enough solution for now for dexie starter and the Hackathon even though it's a bit too opinionated and should definitely be revised. The whole triggering API should be revised and there is a better idea to be implented later.
Tested with dexie-cloud-starter and seems stable enough for release.
@dfahlander dfahlander merged commit 552500a into master Apr 2, 2025
5 checks passed
@dfahlander dfahlander deleted the support-yjs-dexie-cloud branch April 2, 2025 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant