matrix-js-sdk 14.0.1 → 15.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +62 -2
- package/dist/browser-matrix.js +612 -417
- package/dist/browser-matrix.js.map +16 -16
- package/dist/browser-matrix.min.js +3 -3
- package/dist/browser-matrix.min.js.map +1 -1
- package/git-revision.txt +1 -1
- package/lib/@types/IIdentityServerProvider.d.ts +1 -0
- package/lib/@types/IIdentityServerProvider.d.ts.map +1 -0
- package/lib/@types/PushRules.d.ts +1 -0
- package/lib/@types/PushRules.d.ts.map +1 -0
- package/lib/@types/PushRules.js +1 -1
- package/lib/@types/another-json.d.ts +1 -0
- package/lib/@types/another-json.d.ts.map +1 -0
- package/lib/@types/event.d.ts +10 -2
- package/lib/@types/event.d.ts.map +1 -0
- package/lib/@types/event.js +3 -4
- package/lib/@types/partials.d.ts +1 -0
- package/lib/@types/partials.d.ts.map +1 -0
- package/lib/@types/partials.js +1 -1
- package/lib/@types/requests.d.ts +1 -0
- package/lib/@types/requests.d.ts.map +1 -0
- package/lib/@types/search.d.ts +1 -0
- package/lib/@types/search.d.ts.map +1 -0
- package/lib/@types/signed.d.ts +1 -0
- package/lib/@types/signed.d.ts.map +1 -0
- package/lib/@types/spaces.d.ts +1 -0
- package/lib/@types/spaces.d.ts.map +1 -0
- package/lib/@types/synapse.d.ts +1 -0
- package/lib/@types/synapse.d.ts.map +1 -0
- package/lib/@types/threepids.d.ts +1 -0
- package/lib/@types/threepids.d.ts.map +1 -0
- package/lib/NamespacedValue.d.ts +1 -0
- package/lib/NamespacedValue.d.ts.map +1 -0
- package/lib/ReEmitter.d.ts +1 -0
- package/lib/ReEmitter.d.ts.map +1 -0
- package/lib/autodiscovery.d.ts +1 -0
- package/lib/autodiscovery.d.ts.map +1 -0
- package/lib/autodiscovery.js +1 -1
- package/lib/client.d.ts +17 -3
- package/lib/client.d.ts.map +1 -0
- package/lib/client.js +36 -7
- package/lib/content-helpers.d.ts +1 -0
- package/lib/content-helpers.d.ts.map +1 -0
- package/lib/content-helpers.js +3 -3
- package/lib/content-repo.d.ts +1 -0
- package/lib/content-repo.d.ts.map +1 -0
- package/lib/crypto/CrossSigning.d.ts +1 -0
- package/lib/crypto/CrossSigning.d.ts.map +1 -0
- package/lib/crypto/CrossSigning.js +1 -1
- package/lib/crypto/DeviceList.d.ts +1 -0
- package/lib/crypto/DeviceList.d.ts.map +1 -0
- package/lib/crypto/DeviceList.js +1 -1
- package/lib/crypto/EncryptionSetup.d.ts +1 -0
- package/lib/crypto/EncryptionSetup.d.ts.map +1 -0
- package/lib/crypto/OlmDevice.d.ts +1 -0
- package/lib/crypto/OlmDevice.d.ts.map +1 -0
- package/lib/crypto/OutgoingRoomKeyRequestManager.d.ts +1 -0
- package/lib/crypto/OutgoingRoomKeyRequestManager.d.ts.map +1 -0
- package/lib/crypto/OutgoingRoomKeyRequestManager.js +1 -1
- package/lib/crypto/RoomList.d.ts +1 -0
- package/lib/crypto/RoomList.d.ts.map +1 -0
- package/lib/crypto/SecretStorage.d.ts +1 -0
- package/lib/crypto/SecretStorage.d.ts.map +1 -0
- package/lib/crypto/aes.d.ts +1 -0
- package/lib/crypto/aes.d.ts.map +1 -0
- package/lib/crypto/aes.js +2 -2
- package/lib/crypto/algorithms/base.d.ts +1 -0
- package/lib/crypto/algorithms/base.d.ts.map +1 -0
- package/lib/crypto/algorithms/base.js +1 -1
- package/lib/crypto/algorithms/index.d.ts +1 -0
- package/lib/crypto/algorithms/index.d.ts.map +1 -0
- package/lib/crypto/algorithms/megolm.d.ts +1 -0
- package/lib/crypto/algorithms/megolm.d.ts.map +1 -0
- package/lib/crypto/algorithms/megolm.js +14 -12
- package/lib/crypto/algorithms/olm.d.ts +1 -0
- package/lib/crypto/algorithms/olm.d.ts.map +1 -0
- package/lib/crypto/api.d.ts +2 -1
- package/lib/crypto/api.d.ts.map +1 -0
- package/lib/crypto/backup.d.ts +1 -0
- package/lib/crypto/backup.d.ts.map +1 -0
- package/lib/crypto/backup.js +1 -1
- package/lib/crypto/dehydration.d.ts +1 -0
- package/lib/crypto/dehydration.d.ts.map +1 -0
- package/lib/crypto/deviceinfo.d.ts +1 -0
- package/lib/crypto/deviceinfo.d.ts.map +1 -0
- package/lib/crypto/index.d.ts +3 -2
- package/lib/crypto/index.d.ts.map +1 -0
- package/lib/crypto/index.js +31 -2
- package/lib/crypto/key_passphrase.d.ts +1 -0
- package/lib/crypto/key_passphrase.d.ts.map +1 -0
- package/lib/crypto/key_passphrase.js +1 -1
- package/lib/crypto/keybackup.d.ts +1 -0
- package/lib/crypto/keybackup.d.ts.map +1 -0
- package/lib/crypto/olmlib.d.ts +1 -0
- package/lib/crypto/olmlib.d.ts.map +1 -0
- package/lib/crypto/olmlib.js +6 -6
- package/lib/crypto/recoverykey.d.ts +1 -0
- package/lib/crypto/recoverykey.d.ts.map +1 -0
- package/lib/crypto/recoverykey.js +1 -1
- package/lib/crypto/store/base.d.ts +1 -0
- package/lib/crypto/store/base.d.ts.map +1 -0
- package/lib/crypto/store/indexeddb-crypto-store-backend.d.ts +1 -0
- package/lib/crypto/store/indexeddb-crypto-store-backend.d.ts.map +1 -0
- package/lib/crypto/store/indexeddb-crypto-store-backend.js +1 -1
- package/lib/crypto/store/indexeddb-crypto-store.d.ts +1 -0
- package/lib/crypto/store/indexeddb-crypto-store.d.ts.map +1 -0
- package/lib/crypto/store/localStorage-crypto-store.d.ts +1 -0
- package/lib/crypto/store/localStorage-crypto-store.d.ts.map +1 -0
- package/lib/crypto/store/memory-crypto-store.d.ts +1 -0
- package/lib/crypto/store/memory-crypto-store.d.ts.map +1 -0
- package/lib/crypto/verification/Base.d.ts +1 -0
- package/lib/crypto/verification/Base.d.ts.map +1 -0
- package/lib/crypto/verification/Error.d.ts +1 -0
- package/lib/crypto/verification/Error.d.ts.map +1 -0
- package/lib/crypto/verification/Error.js +2 -2
- package/lib/crypto/verification/IllegalMethod.d.ts +1 -0
- package/lib/crypto/verification/IllegalMethod.d.ts.map +1 -0
- package/lib/crypto/verification/QRCode.d.ts +1 -0
- package/lib/crypto/verification/QRCode.d.ts.map +1 -0
- package/lib/crypto/verification/QRCode.js +1 -1
- package/lib/crypto/verification/SAS.d.ts +1 -0
- package/lib/crypto/verification/SAS.d.ts.map +1 -0
- package/lib/crypto/verification/request/Channel.d.ts +1 -0
- package/lib/crypto/verification/request/Channel.d.ts.map +1 -0
- package/lib/crypto/verification/request/InRoomChannel.d.ts +1 -0
- package/lib/crypto/verification/request/InRoomChannel.d.ts.map +1 -0
- package/lib/crypto/verification/request/ToDeviceChannel.d.ts +1 -0
- package/lib/crypto/verification/request/ToDeviceChannel.d.ts.map +1 -0
- package/lib/crypto/verification/request/VerificationRequest.d.ts +1 -0
- package/lib/crypto/verification/request/VerificationRequest.d.ts.map +1 -0
- package/lib/crypto/verification/request/VerificationRequest.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/event-mapper.d.ts +1 -0
- package/lib/event-mapper.d.ts.map +1 -0
- package/lib/filter-component.d.ts +1 -0
- package/lib/filter-component.d.ts.map +1 -0
- package/lib/filter.d.ts +1 -0
- package/lib/filter.d.ts.map +1 -0
- package/lib/http-api.js +2 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/indexeddb-helpers.d.ts +1 -0
- package/lib/indexeddb-helpers.d.ts.map +1 -0
- package/lib/indexeddb-worker.d.ts +1 -0
- package/lib/indexeddb-worker.d.ts.map +1 -0
- package/lib/interactive-auth.d.ts +1 -0
- package/lib/interactive-auth.d.ts.map +1 -0
- package/lib/logger.d.ts +1 -0
- package/lib/logger.d.ts.map +1 -0
- package/lib/matrix.d.ts +1 -0
- package/lib/matrix.d.ts.map +1 -0
- package/lib/matrix.js +5 -5
- package/lib/models/MSC3089Branch.d.ts +1 -0
- package/lib/models/MSC3089Branch.d.ts.map +1 -0
- package/lib/models/MSC3089TreeSpace.d.ts +1 -0
- package/lib/models/MSC3089TreeSpace.d.ts.map +1 -0
- package/lib/models/MSC3089TreeSpace.js +1 -1
- package/lib/models/event-context.d.ts +1 -0
- package/lib/models/event-context.d.ts.map +1 -0
- package/lib/models/event-timeline-set.d.ts +3 -0
- package/lib/models/event-timeline-set.d.ts.map +1 -0
- package/lib/models/event-timeline-set.js +4 -2
- package/lib/models/event-timeline.d.ts +1 -0
- package/lib/models/event-timeline.d.ts.map +1 -0
- package/lib/models/event.d.ts +10 -6
- package/lib/models/event.d.ts.map +1 -0
- package/lib/models/event.js +28 -21
- package/lib/models/relations.d.ts +1 -0
- package/lib/models/relations.d.ts.map +1 -0
- package/lib/models/room-member.d.ts +1 -0
- package/lib/models/room-member.d.ts.map +1 -0
- package/lib/models/room-member.js +18 -5
- package/lib/models/room-state.d.ts +1 -0
- package/lib/models/room-state.d.ts.map +1 -0
- package/lib/models/room-summary.d.ts +1 -0
- package/lib/models/room-summary.d.ts.map +1 -0
- package/lib/models/room.d.ts +4 -14
- package/lib/models/room.d.ts.map +1 -0
- package/lib/models/room.js +45 -56
- package/lib/models/search-result.d.ts +1 -0
- package/lib/models/search-result.d.ts.map +1 -0
- package/lib/models/thread.d.ts +6 -21
- package/lib/models/thread.d.ts.map +1 -0
- package/lib/models/thread.js +24 -64
- package/lib/models/user.d.ts +1 -0
- package/lib/models/user.d.ts.map +1 -0
- package/lib/pushprocessor.d.ts +1 -0
- package/lib/pushprocessor.d.ts.map +1 -0
- package/lib/randomstring.d.ts +1 -0
- package/lib/randomstring.d.ts.map +1 -0
- package/lib/randomstring.js +1 -1
- package/lib/realtime-callbacks.d.ts +1 -0
- package/lib/realtime-callbacks.d.ts.map +1 -0
- package/lib/realtime-callbacks.js +1 -1
- package/lib/room-hierarchy.d.ts +1 -0
- package/lib/room-hierarchy.d.ts.map +1 -0
- package/lib/scheduler.d.ts +1 -0
- package/lib/scheduler.d.ts.map +1 -0
- package/lib/service-types.d.ts +1 -0
- package/lib/service-types.d.ts.map +1 -0
- package/lib/store/index.d.ts +1 -0
- package/lib/store/index.d.ts.map +1 -0
- package/lib/store/indexeddb-backend.d.ts +1 -0
- package/lib/store/indexeddb-backend.d.ts.map +1 -0
- package/lib/store/indexeddb-local-backend.d.ts +1 -0
- package/lib/store/indexeddb-local-backend.d.ts.map +1 -0
- package/lib/store/indexeddb-remote-backend.d.ts +1 -0
- package/lib/store/indexeddb-remote-backend.d.ts.map +1 -0
- package/lib/store/indexeddb-store-worker.d.ts +1 -0
- package/lib/store/indexeddb-store-worker.d.ts.map +1 -0
- package/lib/store/indexeddb.d.ts +1 -0
- package/lib/store/indexeddb.d.ts.map +1 -0
- package/lib/store/memory.d.ts +1 -0
- package/lib/store/memory.d.ts.map +1 -0
- package/lib/store/stub.d.ts +1 -0
- package/lib/store/stub.d.ts.map +1 -0
- package/lib/sync-accumulator.d.ts +1 -0
- package/lib/sync-accumulator.d.ts.map +1 -0
- package/lib/sync.api.d.ts +1 -0
- package/lib/sync.api.d.ts.map +1 -0
- package/lib/sync.d.ts +1 -0
- package/lib/sync.d.ts.map +1 -0
- package/lib/sync.js +2 -2
- package/lib/timeline-window.d.ts +1 -0
- package/lib/timeline-window.d.ts.map +1 -0
- package/lib/timeline-window.js +1 -1
- package/lib/utils.d.ts +7 -0
- package/lib/utils.d.ts.map +1 -0
- package/lib/utils.js +41 -26
- package/lib/webrtc/call.d.ts +29 -8
- package/lib/webrtc/call.d.ts.map +1 -0
- package/lib/webrtc/call.js +236 -94
- package/lib/webrtc/callEventHandler.d.ts +1 -0
- package/lib/webrtc/callEventHandler.d.ts.map +1 -0
- package/lib/webrtc/callEventTypes.d.ts +1 -0
- package/lib/webrtc/callEventTypes.d.ts.map +1 -0
- package/lib/webrtc/callFeed.d.ts +14 -1
- package/lib/webrtc/callFeed.d.ts.map +1 -0
- package/lib/webrtc/callFeed.js +63 -36
- package/lib/webrtc/mediaHandler.d.ts +3 -0
- package/lib/webrtc/mediaHandler.d.ts.map +1 -0
- package/lib/webrtc/mediaHandler.js +16 -3
- package/package.json +2 -2
- package/src/@types/event.ts +8 -5
- package/src/client.ts +33 -5
- package/src/crypto/algorithms/megolm.ts +24 -15
- package/src/crypto/api.ts +1 -1
- package/src/crypto/index.ts +26 -3
- package/src/models/event-timeline-set.ts +4 -1
- package/src/models/event.ts +25 -25
- package/src/models/room-member.ts +16 -3
- package/src/models/room.ts +41 -51
- package/src/models/thread.ts +25 -70
- package/src/sync.ts +2 -2
- package/src/utils.ts +12 -0
- package/src/webrtc/call.ts +191 -55
- package/src/webrtc/callFeed.ts +70 -29
- package/src/webrtc/mediaHandler.ts +17 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,65 @@
|
|
|
1
|
+
Changes in [15.1.0](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v15.1.0) (2021-11-08)
|
|
2
|
+
==================================================================================================
|
|
3
|
+
|
|
4
|
+
## 🦖 Deprecations
|
|
5
|
+
* Mark old verification methods as deprecated ([\#1994](https://github.com/matrix-org/matrix-js-sdk/pull/1994)).
|
|
6
|
+
|
|
7
|
+
## ✨ Features
|
|
8
|
+
* Try to set a sender on search result events if possible ([\#2004](https://github.com/matrix-org/matrix-js-sdk/pull/2004)).
|
|
9
|
+
* Port some changes from group calls branch to develop ([\#2001](https://github.com/matrix-org/matrix-js-sdk/pull/2001)). Contributed by @SimonBrandner.
|
|
10
|
+
* Fetch room membership from server rather than relying on stored data ([\#1998](https://github.com/matrix-org/matrix-js-sdk/pull/1998)).
|
|
11
|
+
* Add method to fetch the MSC3266 Room Summary of a Room ([\#1988](https://github.com/matrix-org/matrix-js-sdk/pull/1988)).
|
|
12
|
+
|
|
13
|
+
## 🐛 Bug Fixes
|
|
14
|
+
* Don't show `Unable to access microphone` when cancelling screensharing dialog ([\#2005](https://github.com/matrix-org/matrix-js-sdk/pull/2005)). Fixes vector-im/element-web#19533 and vector-im/element-web#19533. Contributed by @SimonBrandner.
|
|
15
|
+
* Strip direction override characters from display names ([\#1992](https://github.com/matrix-org/matrix-js-sdk/pull/1992)). Fixes vector-im/element-web#1712 and vector-im/element-web#1712.
|
|
16
|
+
|
|
17
|
+
Changes in [15.1.0-rc.1](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v15.1.0-rc.1) (2021-11-02)
|
|
18
|
+
============================================================================================================
|
|
19
|
+
|
|
20
|
+
## 🦖 Deprecations
|
|
21
|
+
* Mark old verification methods as deprecated ([\#1994](https://github.com/matrix-org/matrix-js-sdk/pull/1994)).
|
|
22
|
+
|
|
23
|
+
## ✨ Features
|
|
24
|
+
* Try to set a sender on search result events if possible ([\#2004](https://github.com/matrix-org/matrix-js-sdk/pull/2004)).
|
|
25
|
+
* Port some changes from group calls branch to develop ([\#2001](https://github.com/matrix-org/matrix-js-sdk/pull/2001)). Contributed by @SimonBrandner.
|
|
26
|
+
* Fetch room membership from server rather than relying on stored data ([\#1998](https://github.com/matrix-org/matrix-js-sdk/pull/1998)).
|
|
27
|
+
* Add method to fetch the MSC3266 Room Summary of a Room ([\#1988](https://github.com/matrix-org/matrix-js-sdk/pull/1988)).
|
|
28
|
+
|
|
29
|
+
## 🐛 Bug Fixes
|
|
30
|
+
* Don't show `Unable to access microphone` when cancelling screensharing dialog ([\#2005](https://github.com/matrix-org/matrix-js-sdk/pull/2005)). Fixes vector-im/element-web#19533 and vector-im/element-web#19533. Contributed by @SimonBrandner.
|
|
31
|
+
* Strip direction override characters from display names ([\#1992](https://github.com/matrix-org/matrix-js-sdk/pull/1992)). Fixes vector-im/element-web#1712 and vector-im/element-web#1712.
|
|
32
|
+
|
|
33
|
+
Changes in [15.0.0](https://github.com/vector-im/element-desktop/releases/tag/v15.0.0) (2021-10-25)
|
|
34
|
+
===================================================================================================
|
|
35
|
+
|
|
36
|
+
## 🚨 BREAKING CHANGES
|
|
37
|
+
* Use `ICallFeedOpts` in the `CallFeed` constructor. To construct a new `CallFeed` object you have to pass `ICallFeedOpts` e.g. `const callFeed = new CallFeed({client ([\#1964](https://github.com/matrix-org/matrix-js-sdk/pull/1964)). Contributed by [SimonBrandner](https://github.com/SimonBrandner).
|
|
38
|
+
|
|
39
|
+
## ✨ Features
|
|
40
|
+
* Make threads use 'm.thread' relation ([\#1980](https://github.com/matrix-org/matrix-js-sdk/pull/1980)).
|
|
41
|
+
* Try to answer a call without video if we can't access the camera ([\#1972](https://github.com/matrix-org/matrix-js-sdk/pull/1972)). Fixes vector-im/element-web#17975 and vector-im/element-web#17975. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
|
|
42
|
+
* Make `opts` in `importRoomKeys()` optional ([\#1974](https://github.com/matrix-org/matrix-js-sdk/pull/1974)). Contributed by [SimonBrandner](https://github.com/SimonBrandner).
|
|
43
|
+
* Enable TypeScript declaration maps ([\#1966](https://github.com/matrix-org/matrix-js-sdk/pull/1966)). Contributed by [Alexendoo](https://github.com/Alexendoo).
|
|
44
|
+
|
|
45
|
+
## 🐛 Bug Fixes
|
|
46
|
+
* Fix `requestVerificationDM` with chronological `pendingEventOrdering` ([\#1943](https://github.com/matrix-org/matrix-js-sdk/pull/1943)). Contributed by [freaktechnik](https://github.com/freaktechnik).
|
|
47
|
+
|
|
48
|
+
Changes in [15.0.0-rc.1](https://github.com/vector-im/element-desktop/releases/tag/v15.0.0-rc.1) (2021-10-19)
|
|
49
|
+
=============================================================================================================
|
|
50
|
+
|
|
51
|
+
## 🚨 BREAKING CHANGES
|
|
52
|
+
* Use `ICallFeedOpts` in the `CallFeed` constructor. To construct a new `CallFeed` object you have to pass `ICallFeedOpts` e.g. `const callFeed = new CallFeed({client ([\#1964](https://github.com/matrix-org/matrix-js-sdk/pull/1964)). Contributed by [SimonBrandner](https://github.com/SimonBrandner).
|
|
53
|
+
|
|
54
|
+
## ✨ Features
|
|
55
|
+
* Make threads use 'm.thread' relation ([\#1980](https://github.com/matrix-org/matrix-js-sdk/pull/1980)).
|
|
56
|
+
* Try to answer a call without video if we can't access the camera ([\#1972](https://github.com/matrix-org/matrix-js-sdk/pull/1972)). Fixes vector-im/element-web#17975 and vector-im/element-web#17975. Contributed by [SimonBrandner](https://github.com/SimonBrandner).
|
|
57
|
+
* Make `opts` in `importRoomKeys()` optional ([\#1974](https://github.com/matrix-org/matrix-js-sdk/pull/1974)). Contributed by [SimonBrandner](https://github.com/SimonBrandner).
|
|
58
|
+
* Enable TypeScript declaration maps ([\#1966](https://github.com/matrix-org/matrix-js-sdk/pull/1966)). Contributed by [Alexendoo](https://github.com/Alexendoo).
|
|
59
|
+
|
|
60
|
+
## 🐛 Bug Fixes
|
|
61
|
+
* Fix `requestVerificationDM` with chronological `pendingEventOrdering` ([\#1943](https://github.com/matrix-org/matrix-js-sdk/pull/1943)). Contributed by [freaktechnik](https://github.com/freaktechnik).
|
|
62
|
+
|
|
1
63
|
Changes in [14.0.1](https://github.com/vector-im/element-desktop/releases/tag/v14.0.1) (2021-10-12)
|
|
2
64
|
===================================================================================================
|
|
3
65
|
|
|
@@ -16,8 +78,6 @@ Changes in [14.0.1](https://github.com/vector-im/element-desktop/releases/tag/v1
|
|
|
16
78
|
* Fix event partitioning from non threading ready clients ([\#1948](https://github.com/matrix-org/matrix-js-sdk/pull/1948)).
|
|
17
79
|
* Ensure unencrypted fields get exposed by getEffectiveEvent() ([\#1938](https://github.com/matrix-org/matrix-js-sdk/pull/1938)). Fixes vector-im/element-web#19062 and vector-im/element-web#19062.
|
|
18
80
|
|
|
19
|
-
Changes in [14.0.0-rc.2](https://github.com/vector-im/element-desktop/releases/tag/v14.0.0-rc.2) (2021-10-07)
|
|
20
|
-
=============================================================================================================
|
|
21
81
|
|
|
22
82
|
Changes in [14.0.0-rc.1](https://github.com/vector-im/element-desktop/releases/tag/v14.0.0-rc.1) (2021-10-04)
|
|
23
83
|
=============================================================================================================
|