From 4a47867e49cdcdc65d9f0a7b0fcb11cd41d86f1b Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 4 Dec 2019 19:17:58 +0000 Subject: [PATCH] Down to two test failures --- .babelrc | 5 ----- README.md | 8 ++++---- examples/node/app.js | 18 +++++++++--------- package.json | 2 -- spec/test-utils.js | 2 -- spec/unit/matrix-client.spec.js | 1 - src/client.js | 13 ++++++------- src/crypto/algorithms/megolm.js | 1 - src/crypto/index.js | 7 +++---- src/crypto/store/localStorage-crypto-store.js | 2 -- src/crypto/store/memory-crypto-store.js | 2 -- src/models/event.js | 1 - src/utils.js | 1 - 13 files changed, 22 insertions(+), 41 deletions(-) diff --git a/.babelrc b/.babelrc index 67eaa6718..078c4973f 100644 --- a/.babelrc +++ b/.babelrc @@ -3,11 +3,6 @@ "plugins": [ "transform-class-properties", - // this transforms async functions into generator functions, which - // are then made to use the regenerator module by babel's - // transform-regnerator plugin (which is enabled by es2015). - "transform-async-to-bluebird", - // This makes sure that the regenerator runtime is available to // the transpiled code. "transform-runtime", diff --git a/README.md b/README.md index 9081598dd..f9f6029cb 100644 --- a/README.md +++ b/README.md @@ -161,7 +161,7 @@ which will be fulfilled in the future. The typical usage is something like: ```javascript - matrixClient.someMethod(arg1, arg2).done(function(result) { + matrixClient.someMethod(arg1, arg2).then(function(result) { ... }); ``` @@ -206,7 +206,7 @@ core functionality of the SDK. These examples assume the SDK is setup like this: ```javascript matrixClient.on("RoomMember.membership", function(event, member) { if (member.membership === "invite" && member.userId === myUserId) { - matrixClient.joinRoom(member.roomId).done(function() { + matrixClient.joinRoom(member.roomId).then(function() { console.log("Auto-joined %s", member.roomId); }); } @@ -297,7 +297,7 @@ End-to-end encryption support ============================= The SDK supports end-to-end encryption via the Olm and Megolm protocols, using -[libolm](https://gitlab.matrix.org/matrix-org/olm). It is left up to the +[libolm](https://gitlab.matrix.org/matrix-org/olm). It is left up to the application to make libolm available, via the ``Olm`` global. It is also necessry to call ``matrixClient.initCrypto()`` after creating a new @@ -319,7 +319,7 @@ To provide the Olm library in a browser application: * download the transpiled libolm (from https://packages.matrix.org/npm/olm/). * load ``olm.js`` as a ``