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

Add support for MSC3575: Sliding Sync #2242

Merged
merged 70 commits into from
Jul 12, 2022
Merged
Show file tree
Hide file tree
Changes from 64 commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
f2e8610
sliding sync: add client function and add stub sliding-sync.ts
kegsay Mar 8, 2022
2951778
Add core sliding sync classes
kegsay Mar 10, 2022
342c6a4
Add integration tests for sliding sync api basics
kegsay Mar 10, 2022
6621d00
gut unused code; add more types
kegsay Mar 10, 2022
f8cdfdf
Use SlidingSync in MatrixClient; stub functions for Sync
kegsay Mar 11, 2022
fa94d7d
Start feeding through room data to the client
kegsay Mar 11, 2022
94e9d71
Bugfixes so it sorta ish works
kegsay Mar 11, 2022
1d15346
Refactor the public API for sliding sync
kegsay Mar 14, 2022
d2fbe0a
Use EventEmitter for callbacks. Add ability to adjust lists and liste…
kegsay Mar 14, 2022
19b5335
Add stub tests; add listenUntil to make tests easier to read
kegsay Mar 14, 2022
49b30d9
No need to resend now
kegsay Mar 14, 2022
3724c83
Add more sliding sync tests; add new setListRanges function
kegsay Mar 15, 2022
8291c8a
build tests upon one another to reduce boilerplate and c/p
kegsay Mar 15, 2022
9802488
More thorough sliding sync tests
kegsay Mar 15, 2022
92d2933
Dependency inject SlidingSync in Client opts when calling startClient()
kegsay Mar 15, 2022
c4efa52
Linting
kegsay Mar 15, 2022
ff43afc
Fix crash when opts is undefined
kegsay Mar 15, 2022
d327129
Fix up docs to make CI happy
kegsay Mar 16, 2022
b6318e9
Merge branch 'develop' into kegan/sync-v3
kegsay Mar 16, 2022
633979b
Remove all listeners when stop()d to allow for GC
kegsay Mar 17, 2022
149e3d5
Merge branch 'develop' into kegan/sync-v3
kegsay Mar 17, 2022
a1a8a29
Add support for extensions
kegsay Mar 17, 2022
bb2025f
Add ExtensionE2EE automatically if opts.crypto is present
kegsay Mar 17, 2022
4b82e68
Add ExtensionToDevice automatically
kegsay Mar 17, 2022
3320a6f
Bugfixes for to_device message processing
kegsay Mar 17, 2022
5526d7e
default events to []
kegsay Mar 17, 2022
40e51cb
bugfix: don't tightloop when the server is down
kegsay Mar 18, 2022
e97bef5
Return null for bad index positions
kegsay Mar 18, 2022
a8b24d9
Add getListData to get the initial calculated list response
kegsay Mar 21, 2022
c162525
Add is_tombstoned
kegsay Mar 22, 2022
133f50e
More comments
kegsay Mar 22, 2022
644bd47
Add support for account data extension; rejig extension interface
kegsay Mar 25, 2022
398ebff
Handle invite_state
kegsay Mar 29, 2022
425970b
Feed through prev_batch tokens
kegsay Mar 31, 2022
9a3d040
Linting
kegsay Apr 14, 2022
9f646a0
Fix tests
kegsay Apr 14, 2022
5981b10
Linting
kegsay Apr 14, 2022
77471ac
Merge branch 'develop' into kegan/sync-v3
kegsay Apr 14, 2022
b150918
Merge branch 'develop' into kegan/sync-v3
kegsay Apr 14, 2022
529c2e4
Iterate PR
t3chguy Jun 9, 2022
484eebe
Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into ke…
t3chguy Jun 9, 2022
b6662a8
Iterate tests and remove unused code
t3chguy Jun 9, 2022
f806685
Update matrix-mock-request
t3chguy Jun 9, 2022
25c4868
Make tests happier
t3chguy Jun 9, 2022
89dc1b9
Remove DEBUG/debuglog and use logger.debug
kegsay Jun 13, 2022
e2e7133
Update the API to the latest MSC; fixup tests
kegsay Jun 14, 2022
26159ba
Merge branch 'develop' into kegan/sync-v3
kegsay Jun 15, 2022
9ac039c
Use undefined not null to make it work with the latest changes
kegsay Jun 15, 2022
d334ab9
Don't recreate rooms when initial: true
kegsay Jun 16, 2022
0eaac42
Add defensive code when unsigned.transaction_id is missing
kegsay Jun 16, 2022
775ee4b
Linting
kegsay Jun 16, 2022
f81c729
Add additional sliding sync tests
kegsay Jun 16, 2022
78b7f86
Begin adding SlidingSyncSdk tests
kegsay Jun 16, 2022
a633549
Linting
kegsay Jun 16, 2022
97dce42
Add more sliding sync sdk tests
kegsay Jun 16, 2022
fe44ea2
Prep work for extension tests
kegsay Jun 16, 2022
048bade
Linting
kegsay Jun 16, 2022
b70e19d
Add account data extension tests
kegsay Jun 17, 2022
ba93891
add to-device tests
kegsay Jun 17, 2022
671c4c8
Add E2EE extension tests
kegsay Jun 17, 2022
cefa011
Code smell fixes and extra tests
kegsay Jun 17, 2022
e386253
Add test for no-txn-id local echo
kegsay Jun 17, 2022
c8738d2
Add tests for resolveProfilesToInvites
kegsay Jun 17, 2022
b9ae284
Add tests for moving entries down as well as up the list
kegsay Jun 17, 2022
c37ceda
Remove conn-management.ts
kegsay Jul 8, 2022
118bbaa
Actually verify the event was removed from the txn map
kegsay Jul 8, 2022
fefe070
Handle the case when /sync returns before /send without a txn_id
kegsay Jul 8, 2022
305a489
Linting
kegsay Jul 8, 2022
f088fac
Merge branch 'develop' into kegan/sync-v3
kegsay Jul 8, 2022
89b0300
Merge branch 'develop' into kegan/sync-v3
t3chguy Jul 12, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"jest-localstorage-mock": "^2.4.6",
"jest-sonar-reporter": "^2.0.0",
"jsdoc": "^3.6.6",
"matrix-mock-request": "^2.0.1",
"matrix-mock-request": "^2.1.0",
"rimraf": "^3.0.2",
"terser": "^5.5.1",
"tsify": "^5.0.2",
Expand Down
732 changes: 732 additions & 0 deletions spec/integ/sliding-sync-sdk.spec.ts

Large diffs are not rendered by default.

Loading