matrix-js-sdk 15.2.1 → 15.4.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 +56 -0
- package/dist/browser-matrix.js +1647 -2481
- package/dist/browser-matrix.js.map +60 -64
- package/dist/browser-matrix.min.js +5 -5
- package/dist/browser-matrix.min.js.map +1 -1
- package/git-revision.txt +1 -1
- package/lib/@types/extensible_events.d.ts +3 -0
- package/lib/@types/extensible_events.d.ts.map +1 -0
- package/lib/{sync.api.js → @types/extensible_events.js} +6 -13
- package/lib/@types/location.d.ts +17 -0
- package/lib/@types/location.d.ts.map +1 -0
- package/lib/@types/location.js +53 -0
- package/lib/@types/partials.d.ts +4 -0
- package/lib/@types/partials.d.ts.map +1 -1
- package/lib/@types/polls.d.ts +39 -0
- package/lib/@types/polls.d.ts.map +1 -0
- package/lib/@types/polls.js +36 -0
- package/lib/@types/requests.d.ts +12 -1
- package/lib/@types/requests.d.ts.map +1 -1
- package/lib/@types/spaces.d.ts +0 -1
- package/lib/@types/spaces.d.ts.map +1 -1
- package/lib/autodiscovery.d.ts +0 -1
- package/lib/autodiscovery.d.ts.map +1 -1
- package/lib/autodiscovery.js +2 -2
- package/lib/browser-index.js +4 -4
- package/lib/client.d.ts +129 -69
- package/lib/client.d.ts.map +1 -1
- package/lib/client.js +251 -234
- package/lib/content-helpers.d.ts +19 -0
- package/lib/content-helpers.d.ts.map +1 -1
- package/lib/content-helpers.js +58 -0
- package/lib/content-repo.js +2 -2
- package/lib/crypto/CrossSigning.d.ts.map +1 -1
- package/lib/crypto/DeviceList.d.ts.map +1 -1
- package/lib/crypto/DeviceList.js +1 -2
- package/lib/crypto/EncryptionSetup.d.ts +1 -1
- package/lib/crypto/EncryptionSetup.d.ts.map +1 -1
- package/lib/crypto/EncryptionSetup.js +4 -4
- package/lib/crypto/OlmDevice.d.ts +2 -1
- package/lib/crypto/OlmDevice.d.ts.map +1 -1
- package/lib/crypto/OlmDevice.js +10 -1
- package/lib/crypto/SecretStorage.d.ts +6 -4
- package/lib/crypto/SecretStorage.d.ts.map +1 -1
- package/lib/crypto/aes.d.ts.map +1 -1
- package/lib/crypto/algorithms/base.d.ts +1 -1
- package/lib/crypto/algorithms/base.d.ts.map +1 -1
- package/lib/crypto/algorithms/megolm.d.ts.map +1 -1
- package/lib/crypto/algorithms/megolm.js +5 -3
- package/lib/crypto/backup.d.ts +4 -3
- package/lib/crypto/backup.d.ts.map +1 -1
- package/lib/crypto/backup.js +2 -3
- package/lib/crypto/dehydration.d.ts +3 -4
- package/lib/crypto/dehydration.d.ts.map +1 -1
- package/lib/crypto/dehydration.js +8 -5
- package/lib/crypto/index.d.ts +13 -5
- package/lib/crypto/index.d.ts.map +1 -1
- package/lib/crypto/index.js +46 -16
- package/lib/crypto/keybackup.d.ts +2 -2
- package/lib/crypto/keybackup.d.ts.map +1 -1
- package/lib/crypto/olmlib.d.ts +8 -3
- package/lib/crypto/olmlib.d.ts.map +1 -1
- package/lib/crypto/olmlib.js +2 -9
- package/lib/crypto/store/indexeddb-crypto-store-backend.js +8 -8
- package/lib/crypto/store/localStorage-crypto-store.d.ts.map +1 -1
- package/lib/crypto/verification/Base.d.ts +1 -1
- package/lib/crypto/verification/Base.d.ts.map +1 -1
- package/lib/crypto/verification/Base.js +2 -2
- package/lib/crypto/verification/SAS.d.ts +0 -4
- package/lib/crypto/verification/SAS.d.ts.map +1 -1
- package/lib/crypto/verification/SAS.js +2 -2
- package/lib/crypto/verification/request/Channel.d.ts +1 -0
- package/lib/crypto/verification/request/Channel.d.ts.map +1 -1
- package/lib/crypto/verification/request/InRoomChannel.d.ts +3 -2
- package/lib/crypto/verification/request/InRoomChannel.d.ts.map +1 -1
- package/lib/crypto/verification/request/ToDeviceChannel.d.ts +3 -3
- package/lib/crypto/verification/request/ToDeviceChannel.d.ts.map +1 -1
- package/lib/crypto/verification/request/VerificationRequest.d.ts.map +1 -1
- package/lib/crypto/verification/request/VerificationRequest.js +2 -2
- package/lib/filter-component.d.ts.map +1 -1
- package/lib/filter-component.js +5 -1
- package/lib/filter.d.ts +7 -0
- package/lib/filter.d.ts.map +1 -1
- package/lib/filter.js +9 -2
- package/lib/http-api.d.ts +370 -0
- package/lib/http-api.d.ts.map +1 -0
- package/lib/http-api.js +180 -156
- package/lib/index.d.ts +0 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -72
- package/lib/interactive-auth.d.ts +4 -2
- package/lib/interactive-auth.d.ts.map +1 -1
- package/lib/interactive-auth.js +3 -7
- package/lib/matrix.d.ts +6 -1
- package/lib/matrix.d.ts.map +1 -1
- package/lib/matrix.js +70 -0
- package/lib/models/MSC3089Branch.d.ts +2 -3
- package/lib/models/MSC3089Branch.d.ts.map +1 -1
- package/lib/models/MSC3089Branch.js +21 -2
- package/lib/models/MSC3089TreeSpace.d.ts +6 -7
- package/lib/models/MSC3089TreeSpace.d.ts.map +1 -1
- package/lib/models/MSC3089TreeSpace.js +25 -11
- package/lib/models/event-timeline-set.d.ts +1 -1
- package/lib/models/event-timeline-set.d.ts.map +1 -1
- package/lib/models/event-timeline.d.ts +2 -2
- package/lib/models/event-timeline.d.ts.map +1 -1
- package/lib/models/event.d.ts +4 -2
- package/lib/models/event.d.ts.map +1 -1
- package/lib/models/event.js +8 -8
- package/lib/models/group.js +2 -2
- package/lib/models/room.d.ts +47 -22
- package/lib/models/room.d.ts.map +1 -1
- package/lib/models/room.js +124 -81
- package/lib/models/thread.d.ts +4 -1
- package/lib/models/thread.d.ts.map +1 -1
- package/lib/models/thread.js +11 -0
- package/lib/room-hierarchy.js +1 -1
- package/lib/scheduler.js +1 -1
- package/lib/store/index.d.ts +9 -9
- package/lib/store/index.d.ts.map +1 -1
- package/lib/store/session/webstorage.js +2 -2
- package/lib/sync.d.ts +11 -3
- package/lib/sync.d.ts.map +1 -1
- package/lib/sync.js +48 -24
- package/lib/utils.d.ts +3 -16
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +12 -37
- package/lib/webrtc/call.d.ts +4 -0
- package/lib/webrtc/call.d.ts.map +1 -1
- package/lib/webrtc/call.js +2 -2
- package/lib/webrtc/callFeed.d.ts.map +1 -1
- package/package.json +8 -6
- package/release.sh +6 -0
- package/src/{sync.api.ts → @types/extensible_events.ts} +4 -9
- package/src/@types/global.d.ts +0 -6
- package/src/@types/location.ts +58 -0
- package/src/@types/partials.ts +9 -0
- package/src/@types/polls.ts +68 -0
- package/src/@types/requests.ts +15 -1
- package/src/@types/spaces.ts +0 -1
- package/src/ReEmitter.ts +1 -1
- package/src/autodiscovery.ts +2 -1
- package/src/browser-index.js +2 -1
- package/src/client.ts +491 -311
- package/src/content-helpers.ts +60 -0
- package/src/content-repo.ts +3 -3
- package/src/crypto/CrossSigning.ts +3 -2
- package/src/crypto/DeviceList.ts +21 -13
- package/src/crypto/EncryptionSetup.ts +6 -11
- package/src/crypto/OlmDevice.ts +16 -3
- package/src/crypto/SecretStorage.ts +30 -20
- package/src/crypto/aes.ts +0 -1
- package/src/crypto/algorithms/base.ts +1 -1
- package/src/crypto/algorithms/megolm.ts +27 -21
- package/src/crypto/algorithms/olm.ts +1 -1
- package/src/crypto/backup.ts +8 -10
- package/src/crypto/dehydration.ts +11 -10
- package/src/crypto/index.ts +72 -53
- package/src/crypto/keybackup.ts +1 -1
- package/src/crypto/olmlib.ts +20 -17
- package/src/crypto/store/indexeddb-crypto-store-backend.ts +16 -16
- package/src/crypto/store/localStorage-crypto-store.ts +6 -4
- package/src/crypto/verification/Base.ts +2 -1
- package/src/crypto/verification/SAS.ts +3 -2
- package/src/crypto/verification/request/Channel.ts +1 -0
- package/src/crypto/verification/request/InRoomChannel.ts +4 -3
- package/src/crypto/verification/request/ToDeviceChannel.ts +4 -3
- package/src/crypto/verification/request/VerificationRequest.ts +5 -2
- package/src/filter-component.ts +3 -0
- package/src/filter.ts +18 -0
- package/src/{http-api.js → http-api.ts} +331 -205
- package/src/index.ts +2 -6
- package/src/interactive-auth.ts +6 -6
- package/src/logger.ts +1 -1
- package/src/matrix.ts +6 -1
- package/src/models/MSC3089Branch.ts +21 -5
- package/src/models/MSC3089TreeSpace.ts +28 -15
- package/src/models/event-timeline-set.ts +2 -2
- package/src/models/event-timeline.ts +2 -2
- package/src/models/event.ts +18 -29
- package/src/models/group.js +2 -1
- package/src/models/room.ts +149 -108
- package/src/models/thread.ts +17 -0
- package/src/room-hierarchy.ts +1 -1
- package/src/scheduler.ts +2 -2
- package/src/store/index.ts +9 -9
- package/src/store/indexeddb-local-backend.ts +3 -3
- package/src/store/session/webstorage.js +2 -2
- package/src/sync.ts +38 -20
- package/src/utils.ts +14 -34
- package/src/webrtc/call.ts +2 -1
- package/src/webrtc/callFeed.ts +1 -0
- package/lib/sync.api.d.ts +0 -9
- package/lib/sync.api.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,59 @@
|
|
|
1
|
+
Changes in [15.4.0](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v15.4.0) (2022-01-17)
|
|
2
|
+
==================================================================================================
|
|
3
|
+
|
|
4
|
+
## ✨ Features
|
|
5
|
+
* Don't consider alt_aliases when calculating room name ([\#2094](https://github.com/matrix-org/matrix-js-sdk/pull/2094)). Fixes vector-im/element-web#13887.
|
|
6
|
+
* Load room history if necessary when searching for MSC3089 getFileEvent() ([\#2066](https://github.com/matrix-org/matrix-js-sdk/pull/2066)).
|
|
7
|
+
* Add support for MSC3030 `/timestamp_to_event` ([\#2072](https://github.com/matrix-org/matrix-js-sdk/pull/2072)).
|
|
8
|
+
|
|
9
|
+
## 🐛 Bug Fixes
|
|
10
|
+
* Stop encrypting redactions as it isn't spec compliant ([\#2098](https://github.com/matrix-org/matrix-js-sdk/pull/2098)). Fixes vector-im/element-web#20460.
|
|
11
|
+
* Fix more function typings relating to key backup ([\#2086](https://github.com/matrix-org/matrix-js-sdk/pull/2086)).
|
|
12
|
+
* Fix timeline search in MSC3089 getFileEvent() ([\#2085](https://github.com/matrix-org/matrix-js-sdk/pull/2085)).
|
|
13
|
+
* Set a `deviceId` for VoIP example and use `const`/`let` ([\#2090](https://github.com/matrix-org/matrix-js-sdk/pull/2090)). Fixes #2083. Contributed by @SimonBrandner.
|
|
14
|
+
* Fix incorrect TS return type for secret storage and key backup functions ([\#2082](https://github.com/matrix-org/matrix-js-sdk/pull/2082)).
|
|
15
|
+
|
|
16
|
+
Changes in [15.4.0-rc.1](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v15.4.0-rc.1) (2022-01-11)
|
|
17
|
+
============================================================================================================
|
|
18
|
+
|
|
19
|
+
## ✨ Features
|
|
20
|
+
* Don't consider alt_aliases when calculating room name ([\#2094](https://github.com/matrix-org/matrix-js-sdk/pull/2094)). Fixes vector-im/element-web#13887.
|
|
21
|
+
* Load room history if necessary when searching for MSC3089 getFileEvent() ([\#2066](https://github.com/matrix-org/matrix-js-sdk/pull/2066)).
|
|
22
|
+
* Add support for MSC3030 `/timestamp_to_event` ([\#2072](https://github.com/matrix-org/matrix-js-sdk/pull/2072)).
|
|
23
|
+
|
|
24
|
+
## 🐛 Bug Fixes
|
|
25
|
+
* Stop encrypting redactions as it isn't spec compliant ([\#2098](https://github.com/matrix-org/matrix-js-sdk/pull/2098)). Fixes vector-im/element-web#20460.
|
|
26
|
+
* Fix more function typings relating to key backup ([\#2086](https://github.com/matrix-org/matrix-js-sdk/pull/2086)).
|
|
27
|
+
* Fix timeline search in MSC3089 getFileEvent() ([\#2085](https://github.com/matrix-org/matrix-js-sdk/pull/2085)).
|
|
28
|
+
* Set a `deviceId` for VoIP example and use `const`/`let` ([\#2090](https://github.com/matrix-org/matrix-js-sdk/pull/2090)). Fixes #2083. Contributed by @SimonBrandner.
|
|
29
|
+
* Fix incorrect TS return type for secret storage and key backup functions ([\#2082](https://github.com/matrix-org/matrix-js-sdk/pull/2082)).
|
|
30
|
+
|
|
31
|
+
Changes in [15.3.0](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v15.3.0) (2021-12-20)
|
|
32
|
+
==================================================================================================
|
|
33
|
+
|
|
34
|
+
## ✨ Features
|
|
35
|
+
* Improve fallback key behaviour ([\#2037](https://github.com/matrix-org/matrix-js-sdk/pull/2037)).
|
|
36
|
+
* Add new room event filter fields ([\#2051](https://github.com/matrix-org/matrix-js-sdk/pull/2051)).
|
|
37
|
+
* Add method to fetch /account/whoami ([\#2046](https://github.com/matrix-org/matrix-js-sdk/pull/2046)).
|
|
38
|
+
|
|
39
|
+
## 🐛 Bug Fixes
|
|
40
|
+
* Filter out falsey opts in /relations API hits ([\#2059](https://github.com/matrix-org/matrix-js-sdk/pull/2059)). Fixes vector-im/element-web#20137.
|
|
41
|
+
* Fix paginateEventTimeline resolve to boolean ([\#2054](https://github.com/matrix-org/matrix-js-sdk/pull/2054)).
|
|
42
|
+
* Fix incorrect MSC3089 typings and add null checks ([\#2049](https://github.com/matrix-org/matrix-js-sdk/pull/2049)).
|
|
43
|
+
|
|
44
|
+
Changes in [15.3.0-rc.1](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v15.3.0-rc.1) (2021-12-14)
|
|
45
|
+
============================================================================================================
|
|
46
|
+
|
|
47
|
+
## ✨ Features
|
|
48
|
+
* Improve fallback key behaviour ([\#2037](https://github.com/matrix-org/matrix-js-sdk/pull/2037)).
|
|
49
|
+
* Add new room event filter fields ([\#2051](https://github.com/matrix-org/matrix-js-sdk/pull/2051)).
|
|
50
|
+
* Add method to fetch /account/whoami ([\#2046](https://github.com/matrix-org/matrix-js-sdk/pull/2046)).
|
|
51
|
+
|
|
52
|
+
## 🐛 Bug Fixes
|
|
53
|
+
* Filter out falsey opts in /relations API hits ([\#2059](https://github.com/matrix-org/matrix-js-sdk/pull/2059)). Fixes vector-im/element-web#20137.
|
|
54
|
+
* Fix paginateEventTimeline resolve to boolean ([\#2054](https://github.com/matrix-org/matrix-js-sdk/pull/2054)).
|
|
55
|
+
* Fix incorrect MSC3089 typings and add null checks ([\#2049](https://github.com/matrix-org/matrix-js-sdk/pull/2049)).
|
|
56
|
+
|
|
1
57
|
Changes in [15.2.1](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v15.2.1) (2021-12-13)
|
|
2
58
|
==================================================================================================
|
|
3
59
|
|