706966ffe9
This provides optional support for fetching old events via the /context API, and paginating backwards and forwards from them, eventually merging into the live timeline. To support it, events are now stored in an EventTimeline, rather than directly in an array in the Room; the old names are maintained as references for compatibility. The feature has to be enabled explicitly, otherwise it would be impossible for existing clients to back-paginate to the old events after a gappy /sync. Still TODO here: * An object which provides a window into the timelines to make them possible to use. This will be a separate PR. * Rewrite the 'EventContext' used by the searchRoomEvents API in terms of an EventTimeline - it is essentially a subset.
37 lines
1.5 KiB
JSON
37 lines
1.5 KiB
JSON
{
|
|
"name": "matrix-js-sdk",
|
|
"version": "0.3.0",
|
|
"description": "Matrix Client-Server SDK for Javascript",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"test": "istanbul cover --report cobertura --config .istanbul.yml -i \"lib/**/*.js\" jasmine-node -- spec --verbose --junitreport --forceexit --captureExceptions",
|
|
"check": "jasmine-node spec --verbose --junitreport --forceexit --captureExceptions",
|
|
"gendoc": "jsdoc -r lib -P package.json -R README.md -d .jsdoc",
|
|
"build": "jshint -c .jshint lib/ && browserify browser-index.js -o dist/browser-matrix-dev.js --ignore-missing",
|
|
"watch": "watchify browser-index.js -o dist/browser-matrix-dev.js -v",
|
|
"lint": "jshint -c .jshint lib spec && gjslint --unix_mode --disable 0131,0211,0200,0222,0212 --max_line_length 90 -r spec/ -r lib/",
|
|
"release": "npm run build && mkdir dist/$npm_package_version && uglifyjs -c -m -o dist/$npm_package_version/browser-matrix-$npm_package_version.min.js dist/browser-matrix-dev.js && cp dist/browser-matrix-dev.js dist/$npm_package_version/browser-matrix-$npm_package_version.js"
|
|
},
|
|
"repository": {
|
|
"url": "https://github.com/matrix-org/matrix-js-sdk"
|
|
},
|
|
"keywords": [
|
|
"matrix-org"
|
|
],
|
|
"browser": "browser-index.js",
|
|
"author": "matrix.org",
|
|
"license": "Apache 2.0",
|
|
"dependencies": {
|
|
"browser-request": "^0.3.3",
|
|
"browserify": "^10.2.3",
|
|
"q": "^1.4.1",
|
|
"request": "^2.53.0"
|
|
},
|
|
"devDependencies": {
|
|
"watchify": "^3.2.1",
|
|
"istanbul": "^0.3.13",
|
|
"jasmine-node": "^1.14.5",
|
|
"jshint": "^2.8.0"
|
|
}
|
|
}
|