-
-
Notifications
You must be signed in to change notification settings - Fork 642
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
base: master
Are you sure you want to change the base?
Commits on Jun 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b56cee3 - Browse repository at this point
Copy the full SHA b56cee3View commit details
Commits on Jun 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 24ac71f - Browse repository at this point
Copy the full SHA 24ac71fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4cd9ac1 - Browse repository at this point
Copy the full SHA 4cd9ac1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cce18f - Browse repository at this point
Copy the full SHA 0cce18fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b2e86b0 - Browse repository at this point
Copy the full SHA b2e86b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad6c737 - Browse repository at this point
Copy the full SHA ad6c737View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6742cfa - Browse repository at this point
Copy the full SHA 6742cfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 60e83bc - Browse repository at this point
Copy the full SHA 60e83bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c4b5b0 - Browse repository at this point
Copy the full SHA 1c4b5b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e069f1 - Browse repository at this point
Copy the full SHA 0e069f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22d79b5 - Browse repository at this point
Copy the full SHA 22d79b5View commit details
Commits on Jul 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7742ebb - Browse repository at this point
Copy the full SHA 7742ebbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1200a19 - Browse repository at this point
Copy the full SHA 1200a19View commit details
Commits on Jul 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 60aef01 - Browse repository at this point
Copy the full SHA 60aef01View commit details
Commits on Jul 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 27e13e4 - Browse repository at this point
Copy the full SHA 27e13e4View commit details
Commits on Jul 22, 2024
-
Still need to think it through. Might need to find a better way than iterating all updates in entire DB periodically.
Configuration menu - View commit details
-
Copy full SHA for a3ef4b1 - Browse repository at this point
Copy the full SHA a3ef4b1View commit details
Commits on Jul 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3e32413 - Browse repository at this point
Copy the full SHA 3e32413View commit details -
Configuration menu - View commit details
-
Copy full SHA for 16a04d0 - Browse repository at this point
Copy the full SHA 16a04d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5cb596a - Browse repository at this point
Copy the full SHA 5cb596aView commit details
Commits on Jul 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8995d85 - Browse repository at this point
Copy the full SHA 8995d85View commit details -
Could not take latest as it generates double types. Found out we needed version 9.3.1 exactly.
Configuration menu - View commit details
-
Copy full SHA for 31ac76e - Browse repository at this point
Copy the full SHA 31ac76eView commit details -
* Renamed updTable to updatesTable * Renamed id / rowId to parentId
Configuration menu - View commit details
-
Copy full SHA for 4ceb588 - Browse repository at this point
Copy the full SHA 4ceb588View commit details -
Configuration menu - View commit details
-
Copy full SHA for 54ef0e7 - Browse repository at this point
Copy the full SHA 54ef0e7View commit details -
Made it possible to reach the Y.Doc cache from addons or outside dexie:
* To lookup whether a certain document is open and find it
Configuration menu - View commit details
-
Copy full SHA for c013c51 - Browse repository at this point
Copy the full SHA c013c51View commit details -
Y.js support in dexie-cloud-addon:
* updates * awareness * sync * websocket
Configuration menu - View commit details
-
Copy full SHA for d9e3f76 - Browse repository at this point
Copy the full SHA d9e3f76View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2cf903 - Browse repository at this point
Copy the full SHA d2cf903View commit details
Commits on Jul 31, 2024
-
Don't sync Y.Doc on tables not marked for sync.
Move all yjs related modules to an yjs directory
Configuration menu - View commit details
-
Copy full SHA for 745c96f - Browse repository at this point
Copy the full SHA 745c96fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 659f7a1 - Browse repository at this point
Copy the full SHA 659f7a1View commit details -
Refactor: use table+prop instead of updatesTable because:
* 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.
Configuration menu - View commit details
-
Copy full SHA for aa38a76 - Browse repository at this point
Copy the full SHA aa38a76View commit details
Commits on Aug 23, 2024
-
David Fahlander committed
Aug 23, 2024 Configuration menu - View commit details
-
Copy full SHA for 41e113a - Browse repository at this point
Copy the full SHA 41e113aView commit details -
David Fahlander committed
Aug 23, 2024 Configuration menu - View commit details
-
Copy full SHA for 878be8c - Browse repository at this point
Copy the full SHA 878be8cView commit details -
David Fahlander committed
Aug 23, 2024 Configuration menu - View commit details
-
Copy full SHA for c501020 - Browse repository at this point
Copy the full SHA c501020View commit details
Commits on Aug 26, 2024
-
Make pnpm not complain when dexie is in alpha or beta
David Fahlander committedAug 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 7ec8ec5 - Browse repository at this point
Copy the full SHA 7ec8ec5View commit details -
David Fahlander committed
Aug 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 2852116 - Browse repository at this point
Copy the full SHA 2852116View commit details -
Referring to dexie-cloud-common a better way for pnpm: with workspace:^
David Fahlander committedAug 26, 2024 Configuration menu - View commit details
-
Copy full SHA for a0299bb - Browse repository at this point
Copy the full SHA a0299bbView commit details
Commits on Aug 28, 2024
-
No need to double-destroy provider
David Fahlander committedAug 28, 2024 Configuration menu - View commit details
-
Copy full SHA for 5482ade - Browse repository at this point
Copy the full SHA 5482adeView commit details -
David Fahlander committed
Aug 28, 2024 Configuration menu - View commit details
-
Copy full SHA for b5c6a24 - Browse repository at this point
Copy the full SHA b5c6a24View commit details
Commits on Sep 4, 2024
-
David Fahlander committed
Sep 4, 2024 Configuration menu - View commit details
-
Copy full SHA for 26bb73d - Browse repository at this point
Copy the full SHA 26bb73dView commit details -
Wrong call to updateTable.put() - it's inbound
David Fahlander committedSep 4, 2024 Configuration menu - View commit details
-
Copy full SHA for cc37806 - Browse repository at this point
Copy the full SHA cc37806View commit details
Commits on Sep 9, 2024
-
Add receivedUntil on YSyncState (formerly YSyncer) and respect it whe…
…n compressing docs.
David Fahlander committedSep 9, 2024 Configuration menu - View commit details
-
Copy full SHA for 50cd0a2 - Browse repository at this point
Copy the full SHA 50cd0a2View commit details -
* Update receivedUntil after getting server changes over syncWithServer() but not when getting chaotic server changes on a particular document over websocket. * Before syncWithServer, compute an Y.js state vector from the server changes that has arrived after receivedFrom so that the server can avoid sending the same changes back. * Update YSyncState after sync with the correct unsentFrom and receivedUntil values.
David Fahlander committedSep 9, 2024 Configuration menu - View commit details
-
Copy full SHA for 0591312 - Browse repository at this point
Copy the full SHA 0591312View commit details -
Bump version of dexie-cloud-common
David Fahlander committedSep 9, 2024 Configuration menu - View commit details
-
Copy full SHA for ca17376 - Browse repository at this point
Copy the full SHA ca17376View commit details
Commits on Sep 11, 2024
-
Refactor DexieYProvider and renamed
useYProvider() back to useDocument() because the hook not only maintains a provider but also manages the lifetime of the document, keeping it loaded as long as the component is mounted.
David Fahlander committedSep 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 75dae89 - Browse repository at this point
Copy the full SHA 75dae89View commit details -
Complete client-side implementation of:
* Opening a document on the server, providing a state vector of updates that we've got from the server over websocket but not through regular sync. * Handling doc-open re-requests in case WebSocket goes down and up again while the document is open in an editor. * Don't send the initial awareness state - wait for editor to manage awarenesses - except when the component is unmounted - then we remove our "client" from awareness state and also send a "doc-close" message
David Fahlander committedSep 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 82be5ad - Browse repository at this point
Copy the full SHA 82be5adView commit details -
Adjust to newer lib.dom.d.ts: IDBTransactionDurability seem to have b…
…ecome standard.
David Fahlander committedSep 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 6a83b4e - Browse repository at this point
Copy the full SHA 6a83b4eView commit details -
Put back the YStateVector message (needed in normal sync)
David Fahlander committedSep 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 91b620b - Browse repository at this point
Copy the full SHA 91b620bView commit details -
Bump version of dexie-cloud-common
David Fahlander committedSep 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 2324e56 - Browse repository at this point
Copy the full SHA 2324e56View commit details
Commits on Sep 27, 2024
-
Send Yjs updates over binary websocket channel.
Store serverRevision on sync state for Y-tables in order to include it in the DocOpen request so that the client can get additional updates since last sync over the websocket immediately when the document is opened.
David Fahlander committedSep 27, 2024 Configuration menu - View commit details
-
Copy full SHA for 5c05775 - Browse repository at this point
Copy the full SHA 5c05775View commit details
Commits on Oct 2, 2024
-
Utilities for consuming binary stream from fetch
David Fahlander committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for 02b9c09 - Browse repository at this point
Copy the full SHA 02b9c09View commit details
Commits on Oct 3, 2024
-
David Fahlander committed
Oct 3, 2024 Configuration menu - View commit details
-
Copy full SHA for 9f39feb - Browse repository at this point
Copy the full SHA 9f39febView commit details
Commits on Oct 7, 2024
-
Last piece in place for a completed YJS support in dexie-cloud-addon:
* After login, or when user is accepted to a new realm, all Y docs in the user's realms are downloaded in full over a binary stream from new endpoint in dexie-cloud-server with the ability to continue where it left off in case network would break in the middle. * This is nescessary because clients only subscribe to updates on their current realms. When new access is given to user, it cannot just get the latest updates from last revision but need to fully download all the docs on the new realm. * With non-YJS changes we are currently baking in the same flow in the ordinary sync, but for YJS we can safely do the downloading outside the normal sync API as the changes are omnidempotent and the CRDT types does not depend on an exact revision being in place.
David Fahlander committedOct 7, 2024 Configuration menu - View commit details
-
Copy full SHA for d417e2d - Browse repository at this point
Copy the full SHA d417e2dView commit details -
Bugfix by review: clearout collectedDocs after bulkAdd()
David Fahlander committedOct 7, 2024 Configuration menu - View commit details
-
Copy full SHA for b818b3d - Browse repository at this point
Copy the full SHA b818b3dView commit details -
David Fahlander committed
Oct 7, 2024 Configuration menu - View commit details
-
Copy full SHA for 6d75a83 - Browse repository at this point
Copy the full SHA 6d75a83View commit details -
dexie-cloud-addon version bump
David Fahlander committedOct 7, 2024 Configuration menu - View commit details
-
Copy full SHA for 76b4dc9 - Browse repository at this point
Copy the full SHA 76b4dc9View commit details
Commits on Oct 9, 2024
-
* Downloading of y documents from dexie-cloud didn't work properly * Didn't create dexie-cloud-syncer on updates table until after a long time * Garbage collecting yDocs didn't work properly when dexie-cloud addon had been syncing.
David Fahlander committedOct 9, 2024 Configuration menu - View commit details
-
Copy full SHA for f38451e - Browse repository at this point
Copy the full SHA f38451eView commit details -
David Fahlander committed
Oct 9, 2024 Configuration menu - View commit details
-
Copy full SHA for 01ca6ea - Browse repository at this point
Copy the full SHA 01ca6eaView commit details
Commits on Oct 10, 2024
-
Don't push y-updates or awareness or doc-open before logging in
David Fahlander committedOct 10, 2024 Configuration menu - View commit details
-
Copy full SHA for 41332bf - Browse repository at this point
Copy the full SHA 41332bfView commit details -
Respect cloud option disableEagerSync in regards to avoid pushing Y m…
…essages to server
David Fahlander committedOct 10, 2024 Configuration menu - View commit details
-
Copy full SHA for 0a10bd9 - Browse repository at this point
Copy the full SHA 0a10bd9View commit details
Commits on Oct 11, 2024
-
Version bump on 3 libraries: dexie, dexie-cloud-addon and dexie-react…
…-hooks Setting the three of them on the same alpha version
David Fahlander committedOct 11, 2024 Configuration menu - View commit details
-
Copy full SHA for 13116a5 - Browse repository at this point
Copy the full SHA 13116a5View commit details
Commits on Oct 13, 2024
-
Support providing initial Y.Doc when adding new rows
+ Clone state of provided Y.Doc into updates table + strip away physical Y.Doc property before storing to DB + throw when trying to replace an Y.Doc property on an existing object. + runtime type check of yDoc props. + new unit tests of the above
David Fahlander committedOct 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 92ba86a - Browse repository at this point
Copy the full SHA 92ba86aView commit details -
David Fahlander committed
Oct 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 45669c1 - Browse repository at this point
Copy the full SHA 45669c1View commit details -
Don't GC every 10 seconds. Instead:
* Run it 10 seconds after Dexie instance created * Then run it every 5 minutes. * And don't update the timestamp lastCompressed unless anything actually could be compressed. Because otherwise we might starve the WAL log by writing every 5 minutes despite nothing is happening from the user's perspective.
David Fahlander committedOct 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 3357ccb - Browse repository at this point
Copy the full SHA 3357ccbView commit details -
David Fahlander committed
Oct 13, 2024 Configuration menu - View commit details
-
Copy full SHA for 17e9c1b - Browse repository at this point
Copy the full SHA 17e9c1bView commit details
Commits on Oct 14, 2024
-
Fix: MissingAPIError("awarenessProtocol was not provided...") when Yj…
…s integration isn't used.
David Fahlander committedOct 14, 2024 Configuration menu - View commit details
-
Copy full SHA for 3166136 - Browse repository at this point
Copy the full SHA 3166136View commit details -
Make useDocument() not throw with non-dexie Y.Doc instances.
David Fahlander committedOct 14, 2024 Configuration menu - View commit details
-
Copy full SHA for 4dbcc43 - Browse repository at this point
Copy the full SHA 4dbcc43View commit details -
David Fahlander committed
Oct 14, 2024 Configuration menu - View commit details
-
Copy full SHA for 44e392f - Browse repository at this point
Copy the full SHA 44e392fView commit details -
David Fahlander committed
Oct 14, 2024 Configuration menu - View commit details
-
Copy full SHA for 5164b0d - Browse repository at this point
Copy the full SHA 5164b0dView commit details
Commits on Oct 16, 2024
-
Bugfix for DexieYProvider.release() - it unconditionally destroyed do…
…cs immediately
David Fahlander committedOct 16, 2024 Configuration menu - View commit details
-
Copy full SHA for e328321 - Browse repository at this point
Copy the full SHA e328321View commit details -
Make it possible to opt-out from Y.js garbage collection (for debugging)
David Fahlander committedOct 16, 2024 Configuration menu - View commit details
-
Copy full SHA for ccd1c2b - Browse repository at this point
Copy the full SHA ccd1c2bView commit details -
Debug printouts for Y messages
David Fahlander committedOct 16, 2024 Configuration menu - View commit details
-
Copy full SHA for e80b7dd - Browse repository at this point
Copy the full SHA e80b7ddView commit details -
Bugfix: some YJS updates were never sent to server
David Fahlander committedOct 16, 2024 Configuration menu - View commit details
-
Copy full SHA for 92542c7 - Browse repository at this point
Copy the full SHA 92542c7View commit details -
Don't open docs until awarenss is requested.
David Fahlander committedOct 16, 2024 Configuration menu - View commit details
-
Copy full SHA for addac96 - Browse repository at this point
Copy the full SHA addac96View commit details -
Possible bug: could theoretically miss y-updates in DexieYProvider
David Fahlander committedOct 16, 2024 Configuration menu - View commit details
-
Copy full SHA for db33099 - Browse repository at this point
Copy the full SHA db33099View commit details -
When rejecting an update, reject all following updates as well from t…
…he same client, and destroy doc if it is open.
David Fahlander committedOct 16, 2024 Configuration menu - View commit details
-
Copy full SHA for eefba6f - Browse repository at this point
Copy the full SHA eefba6fView commit details -
Feature: defineYDocTrigger(). Should be moved to another addon, but t…
…rying it out first like this.
David Fahlander committedOct 16, 2024 Configuration menu - View commit details
-
Copy full SHA for 7dd40eb - Browse repository at this point
Copy the full SHA 7dd40ebView commit details -
David Fahlander committed
Oct 16, 2024 Configuration menu - View commit details
-
Copy full SHA for d8f9263 - Browse repository at this point
Copy the full SHA d8f9263View commit details
Commits on Oct 17, 2024
-
Dexie Cloud: Support for unsynced properties (local-only properties t…
…hat are never synced to server)
David Fahlander committedOct 17, 2024 Configuration menu - View commit details
-
Copy full SHA for da98d8f - Browse repository at this point
Copy the full SHA da98d8fView commit details -
David Fahlander committed
Oct 17, 2024 Configuration menu - View commit details
-
Copy full SHA for 582530a - Browse repository at this point
Copy the full SHA 582530aView commit details