David Baker
7ffff761d5
Merge remote-tracking branch 'origin/develop' into release-v0.7.6
2017-04-07 17:01:25 +01:00
Richard van der Hoff
7d4366473d
Merge pull request #415 from matrix-org/dbkr/fix_release_script
...
Fix release script
2017-04-07 17:00:12 +01:00
David Baker
e63c660162
Fix release script
...
Publish to npm before switching to the doc branch: previously we
published from master, but since we now now longer merge
pre-releases to master, publish from the release branch (just
not the doc branch because that won't work).
2017-04-07 16:55:38 +01:00
David Baker
1762f9d68e
v0.7.6-rc.1
v0.7.6-rc.1
2017-04-07 16:44:21 +01:00
David Baker
76287eed2c
Prepare changelog for v0.7.6-rc.1
2017-04-07 16:44:20 +01:00
David Baker
5a764bbaa2
Merge pull request #414 from matrix-org/dbkr/indexeddb_save_after_first_sync
...
Make indexeddb save after the first sync
2017-04-07 16:26:03 +01:00
David Baker
ce9e69c9e0
Merge remote-tracking branch 'origin/develop' into dbkr/indexeddb_save_after_first_sync
2017-04-07 16:21:54 +01:00
David Baker
3a74e1f154
Merge remote-tracking branch 'origin/dbkr/indexeddb_webworker_dont_transfer_sync' into dbkr/indexeddb_save_after_first_sync
2017-04-07 16:21:21 +01:00
David Baker
6df4a36da9
Merge pull request #413 from matrix-org/dbkr/indexeddb_webworker_dont_transfer_sync
...
Make indexeddb startup faster
2017-04-07 16:20:44 +01:00
David Baker
4e38b51958
Merge remote-tracking branch 'origin/develop' into dbkr/indexeddb_webworker_dont_transfer_sync
2017-04-07 15:12:54 +01:00
David Baker
b6c036af25
Merge pull request #412 from matrix-org/dbkr/indexeddb_webworker
...
Add ability to do indexeddb sync work in webworker
2017-04-07 15:12:22 +01:00
David Baker
dd789a8dcc
Merge branch 'dbkr/indexeddb_webworker_dont_transfer_sync' into dbkr/indexeddb_save_after_first_sync
2017-04-07 15:10:17 +01:00
David Baker
ca83b858c0
lint
2017-04-07 15:09:42 +01:00
David Baker
0f29952a1c
Smush connect() and init() together
2017-04-07 15:06:38 +01:00
David Baker
e2d7b465ae
Merge branch 'dbkr/indexeddb_webworker' into dbkr/indexeddb_webworker_dont_transfer_sync
2017-04-07 15:01:42 +01:00
David Baker
8985dc2f7e
Update import in example
2017-04-07 14:42:26 +01:00
David Baker
cf1731792c
Add separate import file for indxexeddb worker
...
And removing it from the main one
2017-04-07 14:41:12 +01:00
David Baker
4c200cdd49
lint
2017-04-07 14:26:43 +01:00
David Baker
5c8eacddde
Remove old comment
2017-04-07 12:01:31 +01:00
David Baker
2668177210
Oops, moved the variable
2017-04-07 11:58:16 +01:00
David Baker
62be08f063
Make sure worker setup doesn't race
2017-04-07 11:55:13 +01:00
David Baker
ab2a67a012
Don't try to send Error objects
2017-04-07 11:42:18 +01:00
David Baker
3ceeee7298
Typos
2017-04-07 11:40:21 +01:00
David Baker
2d7576f29b
Doc usage of the webworker class
2017-04-07 11:37:31 +01:00
David Baker
6e25a17afb
Typos
2017-04-07 11:26:52 +01:00
David Baker
0715682a8b
Name IndexedDBStoreWorker consistently
2017-04-07 11:22:07 +01:00
David Baker
cfff30c314
Use once to clean up listener
2017-04-07 11:10:57 +01:00
David Baker
b53318ecb7
Make indexeddb save after the first sync
...
Save the sync data to indexeddb after the first catch-up
Fixes https://github.com/vector-im/riot-web/issues/3527
2017-04-06 18:48:54 +01:00
David Baker
039a3e258b
Make indexeddb startup faster
...
Don't needlessly transfer data from the worker to the main script
only to immediately transfer it right back again.
2017-04-06 18:09:12 +01:00
David Baker
18806e5524
lint
2017-04-06 16:58:13 +01:00
David Baker
0594a8d03a
Don't set the sync token when loading indexeddb
...
Setting the sync token here marks the memory store part as being
synced up to that point, but it isn't because the sync data hasn't
yet been injected into it.
The sync token will be set in the normal way when the cached sync
response is processed, at which point it will be accurate because
the cached sync data will actually have been processed by the sync
code and saved to the memory store.
2017-04-06 16:41:49 +01:00
David Baker
5a575d61b6
Comment really inefficient bit
2017-04-06 16:33:52 +01:00
David Baker
42c3cf2545
Use correct variable name
...
From https://github.com/matrix-org/matrix-js-sdk/pull/401
2017-04-06 16:09:28 +01:00
David Baker
bf6490739d
Fix tests
...
Make setSyncData return promises in a few places and fix all the
places the tests assume that /sync being flushed == the sync
result being processed.
2017-04-06 15:20:50 +01:00
David Baker
9815c0a866
Remove debug exception catching
2017-04-06 11:47:55 +01:00
David Baker
f5f05a9a91
Add ability to do indexeddb sync work in webworker
2017-04-06 11:09:11 +01:00
David Baker
b392656d60
Merge pull request #409 from matrix-org/dbkr/indexeddb_worker_localsplit
...
Move more functionality to the indexeddb backend
2017-04-06 10:58:37 +01:00
David Baker
6737d091fd
Merge pull request #410 from matrix-org/luke/fix-indicate-error-when-reconnecting
...
Indicate syncState ERROR after many failed /syncs
2017-04-05 16:07:53 +01:00
Luke Barnard
9f924c3510
Respond to code review
...
- failedSyncCount -> this._failedSyncCount
- Reset at a point which is more obviously after a successful sync, and add comments to clarify the recursive syncage.
- Sync state will now flip from RECONNECTING to ERROR after FAILED_SYNC_ERROR_THRESHOLD syncs
2017-04-05 09:40:06 +01:00
Luke Barnard
2ea66d2e81
Indicate syncState ERROR after many failed /syncs
...
when a /sync leads to an error, increase a counter and use the counter to decide which state to be in when starting keepAlives. If the count is above a certain threshold (arbitrary 3 chosen here), switch from RECONNECTING to ERROR to show that the server is facing difficulties that aren't affeting is ability to return on /versions.
2017-04-04 18:12:20 +01:00
David Baker
d18c238938
Dangling comma
2017-04-04 16:35:39 +01:00
David Baker
8c92e221a3
long line
2017-04-04 16:29:05 +01:00
David Baker
bafe9c06d4
Move more functionality to the indexeddb backend
...
Now the backend drives the sync accumulator as well. Also moves
the backend out to a separate file.
2017-04-04 16:25:58 +01:00
David Baker
cad6ec854e
Merge pull request #407 from matrix-org/dbkr/indexeddb_refactor_2
...
Further reorganising of indexeddb sync code
2017-04-04 13:13:18 +01:00
David Baker
47a0398b62
Remove other two lines
2017-04-04 10:43:57 +01:00
David Baker
11f5ae3c20
Merge remote-tracking branch 'origin/dbkr/indexeddb_hide_internals' into dbkr/indexeddb_refactor_2
2017-04-04 10:39:23 +01:00
David Baker
61cf853eb5
Merge pull request #406 from matrix-org/dbkr/indexeddb_hide_internals
...
Change interface of IndexedDBStore: hide internals
2017-04-04 10:38:43 +01:00
David Baker
f72884ac19
Spelling
2017-04-04 10:36:31 +01:00
David Baker
b72b38b0a3
Add missed methods to stub/memory store
...
and fix tests
2017-04-03 17:45:58 +01:00
David Baker
6a2465329a
Add jsdoc
2017-04-03 17:12:30 +01:00