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 ``