Commit Graph

  • d151ac49f2 Mark events which fail to send. Kegan Dougal 2015-06-18 09:32:04 +01:00
  • d74a71cc2d linting and update README. Kegan Dougal 2015-06-17 17:47:57 +01:00
  • 8e6eb35dfe Implement local echo. Kegan Dougal 2015-06-17 17:42:12 +01:00
  • ee4d66024a Update changelog Kegan Dougal 2015-06-15 10:20:54 +01:00
  • f77e8e3bf7 Add User.events.presence property for storing the m.presence event for a user. Kegan Dougal 2015-06-15 10:20:04 +01:00
  • 94931cdc07 Remove broken function; add RoomMember.events.member property. Kegan Dougal 2015-06-15 09:49:54 +01:00
  • c6b11fc382 Make Room.calculateRoomName private to avoid confusion with Room.name. Kegan Dougal 2015-06-15 09:31:46 +01:00
  • 4316a22913 Bump to 0.1.0 - Generate browser (min) version v0.1.0 Kegan Dougal 2015-06-12 17:17:39 +01:00
  • ae9e68d9b2 Add a "what this sdk does" section Kegsay 2015-06-12 17:12:53 +01:00
  • 9dfb5b72b8 NPM hates RST. Convert README to Markdown. Kegsay 2015-06-12 16:52:02 +01:00
  • 3dc6bf3647 Update README with example output Kegsay 2015-06-12 16:33:04 +01:00
  • 7a96637a1b Example app: Print timestamps and all state events. Kegan Dougal 2015-06-12 16:26:44 +01:00
  • 7a02c5d167 Add concept of 'sentinel' RoomMembers which watch state at a particular point in time. Kegan Dougal 2015-06-12 15:38:02 +01:00
  • 8a844d59ec Get historical display names working on messages. Kegan Dougal 2015-06-12 14:21:24 +01:00
  • 3061b95afe Add getPrevContent function and mark it's situational presence. Kegan Dougal 2015-06-12 11:26:33 +01:00
  • 71dacb14b1 Add MatrixEvent.sender and .target to pull the right name per message. Kegan Dougal 2015-06-12 11:05:57 +01:00
  • da7b31cb7e Add Room.getJoinedMembers helper. UX tweaks to example. Kegan Dougal 2015-06-12 10:49:13 +01:00
  • 8c5c7cc961 Make examples/node/app an actual app rather than the usage example. Kegan Dougal 2015-06-12 10:33:45 +01:00
  • 1fed4def69 Merge pull request #8 from matrix-org/event-emitter Kegsay 2015-06-11 18:18:54 +01:00
  • 9be3b2757a Fix formatting. Kegan Dougal 2015-06-11 17:59:10 +01:00
  • afee001de7 Add fleshed out example Kegan Dougal 2015-06-11 17:58:24 +01:00
  • 8aefad221a Add client.getRooms. Add 'syncComplete' event. Display room invites. Kegan Dougal 2015-06-11 17:52:52 +01:00
  • 4db752feb3 Add another example Kegsay 2015-06-11 16:54:02 +01:00
  • 61f107f6f9 Hide the data store from the end-user. Proxy calls to getRoom. Kegan Dougal 2015-06-11 16:36:30 +01:00
  • 8e45d6b625 Bug fixes on initialSync and RoomMember.userId. Kegan Dougal 2015-06-11 16:28:25 +01:00
  • 13bb1b2ebf Add some examples Kegsay 2015-06-11 16:27:51 +01:00
  • fee15ce50f Mention v2 alpha Kegsay 2015-06-11 15:55:09 +01:00
  • d6cfcfbf6c Add syntax highlighting; Add conventions section. Kegsay 2015-06-11 15:41:04 +01:00
  • 19a5b99dea Add RoomMember and RoomState event emissions with UTs. Hook everything up. Kegan Dougal 2015-06-11 14:29:32 +01:00
  • 911ca1d5c5 Implement Room event emissions with UTs. Kegan Dougal 2015-06-11 13:22:21 +01:00
  • 4c3e56ad4c Add test for event emitting. Fix reEmit function. Kegan Dougal 2015-06-11 11:58:31 +01:00
  • eaa02cd2ad Add utils.inherits. Make User inherit EventEmitter. Kegan Dougal 2015-06-11 11:37:43 +01:00
  • c737068fe7 Don't fire events in the constructor; you can't listen for them. Kegan Dougal 2015-06-11 11:12:31 +01:00
  • 07f77c495b Move event jsdoc to respective classes. Document which functions fire. Kegan Dougal 2015-06-11 10:54:25 +01:00
  • 8a21e05f56 Specify the right key name when replacing index.js for browserify. Kegan Dougal 2015-06-10 17:48:06 +01:00
  • 58cbd3ab1b Move RoomMember event jsdocs to the room-member module. Kegan Dougal 2015-06-10 17:25:34 +01:00
  • fc2c6f403d Re-add power-level/typing UTs as RoomMember tests. Kegan Dougal 2015-06-10 17:19:56 +01:00
  • 5cf29ae1b1 Make RoomMember set its own properties, not RoomState. Kegan Dougal 2015-06-10 17:06:28 +01:00
  • b2620507fa Remove startClient(callback); Emit 'syncError' and 'event'. Kegan Dougal 2015-06-10 16:19:38 +01:00
  • 583e71180b Add JSDoc for all the events which the SDK will emit. Kegan Dougal 2015-06-10 14:42:40 +01:00
  • d2fcdd4556 Add jsdoc for EventEmitter. Kegan Dougal 2015-06-10 13:02:32 +01:00
  • 35f269ea52 Make internal MatrixClient methods actually internal. Kegan Dougal 2015-06-10 11:14:34 +01:00
  • d64382cd4f Make MatrixClient inherit from EventEmitter. Add jsdoc to all functions. Kegan Dougal 2015-06-10 11:01:29 +01:00
  • f9f8816b7d Return '?' instead of 'Unknown' for rooms which names cannot be calculated. Kegan Dougal 2015-06-10 09:44:53 +01:00
  • 44e3b55975 Appease linters. Kegan Dougal 2015-06-09 17:06:40 +01:00
  • 4ff6ecd58c Add room name UTs and add self-chat room name. Kegan Dougal 2015-06-09 17:05:56 +01:00
  • fd2bd4784d Fix linters Kegan Dougal 2015-06-09 16:08:14 +01:00
  • 13462ad1aa Add more Room and RoomState unit tests. Kegan Dougal 2015-06-09 16:07:44 +01:00
  • a0bd25a6d2 Handle power levels and update RoomMember properties. Kegan Dougal 2015-06-09 15:23:04 +01:00
  • 327a1674aa Add missing user field to RoomMember. Kegan Dougal 2015-06-09 11:25:10 +01:00
  • f086bcca4c Add User class. Convert store to store/get User objects. Kegan Dougal 2015-06-09 10:55:26 +01:00
  • 2fb68cfed2 Handle m.typing events. Kegan Dougal 2015-06-09 10:27:37 +01:00
  • 7d2dc07c3f Remove lying info. Kegsay 2015-06-08 17:48:59 +01:00
  • 8d2f058d3d Appease linters Kegan Dougal 2015-06-08 17:31:53 +01:00
  • a43447b00e Add tests to exercise room name / timeline logic; fix some bugs as a result. Kegan Dougal 2015-06-08 17:27:10 +01:00
  • 2d00998b61 Move getFriendlyRoomName to Room. Add recalculate() function to cache info. Kegan Dougal 2015-06-08 16:10:23 +01:00
  • 9fa7fa0487 Shuffle around how events are stored. Kegan Dougal 2015-06-08 15:43:18 +01:00
  • c73881f3fe Use utils.keys rather than Object.keys for older browsers. Kegan Dougal 2015-06-08 12:22:23 +01:00
  • a2257aeb0b Move getFriendlyDisplayName to RoomMember class. Add more utlity functions. Kegan Dougal 2015-06-08 12:21:23 +01:00
  • 7ce3a781f3 Add Room, RoomState and RoomMember classes. Kegan Dougal 2015-06-08 11:47:15 +01:00
  • e48eb5a9ed Use the right glob expression Kegan Dougal 2015-06-08 10:53:31 +01:00
  • 86ca88a71d Tweak coverage include fileset to not include spec files. Kegan Dougal 2015-06-08 10:50:58 +01:00
  • 65453f8359 Update browser readme; ignore jsdoc/coverage folders. Kegan Dougal 2015-06-08 10:43:00 +01:00
  • 5013a3bd3d Add lint command Kegan Dougal 2015-06-08 10:38:30 +01:00
  • 9df62b89ca Add info on running tests/linters Kegsay 2015-06-08 10:38:17 +01:00
  • 8d8efd037b Appease linters. Kegan Dougal 2015-06-08 10:32:20 +01:00
  • fd8a754ef7 Add code coverage. Kegan Dougal 2015-06-08 10:29:07 +01:00
  • c4aeac31c1 Fix tests; add logs and use promises when flushing. Kegan Dougal 2015-06-08 10:17:24 +01:00
  • 4ccb6a026a Merge pull request #7 from matrix-org/testing-setup Kegsay 2015-06-08 09:49:38 +01:00
  • 9ee386db88 Merge branch 'develop' into testing-setup Kegan Dougal 2015-06-08 09:49:15 +01:00
  • 6f2930cadb Merge pull request #6 from matrix-org/arch-changes Kegsay 2015-06-08 09:43:11 +01:00
  • bf1a9f83e6 Appease closure linter. Kegan Dougal 2015-06-05 17:45:56 +01:00
  • be6ab91ab5 Add docs for mock-request.HttpBackend to make it less magical. Kegan Dougal 2015-06-05 17:42:49 +01:00
  • 3d90942e9b Appease jshint Kegan Dougal 2015-06-05 17:36:15 +01:00
  • 0d25fbcbe7 Add MatrixClient.startClient tests using Jasmine. Kegan Dougal 2015-06-05 17:32:50 +01:00
  • 6f4b600c0b Appease closure linter. Kegan Dougal 2015-06-05 14:54:06 +01:00
  • 735eefcb6d Bug fixes in data store. Kegan Dougal 2015-06-05 14:51:10 +01:00
  • f27c7f203d Document the deal with the request function. Kegan Dougal 2015-06-05 14:29:25 +01:00
  • 7ed92fd4f9 More jsdoc Kegan Dougal 2015-06-05 14:03:00 +01:00
  • 02064bac8a Recombine initialSync/event high-level logic with HTTP API calls. Kegan Dougal 2015-06-05 13:30:11 +01:00
  • 300568ef70 Add ability for power users to access the response headers/status code if they desire. Kegan Dougal 2015-06-05 11:54:27 +01:00
  • d095eff1a4 Bake in support for promises. Kegan Dougal 2015-06-05 11:41:26 +01:00
  • fce4d5d1d6 Add MatrixError class. More jsdoc voodoo to get things looking right. Kegan Dougal 2015-06-05 11:28:28 +01:00
  • 5681517a30 Setup jsdoc typedefs for callback/promise. Kegan Dougal 2015-06-05 10:19:52 +01:00
  • 051f3c42b7 Add more jsdoc. Kegan Dougal 2015-06-04 17:08:40 +01:00
  • 35052e9f13 Add jshint as build step. Add dist/README Kegan Dougal 2015-06-04 16:42:49 +01:00
  • 7ab3e25218 Add @module docs. Remove browser-build.sh Kegan Dougal 2015-06-04 16:34:00 +01:00
  • 31ffdf8a37 Style checks and more jsdoc. Kegan Dougal 2015-06-04 16:02:08 +01:00
  • a95f9d3717 Make MatrixHttpApi a generic API interface; move specifics to MatrixClient. Kegan Dougal 2015-06-04 15:39:36 +01:00
  • d1e51de7ec Split out matrix.js into different files. Glue things back. Kegan Dougal 2015-06-03 17:55:12 +01:00
  • 12ea5b6a39 Add badge Kegsay 2015-06-03 16:39:32 +01:00
  • da531a95b8 Also remove request dep on examples/node, since the 'matrix-js-sdk' import automatically pulls in the 'request' module. Kegan Dougal 2015-06-03 16:25:19 +01:00
  • bd202b3193 Remove browser-request dep from examples/browser. Kegan Dougal 2015-06-03 16:22:04 +01:00
  • 5a16986014 Add missing jsdoc. Kegan Dougal 2015-06-03 16:18:22 +01:00
  • 3dad5ad913 Update README to mention new build process Kegsay 2015-06-03 16:10:01 +01:00
  • 9b4ba0afe8 Redo build process for browsers and node. Update examples. Kegan Dougal 2015-06-03 15:51:48 +01:00
  • 8d294211c3 Add brower-build script to run the SDK through browserify. Kegan Dougal 2015-06-03 15:16:15 +01:00
  • bdaad5b940 Fix up stylistic warnings. Kegan Dougal 2015-06-03 10:37:41 +01:00
  • 67931f05ce Fix up jshint warnings. Kegan Dougal 2015-06-03 10:26:12 +01:00
  • 8d1406746a Add jshint config file. Kegan Dougal 2015-06-03 10:08:31 +01:00