You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Update to Olm 3
This commit is contained in:
@@ -319,13 +319,13 @@ To provide the Olm library in a browser application:
|
|||||||
|
|
||||||
To provide the Olm library in a node.js application:
|
To provide the Olm library in a node.js application:
|
||||||
|
|
||||||
* ``npm install https://matrix.org/packages/npm/olm/olm-2.2.2.tgz``
|
* ``npm install https://matrix.org/packages/npm/olm/olm-3.0.0.tgz``
|
||||||
(replace the URL with the latest version you want to use from
|
(replace the URL with the latest version you want to use from
|
||||||
https://matrix.org/packages/npm/olm/)
|
https://matrix.org/packages/npm/olm/)
|
||||||
* ``global.Olm = require('olm');`` *before* loading ``matrix-js-sdk``.
|
* ``global.Olm = require('olm');`` *before* loading ``matrix-js-sdk``.
|
||||||
|
|
||||||
If you want to package Olm as dependency for your node.js application, you
|
If you want to package Olm as dependency for your node.js application, you
|
||||||
can use ``npm install https://matrix.org/packages/npm/olm/olm-2.2.2.tgz
|
can use ``npm install https://matrix.org/packages/npm/olm/olm-3.0.0.tgz
|
||||||
--save-optional`` (if your application also works without e2e crypto enabled)
|
--save-optional`` (if your application also works without e2e crypto enabled)
|
||||||
or ``--save`` (if it doesn't) to do so.
|
or ``--save`` (if it doesn't) to do so.
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ set -ex
|
|||||||
npm run lint
|
npm run lint
|
||||||
|
|
||||||
# install Olm so that we can run the crypto tests.
|
# install Olm so that we can run the crypto tests.
|
||||||
npm install https://matrix.org/packages/npm/olm/olm-2.3.0.tgz
|
npm install https://matrix.org/packages/npm/olm/olm-3.0.0.tgz
|
||||||
|
|
||||||
npm run test
|
npm run test
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user