matrix-js-sdk 15.1.0 → 15.2.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.
Files changed (82) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/browser-matrix.js +450 -323
  3. package/dist/browser-matrix.js.map +21 -19
  4. package/dist/browser-matrix.min.js +1 -1
  5. package/dist/browser-matrix.min.js.map +1 -1
  6. package/git-revision.txt +1 -1
  7. package/lib/@types/PushRules.d.ts +1 -1
  8. package/lib/@types/PushRules.d.ts.map +1 -1
  9. package/lib/@types/event.d.ts +2 -1
  10. package/lib/@types/event.d.ts.map +1 -1
  11. package/lib/@types/event.js +1 -0
  12. package/lib/client.d.ts +53 -27
  13. package/lib/client.d.ts.map +1 -1
  14. package/lib/client.js +232 -53
  15. package/lib/crypto/CrossSigning.js +1 -2
  16. package/lib/crypto/api.d.ts +5 -11
  17. package/lib/crypto/api.d.ts.map +1 -1
  18. package/lib/crypto/index.d.ts +5 -14
  19. package/lib/crypto/index.d.ts.map +1 -1
  20. package/lib/crypto/index.js +6 -10
  21. package/lib/crypto/key_passphrase.d.ts.map +1 -1
  22. package/lib/crypto/key_passphrase.js +17 -1
  23. package/lib/index.d.ts +5 -0
  24. package/lib/index.d.ts.map +1 -1
  25. package/lib/index.js +70 -0
  26. package/lib/interactive-auth.d.ts +2 -1
  27. package/lib/interactive-auth.d.ts.map +1 -1
  28. package/lib/interactive-auth.js +2 -0
  29. package/lib/models/MSC3089Branch.d.ts +5 -3
  30. package/lib/models/MSC3089Branch.d.ts.map +1 -1
  31. package/lib/models/MSC3089Branch.js +2 -2
  32. package/lib/models/MSC3089TreeSpace.d.ts +5 -2
  33. package/lib/models/MSC3089TreeSpace.d.ts.map +1 -1
  34. package/lib/models/MSC3089TreeSpace.js +6 -3
  35. package/lib/models/event-timeline-set.d.ts +2 -1
  36. package/lib/models/event-timeline-set.d.ts.map +1 -1
  37. package/lib/models/event-timeline-set.js +5 -3
  38. package/lib/models/event.d.ts +1 -0
  39. package/lib/models/event.d.ts.map +1 -1
  40. package/lib/models/event.js +10 -5
  41. package/lib/models/room.d.ts +1 -1
  42. package/lib/models/room.d.ts.map +1 -1
  43. package/lib/models/room.js +77 -48
  44. package/lib/models/thread.d.ts +7 -14
  45. package/lib/models/thread.d.ts.map +1 -1
  46. package/lib/models/thread.js +22 -46
  47. package/lib/models/typed-event-emitter.d.ts +30 -0
  48. package/lib/models/typed-event-emitter.d.ts.map +1 -0
  49. package/lib/models/typed-event-emitter.js +94 -0
  50. package/lib/store/local-storage-events-emitter.d.ts +22 -0
  51. package/lib/store/local-storage-events-emitter.d.ts.map +1 -0
  52. package/lib/store/local-storage-events-emitter.js +49 -0
  53. package/lib/sync.d.ts +0 -7
  54. package/lib/sync.d.ts.map +1 -1
  55. package/lib/sync.js +7 -39
  56. package/lib/timeline-window.d.ts +1 -1
  57. package/lib/timeline-window.d.ts.map +1 -1
  58. package/lib/webrtc/call.js +6 -6
  59. package/lib/webrtc/callFeed.d.ts +6 -0
  60. package/lib/webrtc/callFeed.d.ts.map +1 -1
  61. package/package.json +2 -2
  62. package/src/@types/PushRules.ts +3 -3
  63. package/src/@types/event.ts +1 -0
  64. package/src/client.ts +396 -55
  65. package/src/crypto/CrossSigning.ts +1 -1
  66. package/src/crypto/api.ts +5 -11
  67. package/src/crypto/index.ts +18 -28
  68. package/src/crypto/key_passphrase.ts +29 -1
  69. package/src/index.ts +6 -0
  70. package/src/interactive-auth.ts +2 -0
  71. package/src/models/MSC3089Branch.ts +4 -3
  72. package/src/models/MSC3089TreeSpace.ts +6 -3
  73. package/src/models/event-timeline-set.ts +5 -4
  74. package/src/models/event.ts +9 -3
  75. package/src/models/room.ts +78 -50
  76. package/src/models/thread.ts +25 -42
  77. package/src/models/typed-event-emitter.ts +83 -0
  78. package/src/store/local-storage-events-emitter.ts +37 -0
  79. package/src/sync.ts +5 -41
  80. package/src/timeline-window.ts +1 -1
  81. package/src/webrtc/call.ts +6 -6
  82. package/src/webrtc/callFeed.ts +6 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,39 @@
1
+ Changes in [15.2.0](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v15.2.0) (2021-12-06)
2
+ ==================================================================================================
3
+
4
+ ## ✨ Features
5
+ * Remove support for `ArrayBuffer` in unstable MSC3089 `createFile()` and `createNewVersion()` and instead use same content types as handled by `MatrixClient.uploadContent()`. This enables support for Node.js. ([\#2014](https://github.com/matrix-org/matrix-js-sdk/pull/2014)).
6
+ * Support for password-based backup on Node.js ([\#2021](https://github.com/matrix-org/matrix-js-sdk/pull/2021)).
7
+ * Add optional force parameter when ensuring Olm sessions ([\#2027](https://github.com/matrix-org/matrix-js-sdk/pull/2027)).
8
+
9
+ ## 🐛 Bug Fixes
10
+ * Fix call upgrades ([\#2024](https://github.com/matrix-org/matrix-js-sdk/pull/2024)). Contributed by @SimonBrandner.
11
+
12
+ Changes in [15.2.0-rc.1](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v15.2.0-rc.1) (2021-11-30)
13
+ ============================================================================================================
14
+
15
+ ## ✨ Features
16
+ * Remove support for `ArrayBuffer` in unstable MSC3089 `createFile()` and `createNewVersion()` and instead use same content types as handled by `MatrixClient.uploadContent()`. This enables support for Node.js. ([\#2014](https://github.com/matrix-org/matrix-js-sdk/pull/2014)).
17
+ * Support for password-based backup on Node.js ([\#2021](https://github.com/matrix-org/matrix-js-sdk/pull/2021)).
18
+ * Add optional force parameter when ensuring Olm sessions ([\#2027](https://github.com/matrix-org/matrix-js-sdk/pull/2027)).
19
+
20
+ ## 🐛 Bug Fixes
21
+ * Fix call upgrades ([\#2024](https://github.com/matrix-org/matrix-js-sdk/pull/2024)). Contributed by @SimonBrandner.
22
+
23
+ Changes in [15.1.1](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v15.1.1) (2021-11-22)
24
+ ==================================================================================================
25
+
26
+ ## 🐛 Bug Fixes
27
+ * Fix edit history being broken after editing an unencrypted event with an encrypted event ([\#2013](https://github.com/matrix-org/matrix-js-sdk/pull/2013)). Fixes vector-im/element-web#19651 and vector-im/element-web#19651. Contributed by @aaronraimist.
28
+ * Make events pagination responses parse threads ([\#2011](https://github.com/matrix-org/matrix-js-sdk/pull/2011)). Fixes vector-im/element-web#19587 and vector-im/element-web#19587.
29
+
30
+ Changes in [15.1.1-rc.1](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v15.1.1-rc.1) (2021-11-17)
31
+ ============================================================================================================
32
+
33
+ ## 🐛 Bug Fixes
34
+ * Fix edit history being broken after editing an unencrypted event with an encrypted event ([\#2013](https://github.com/matrix-org/matrix-js-sdk/pull/2013)). Fixes vector-im/element-web#19651 and vector-im/element-web#19651. Contributed by @aaronraimist.
35
+ * Make events pagination responses parse threads ([\#2011](https://github.com/matrix-org/matrix-js-sdk/pull/2011)). Fixes vector-im/element-web#19587 and vector-im/element-web#19587.
36
+
1
37
  Changes in [15.1.0](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v15.1.0) (2021-11-08)
2
38
  ==================================================================================================
3
39