mirror of https://github.com/vector-im/riot-web
Merge remote-tracking branch 'upstream/develop' into hs/upload-limits
commit
fcce61bf14
129
CHANGELOG.md
129
CHANGELOG.md
|
@ -1,3 +1,132 @@
|
||||||
|
Changes in [0.14.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v0.14.0) (2018-10-16)
|
||||||
|
=====================================================================================================
|
||||||
|
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v0.14.0-rc.1...v0.14.0)
|
||||||
|
|
||||||
|
* Phased rollout of lazy loading
|
||||||
|
[\#2218](https://github.com/matrix-org/matrix-react-sdk/pull/2218)
|
||||||
|
|
||||||
|
Changes in [0.14.0-rc.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v0.14.0-rc.1) (2018-10-11)
|
||||||
|
===============================================================================================================
|
||||||
|
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v0.13.6...v0.14.0-rc.1)
|
||||||
|
|
||||||
|
* turn LL on by default!
|
||||||
|
[\#2209](https://github.com/matrix-org/matrix-react-sdk/pull/2209)
|
||||||
|
* Update from Weblate.
|
||||||
|
[\#2207](https://github.com/matrix-org/matrix-react-sdk/pull/2207)
|
||||||
|
* Fix quote post slate update
|
||||||
|
[\#2206](https://github.com/matrix-org/matrix-react-sdk/pull/2206)
|
||||||
|
* Handle InvalidStoreError from js-sdk
|
||||||
|
[\#2205](https://github.com/matrix-org/matrix-react-sdk/pull/2205)
|
||||||
|
* Fall back to default avatar in RR when member isn't loaded yet
|
||||||
|
[\#2204](https://github.com/matrix-org/matrix-react-sdk/pull/2204)
|
||||||
|
* Update to new version of slate
|
||||||
|
[\#2202](https://github.com/matrix-org/matrix-react-sdk/pull/2202)
|
||||||
|
* Update karma to webpack 4
|
||||||
|
[\#2203](https://github.com/matrix-org/matrix-react-sdk/pull/2203)
|
||||||
|
* More accessible buttons - take 2
|
||||||
|
[\#2194](https://github.com/matrix-org/matrix-react-sdk/pull/2194)
|
||||||
|
* log correct error code when opening log idb
|
||||||
|
[\#2200](https://github.com/matrix-org/matrix-react-sdk/pull/2200)
|
||||||
|
* show warning when LL is disabled but was enabled before
|
||||||
|
[\#2201](https://github.com/matrix-org/matrix-react-sdk/pull/2201)
|
||||||
|
* Fall back to another store if indexeddb start fails
|
||||||
|
[\#2195](https://github.com/matrix-org/matrix-react-sdk/pull/2195)
|
||||||
|
* Silence bluebird warnings
|
||||||
|
[\#2198](https://github.com/matrix-org/matrix-react-sdk/pull/2198)
|
||||||
|
* Use createObjectURL instead of readAsDataURL for videos
|
||||||
|
[\#2197](https://github.com/matrix-org/matrix-react-sdk/pull/2197)
|
||||||
|
* Revert "Use createObjectURL instead of readAsDataURL for videos"
|
||||||
|
[\#2196](https://github.com/matrix-org/matrix-react-sdk/pull/2196)
|
||||||
|
* Track how far the user travels before dismissing their user settings
|
||||||
|
[\#2183](https://github.com/matrix-org/matrix-react-sdk/pull/2183)
|
||||||
|
* Drop (IRC) suffix hacks
|
||||||
|
[\#2193](https://github.com/matrix-org/matrix-react-sdk/pull/2193)
|
||||||
|
* Use createObjectURL instead of readAsDataURL for videos
|
||||||
|
[\#2176](https://github.com/matrix-org/matrix-react-sdk/pull/2176)
|
||||||
|
* Remove old migration code
|
||||||
|
[\#2192](https://github.com/matrix-org/matrix-react-sdk/pull/2192)
|
||||||
|
* Fix brace style in TextForEvent.js
|
||||||
|
[\#2191](https://github.com/matrix-org/matrix-react-sdk/pull/2191)
|
||||||
|
* Fix error logging
|
||||||
|
[\#2190](https://github.com/matrix-org/matrix-react-sdk/pull/2190)
|
||||||
|
* Fix Promise.defer warning in ScalarAuthClient.js
|
||||||
|
[\#2188](https://github.com/matrix-org/matrix-react-sdk/pull/2188)
|
||||||
|
* Communicate early that a 3pid is required during registration if needed
|
||||||
|
[\#2180](https://github.com/matrix-org/matrix-react-sdk/pull/2180)
|
||||||
|
* try to encourage people to attach logs to bugs
|
||||||
|
[\#2185](https://github.com/matrix-org/matrix-react-sdk/pull/2185)
|
||||||
|
* Show the 'homeserver unavailable' warning when the first sync fails
|
||||||
|
[\#2182](https://github.com/matrix-org/matrix-react-sdk/pull/2182)
|
||||||
|
* allow passing initial is_url like hs_url in query params
|
||||||
|
[\#2083](https://github.com/matrix-org/matrix-react-sdk/pull/2083)
|
||||||
|
* Update karma
|
||||||
|
[\#2177](https://github.com/matrix-org/matrix-react-sdk/pull/2177)
|
||||||
|
* fudge hangup reasons
|
||||||
|
[\#2184](https://github.com/matrix-org/matrix-react-sdk/pull/2184)
|
||||||
|
* Provide more helpful errors when i18n generation fails
|
||||||
|
[\#2181](https://github.com/matrix-org/matrix-react-sdk/pull/2181)
|
||||||
|
|
||||||
|
Changes in [0.14.0-rc.1](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v0.14.0-rc.1) (2018-10-11)
|
||||||
|
===============================================================================================================
|
||||||
|
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v0.13.6...v0.14.0-rc.1)
|
||||||
|
|
||||||
|
* turn LL on by default!
|
||||||
|
[\#2209](https://github.com/matrix-org/matrix-react-sdk/pull/2209)
|
||||||
|
* Update from Weblate.
|
||||||
|
[\#2207](https://github.com/matrix-org/matrix-react-sdk/pull/2207)
|
||||||
|
* Fix quote post slate update
|
||||||
|
[\#2206](https://github.com/matrix-org/matrix-react-sdk/pull/2206)
|
||||||
|
* Handle InvalidStoreError from js-sdk
|
||||||
|
[\#2205](https://github.com/matrix-org/matrix-react-sdk/pull/2205)
|
||||||
|
* Fall back to default avatar in RR when member isn't loaded yet
|
||||||
|
[\#2204](https://github.com/matrix-org/matrix-react-sdk/pull/2204)
|
||||||
|
* Update to new version of slate
|
||||||
|
[\#2202](https://github.com/matrix-org/matrix-react-sdk/pull/2202)
|
||||||
|
* Update karma to webpack 4
|
||||||
|
[\#2203](https://github.com/matrix-org/matrix-react-sdk/pull/2203)
|
||||||
|
* More accessible buttons - take 2
|
||||||
|
[\#2194](https://github.com/matrix-org/matrix-react-sdk/pull/2194)
|
||||||
|
* log correct error code when opening log idb
|
||||||
|
[\#2200](https://github.com/matrix-org/matrix-react-sdk/pull/2200)
|
||||||
|
* show warning when LL is disabled but was enabled before
|
||||||
|
[\#2201](https://github.com/matrix-org/matrix-react-sdk/pull/2201)
|
||||||
|
* Fall back to another store if indexeddb start fails
|
||||||
|
[\#2195](https://github.com/matrix-org/matrix-react-sdk/pull/2195)
|
||||||
|
* Silence bluebird warnings
|
||||||
|
[\#2198](https://github.com/matrix-org/matrix-react-sdk/pull/2198)
|
||||||
|
* Use createObjectURL instead of readAsDataURL for videos
|
||||||
|
[\#2197](https://github.com/matrix-org/matrix-react-sdk/pull/2197)
|
||||||
|
* Revert "Use createObjectURL instead of readAsDataURL for videos"
|
||||||
|
[\#2196](https://github.com/matrix-org/matrix-react-sdk/pull/2196)
|
||||||
|
* Track how far the user travels before dismissing their user settings
|
||||||
|
[\#2183](https://github.com/matrix-org/matrix-react-sdk/pull/2183)
|
||||||
|
* Drop (IRC) suffix hacks
|
||||||
|
[\#2193](https://github.com/matrix-org/matrix-react-sdk/pull/2193)
|
||||||
|
* Use createObjectURL instead of readAsDataURL for videos
|
||||||
|
[\#2176](https://github.com/matrix-org/matrix-react-sdk/pull/2176)
|
||||||
|
* Remove old migration code
|
||||||
|
[\#2192](https://github.com/matrix-org/matrix-react-sdk/pull/2192)
|
||||||
|
* Fix brace style in TextForEvent.js
|
||||||
|
[\#2191](https://github.com/matrix-org/matrix-react-sdk/pull/2191)
|
||||||
|
* Fix error logging
|
||||||
|
[\#2190](https://github.com/matrix-org/matrix-react-sdk/pull/2190)
|
||||||
|
* Fix Promise.defer warning in ScalarAuthClient.js
|
||||||
|
[\#2188](https://github.com/matrix-org/matrix-react-sdk/pull/2188)
|
||||||
|
* Communicate early that a 3pid is required during registration if needed
|
||||||
|
[\#2180](https://github.com/matrix-org/matrix-react-sdk/pull/2180)
|
||||||
|
* try to encourage people to attach logs to bugs
|
||||||
|
[\#2185](https://github.com/matrix-org/matrix-react-sdk/pull/2185)
|
||||||
|
* Show the 'homeserver unavailable' warning when the first sync fails
|
||||||
|
[\#2182](https://github.com/matrix-org/matrix-react-sdk/pull/2182)
|
||||||
|
* allow passing initial is_url like hs_url in query params
|
||||||
|
[\#2083](https://github.com/matrix-org/matrix-react-sdk/pull/2083)
|
||||||
|
* Update karma
|
||||||
|
[\#2177](https://github.com/matrix-org/matrix-react-sdk/pull/2177)
|
||||||
|
* fudge hangup reasons
|
||||||
|
[\#2184](https://github.com/matrix-org/matrix-react-sdk/pull/2184)
|
||||||
|
* Provide more helpful errors when i18n generation fails
|
||||||
|
[\#2181](https://github.com/matrix-org/matrix-react-sdk/pull/2181)
|
||||||
|
|
||||||
Changes in [0.13.6](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v0.13.6) (2018-10-08)
|
Changes in [0.13.6](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v0.13.6) (2018-10-08)
|
||||||
=====================================================================================================
|
=====================================================================================================
|
||||||
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v0.13.5...v0.13.6)
|
[Full Changelog](https://github.com/matrix-org/matrix-react-sdk/compare/v0.13.5...v0.13.6)
|
||||||
|
|
14
package.json
14
package.json
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "matrix-react-sdk",
|
"name": "matrix-react-sdk",
|
||||||
"version": "0.13.6",
|
"version": "0.14.0",
|
||||||
"description": "SDK for matrix.org using React",
|
"description": "SDK for matrix.org using React",
|
||||||
"author": "matrix.org",
|
"author": "matrix.org",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -67,15 +67,15 @@
|
||||||
"flux": "2.1.1",
|
"flux": "2.1.1",
|
||||||
"focus-trap-react": "^3.0.5",
|
"focus-trap-react": "^3.0.5",
|
||||||
"fuse.js": "^2.2.0",
|
"fuse.js": "^2.2.0",
|
||||||
"gemini-scrollbar": "matrix-org/gemini-scrollbar#b302279",
|
"gemini-scrollbar": "github:matrix-org/gemini-scrollbar#b302279",
|
||||||
"gfm.css": "^1.1.1",
|
"gfm.css": "^1.1.1",
|
||||||
"glob": "^5.0.14",
|
"glob": "^5.0.14",
|
||||||
"highlight.js": "^9.0.0",
|
"highlight.js": "^9.13.0",
|
||||||
"isomorphic-fetch": "^2.2.1",
|
"isomorphic-fetch": "^2.2.1",
|
||||||
"linkifyjs": "^2.1.6",
|
"linkifyjs": "^2.1.6",
|
||||||
"lodash": "^4.13.1",
|
"lodash": "^4.13.1",
|
||||||
"lolex": "2.3.2",
|
"lolex": "2.3.2",
|
||||||
"matrix-js-sdk": "0.11.1",
|
"matrix-js-sdk": "matrix-org/matrix-js-sdk#develop",
|
||||||
"optimist": "^0.6.1",
|
"optimist": "^0.6.1",
|
||||||
"pako": "^1.0.5",
|
"pako": "^1.0.5",
|
||||||
"prop-types": "^15.5.8",
|
"prop-types": "^15.5.8",
|
||||||
|
@ -85,16 +85,16 @@
|
||||||
"react-addons-css-transition-group": "15.3.2",
|
"react-addons-css-transition-group": "15.3.2",
|
||||||
"react-beautiful-dnd": "^4.0.1",
|
"react-beautiful-dnd": "^4.0.1",
|
||||||
"react-dom": "^15.6.0",
|
"react-dom": "^15.6.0",
|
||||||
"react-gemini-scrollbar": "matrix-org/react-gemini-scrollbar#5e97aef",
|
"react-gemini-scrollbar": "github:matrix-org/react-gemini-scrollbar#5e97aef",
|
||||||
"resize-observer-polyfill": "^1.5.0",
|
"resize-observer-polyfill": "^1.5.0",
|
||||||
"sanitize-html": "^1.18.4",
|
"sanitize-html": "^1.18.4",
|
||||||
"slate": "^0.41.2",
|
"slate": "^0.41.2",
|
||||||
"slate-html-serializer": "^0.6.1",
|
"slate-html-serializer": "^0.6.1",
|
||||||
"slate-md-serializer": "matrix-org/slate-md-serializer#f7c4ad3",
|
"slate-md-serializer": "github:matrix-org/slate-md-serializer#f7c4ad3",
|
||||||
"slate-react": "^0.18.10",
|
"slate-react": "^0.18.10",
|
||||||
"text-encoding-utf-8": "^1.0.1",
|
"text-encoding-utf-8": "^1.0.1",
|
||||||
"url": "^0.11.0",
|
"url": "^0.11.0",
|
||||||
"velocity-vector": "vector-im/velocity#059e3b2",
|
"velocity-vector": "github:vector-im/velocity#059e3b2",
|
||||||
"whatwg-fetch": "^1.1.1"
|
"whatwg-fetch": "^1.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -241,20 +241,27 @@ class IndexedDBLogStore {
|
||||||
|
|
||||||
// Returns: a string representing the concatenated logs for this ID.
|
// Returns: a string representing the concatenated logs for this ID.
|
||||||
function fetchLogs(id) {
|
function fetchLogs(id) {
|
||||||
const o = db.transaction("logs", "readonly").objectStore("logs");
|
const objectStore = db.transaction("logs", "readonly").objectStore("logs");
|
||||||
return selectQuery(o.index("id"), IDBKeyRange.only(id),
|
|
||||||
(cursor) => {
|
return new Promise((resolve, reject) => {
|
||||||
return {
|
const query = objectStore.index("id").openCursor(IDBKeyRange.only(id), 'next');
|
||||||
lines: cursor.value.lines,
|
let lines = '';
|
||||||
index: cursor.value.index,
|
query.onerror = (event) => {
|
||||||
|
reject(new Error("Query failed: " + event.target.errorCode));
|
||||||
|
};
|
||||||
|
query.onsuccess = (event) => {
|
||||||
|
const cursor = event.target.result;
|
||||||
|
if (!cursor) {
|
||||||
|
resolve(lines);
|
||||||
|
return; // end of results
|
||||||
|
}
|
||||||
|
lines += cursor.value.lines;
|
||||||
|
if (lines.length >= MAX_LOG_SIZE) {
|
||||||
|
resolve(lines);
|
||||||
|
} else {
|
||||||
|
cursor.continue();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}).then((linesArray) => {
|
|
||||||
// We have been storing logs periodically, so string them all
|
|
||||||
// together *in order of index* now
|
|
||||||
linesArray.sort((a, b) => {
|
|
||||||
return a.index - b.index;
|
|
||||||
});
|
|
||||||
return linesArray.map((l) => l.lines).join("");
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -322,9 +329,6 @@ class IndexedDBLogStore {
|
||||||
if (i > 0 && size + lines.length > MAX_LOG_SIZE) {
|
if (i > 0 && size + lines.length > MAX_LOG_SIZE) {
|
||||||
// the remaining log IDs should be removed. If we go out of
|
// the remaining log IDs should be removed. If we go out of
|
||||||
// bounds this is just []
|
// bounds this is just []
|
||||||
//
|
|
||||||
// XXX: there's nothing stopping the current session exceeding
|
|
||||||
// MAX_LOG_SIZE. We ought to think about culling it.
|
|
||||||
removeLogIds = allLogIds.slice(i + 1);
|
removeLogIds = allLogIds.slice(i + 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue