1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-29 16:43:09 +03:00
Commit Graph

719 Commits

Author SHA1 Message Date
Kegan Dougal
0d25fbcbe7 Add MatrixClient.startClient tests using Jasmine. 2015-06-05 17:32:50 +01:00
Kegan Dougal
6f4b600c0b Appease closure linter. 2015-06-05 14:54:06 +01:00
Kegan Dougal
735eefcb6d Bug fixes in data store. 2015-06-05 14:51:10 +01:00
Kegan Dougal
f27c7f203d Document the deal with the request function. 2015-06-05 14:29:25 +01:00
Kegan Dougal
7ed92fd4f9 More jsdoc 2015-06-05 14:03:00 +01:00
Kegan Dougal
02064bac8a Recombine initialSync/event high-level logic with HTTP API calls. 2015-06-05 13:30:11 +01:00
Kegan Dougal
300568ef70 Add ability for power users to access the response headers/status code if they desire. 2015-06-05 11:54:27 +01:00
Kegan Dougal
d095eff1a4 Bake in support for promises.
This means we can specify the SDK's dependency on Q to make setting things up
significantly easier.
2015-06-05 11:41:26 +01:00
Kegan Dougal
fce4d5d1d6 Add MatrixError class. More jsdoc voodoo to get things looking right. 2015-06-05 11:28:28 +01:00
Kegan Dougal
5681517a30 Setup jsdoc typedefs for callback/promise. 2015-06-05 10:19:52 +01:00
Kegan Dougal
051f3c42b7 Add more jsdoc. 2015-06-04 17:08:40 +01:00
Kegan Dougal
35052e9f13 Add jshint as build step. Add dist/README 2015-06-04 16:42:49 +01:00
Kegan Dougal
7ab3e25218 Add @module docs. Remove browser-build.sh
Add @links for HTML output. Replace browser-build.sh with inline commands
in package.json so building will work on non-unix machines. Update README.
2015-06-04 16:34:00 +01:00
Kegan Dougal
31ffdf8a37 Style checks and more jsdoc. 2015-06-04 16:02:08 +01:00
Kegan Dougal
a95f9d3717 Make MatrixHttpApi a generic API interface; move specifics to MatrixClient.
Add a utils file to store common operations like map() and encodeParams().
Modify MatrixClient and MatrixHttpApi to accepts opts as constructors.
2015-06-04 15:39:36 +01:00
Kegan Dougal
d1e51de7ec Split out matrix.js into different files. Glue things back.
Added a models directory. Added store, http-api and client files. Slowly
transitioning to the architecture outlined in SYJS-5.
2015-06-03 17:55:12 +01:00
Kegsay
12ea5b6a39 Add badge 2015-06-03 16:39:32 +01:00
Kegan Dougal
da531a95b8 Also remove request dep on examples/node, since the 'matrix-js-sdk' import automatically pulls in the 'request' module. 2015-06-03 16:25:19 +01:00
Kegan Dougal
bd202b3193 Remove browser-request dep from examples/browser.
We no longer need this because the dist/ package includes a copy already. This
simplifies browser development a lot.
2015-06-03 16:22:04 +01:00
Kegan Dougal
5a16986014 Add missing jsdoc. 2015-06-03 16:18:30 +01:00
Kegsay
3dad5ad913 Update README to mention new build process 2015-06-03 16:10:01 +01:00
Kegan Dougal
9b4ba0afe8 Redo build process for browsers and node. Update examples.
We now rely on browserify for building browser-specific versions of the JS
SDK. This can be initiated by running 'npm run build-js'. Node versions are
unaffected.
2015-06-03 15:51:48 +01:00
Kegan Dougal
8d294211c3 Add brower-build script to run the SDK through browserify.
Add script names 'build-js' and 'watch-js' to package.json to handle releases
and development versions respectively.
2015-06-03 15:16:15 +01:00
Kegan Dougal
bdaad5b940 Fix up stylistic warnings. 2015-06-03 10:37:41 +01:00
Kegan Dougal
67931f05ce Fix up jshint warnings. 2015-06-03 10:26:12 +01:00
Kegan Dougal
8d1406746a Add jshint config file. 2015-06-03 10:08:31 +01:00
Kegsay
e61830c2b0 Merge pull request #4 from matrix-org/mxstore
Experimental data store layer to aid tracking client state
2015-06-03 09:57:02 +01:00
Matthew Hodgson
be7d6be691 todo 2015-05-26 23:23:30 +01:00
Matthew Hodgson
fe82a8631e fix getStateEvent to require an explicit stateKey 2015-05-26 23:13:41 +01:00
Matthew Hodgson
88bed0cc75 more jsdoc 2015-05-26 00:36:38 +01:00
Matthew Hodgson
e21a144313 resolve kegan's PR review feedback 2015-05-26 00:19:32 +01:00
Matthew Hodgson
1fb4e15625 fix stupid 'null' display names 2015-05-19 20:18:50 +01:00
Matthew Hodgson
5716cf3b06 update todo 2015-05-19 17:18:16 +01:00
Matthew Hodgson
9e6394d1f8 add getFriendlyDisplayName for completeness 2015-05-19 17:11:36 +01:00
Kegan Dougal
8853ad9601 Bug fixes 2015-05-12 14:29:42 +01:00
Kegan Dougal
4a7f2d2eaf Bump to 0.0.3 2015-05-12 14:24:30 +01:00
Kegan Dougal
02b29c157f Add getStateEvent API (used by IRC AS to get display names for people) 2015-05-12 14:24:05 +01:00
Matthew Hodgson
32051c319c change store API to work entirely in terms of MatrixEvents to make Mark happy 2015-04-25 23:38:37 +01:00
Matthew Hodgson
234877ddaa javascript isn't perl 2015-04-22 17:06:53 +01:00
Matthew Hodgson
8432917096 add in a useless DAO layer for events, and make it actually work 2015-04-22 01:35:57 +01:00
Matthew Hodgson
1b3ec5f0b7 initial WIP event store layer 2015-04-21 15:39:09 +01:00
Kegsay
5137ac211e Merge pull request #2 from matrix-org/csauth
add API endpoints for getting & adding 3pids
2015-04-20 14:44:36 +01:00
David Baker
d55c9976bf add API endpoints for getting & adding 3pids 2015-04-17 17:23:16 +01:00
Kegan Dougal
76ac69305e Bump version 2015-04-01 14:55:44 +01:00
Kegan Dougal
509f003862 Expose credentials to the request fn.
This allows you to attach extra parameters to requests on a client basis,
rather than globally (which can race). Particularly useful for application
services.
2015-04-01 14:54:38 +01:00
Matthew Hodgson
b2787e6397 s/matrixcs/sdk/g 2015-03-09 20:22:56 +00:00
Kegsay
e6249e4a08 Variable renaming on code snippets 2015-03-09 16:21:00 +00:00
Kegan Dougal
a912de8bfb Add usePromises() call; update README 2015-03-05 22:39:09 +00:00
Kegan Dougal
ba871cbf3e Remove console logs 2015-03-05 10:05:56 +00:00
Kegsay
e971b9b92f Usage instructions 2015-03-04 21:11:04 +00:00