matrix-js-sdk 15.4.0 → 15.5.1

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 (85) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/browser-matrix.js +3860 -829
  3. package/dist/browser-matrix.js.map +84 -40
  4. package/dist/browser-matrix.min.js +5 -5
  5. package/dist/browser-matrix.min.js.map +1 -1
  6. package/git-revision.txt +1 -1
  7. package/lib/@types/event.d.ts +7 -0
  8. package/lib/@types/event.d.ts.map +1 -1
  9. package/lib/@types/event.js +11 -2
  10. package/lib/@types/location.d.ts +5 -0
  11. package/lib/@types/location.d.ts.map +1 -1
  12. package/lib/@types/location.js +9 -2
  13. package/lib/@types/requests.d.ts +2 -0
  14. package/lib/@types/requests.d.ts.map +1 -1
  15. package/lib/client.d.ts +13 -8
  16. package/lib/client.d.ts.map +1 -1
  17. package/lib/client.js +146 -38
  18. package/lib/content-helpers.d.ts +2 -10
  19. package/lib/content-helpers.d.ts.map +1 -1
  20. package/lib/content-helpers.js +8 -34
  21. package/lib/crypto/index.d.ts.map +1 -1
  22. package/lib/crypto/index.js +0 -6
  23. package/lib/crypto/store/memory-crypto-store.js +2 -2
  24. package/lib/event-mapper.js +1 -1
  25. package/lib/filter-component.d.ts +8 -1
  26. package/lib/filter-component.d.ts.map +1 -1
  27. package/lib/filter-component.js +45 -3
  28. package/lib/filter.js +2 -2
  29. package/lib/http-api.js +3 -3
  30. package/lib/models/MSC3089Branch.js +2 -2
  31. package/lib/models/MSC3089TreeSpace.js +2 -2
  32. package/lib/models/event-timeline-set.d.ts +4 -0
  33. package/lib/models/event-timeline-set.d.ts.map +1 -1
  34. package/lib/models/event.d.ts +117 -9
  35. package/lib/models/event.d.ts.map +1 -1
  36. package/lib/models/event.js +196 -17
  37. package/lib/models/related-relations.d.ts +10 -0
  38. package/lib/models/related-relations.d.ts.map +1 -0
  39. package/lib/models/related-relations.js +47 -0
  40. package/lib/models/relations.d.ts.map +1 -1
  41. package/lib/models/room-state.d.ts +8 -8
  42. package/lib/models/room-state.d.ts.map +1 -1
  43. package/lib/models/room-state.js +8 -8
  44. package/lib/models/room.d.ts +42 -11
  45. package/lib/models/room.d.ts.map +1 -1
  46. package/lib/models/room.js +329 -79
  47. package/lib/models/thread.d.ts +30 -17
  48. package/lib/models/thread.d.ts.map +1 -1
  49. package/lib/models/thread.js +166 -73
  50. package/lib/pushprocessor.js +2 -2
  51. package/lib/sync-accumulator.d.ts +1 -0
  52. package/lib/sync-accumulator.d.ts.map +1 -1
  53. package/lib/sync.d.ts.map +1 -1
  54. package/lib/sync.js +6 -6
  55. package/lib/webrtc/call.d.ts.map +1 -1
  56. package/lib/webrtc/call.js +11 -3
  57. package/lib/webrtc/mediaHandler.d.ts +7 -2
  58. package/lib/webrtc/mediaHandler.d.ts.map +1 -1
  59. package/lib/webrtc/mediaHandler.js +15 -4
  60. package/package.json +2 -1
  61. package/src/@types/event.ts +10 -0
  62. package/src/@types/location.ts +10 -0
  63. package/src/@types/requests.ts +2 -0
  64. package/src/client.ts +148 -46
  65. package/src/content-helpers.ts +14 -34
  66. package/src/crypto/index.ts +0 -3
  67. package/src/event-mapper.ts +1 -1
  68. package/src/filter-component.ts +48 -4
  69. package/src/filter.ts +2 -2
  70. package/src/http-api.ts +1 -1
  71. package/src/models/event-timeline-set.ts +6 -1
  72. package/src/models/event.ts +246 -25
  73. package/src/models/related-relations.ts +38 -0
  74. package/src/models/relations.ts +2 -2
  75. package/src/models/room-state.ts +8 -8
  76. package/src/models/room.ts +335 -91
  77. package/src/models/thread.ts +196 -74
  78. package/src/sync-accumulator.ts +1 -0
  79. package/src/sync.ts +7 -6
  80. package/src/webrtc/call.ts +9 -3
  81. package/src/webrtc/mediaHandler.ts +13 -4
  82. package/lib/@types/polls.d.ts +0 -39
  83. package/lib/@types/polls.d.ts.map +0 -1
  84. package/lib/@types/polls.js +0 -36
  85. package/src/@types/polls.ts +0 -68
package/CHANGELOG.md CHANGED
@@ -1,3 +1,51 @@
1
+ Changes in [15.5.1](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v15.5.1) (2022-02-14)
2
+ ==================================================================================================
3
+
4
+ ## 🐛 Bug Fixes
5
+ * Fix issue with rooms not getting marked as unread ([\#2163](https://github.com/matrix-org/matrix-js-sdk/pull/2163)). Fixes vector-im/element-web#20971.
6
+ * Don't store streams that are only used once ([\#2157](https://github.com/matrix-org/matrix-js-sdk/pull/2157)). Fixes vector-im/element-web#20932. Contributed by @SimonBrandner.
7
+ * Fix edge cases around RR calculations ([\#2160](https://github.com/matrix-org/matrix-js-sdk/pull/2160)). Fixes vector-im/element-web#20922.
8
+ * Account for encryption in `maySendMessage()` ([\#2159](https://github.com/matrix-org/matrix-js-sdk/pull/2159)). Contributed by @SimonBrandner.
9
+ * Send references to thread root to threads, even out of order ([\#2156](https://github.com/matrix-org/matrix-js-sdk/pull/2156)).
10
+ * Fix initial sync fail when event fetching unsuccessful ([\#2150](https://github.com/matrix-org/matrix-js-sdk/pull/2150)). Fixes vector-im/element-web#20862.
11
+ * Don't decrypt redacted messages ([\#2143](https://github.com/matrix-org/matrix-js-sdk/pull/2143)). Contributed by @SimonBrandner.
12
+
13
+ Changes in [15.5.1-rc.1](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v15.5.1-rc.1) (2022-02-08)
14
+ ============================================================================================================
15
+
16
+ ## 🐛 Bug Fixes
17
+ * Fix issue with rooms not getting marked as unread ([\#2163](https://github.com/matrix-org/matrix-js-sdk/pull/2163)). Fixes vector-im/element-web#20971.
18
+ * Don't store streams that are only used once ([\#2157](https://github.com/matrix-org/matrix-js-sdk/pull/2157)). Fixes vector-im/element-web#20932. Contributed by @SimonBrandner.
19
+ * Fix edge cases around RR calculations ([\#2160](https://github.com/matrix-org/matrix-js-sdk/pull/2160)). Fixes vector-im/element-web#20922.
20
+ * Account for encryption in `maySendMessage()` ([\#2159](https://github.com/matrix-org/matrix-js-sdk/pull/2159)). Contributed by @SimonBrandner.
21
+ * Send references to thread root to threads, even out of order ([\#2156](https://github.com/matrix-org/matrix-js-sdk/pull/2156)).
22
+ * Fix initial sync fail when event fetching unsuccessful ([\#2150](https://github.com/matrix-org/matrix-js-sdk/pull/2150)). Fixes vector-im/element-web#20862.
23
+ * Don't decrypt redacted messages ([\#2143](https://github.com/matrix-org/matrix-js-sdk/pull/2143)). Contributed by @SimonBrandner.
24
+
25
+ Changes in [15.5.0](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v15.5.0) (2022-01-31)
26
+ ==================================================================================================
27
+
28
+ ## ✨ Features
29
+ * Support m.asset in m.location event content ([\#2109](https://github.com/matrix-org/matrix-js-sdk/pull/2109)).
30
+ * Send extensible events structure and support on-demand parsing ([\#2091](https://github.com/matrix-org/matrix-js-sdk/pull/2091)).
31
+ * Support cancelling events whilst they are in status = ENCRYPTING ([\#2095](https://github.com/matrix-org/matrix-js-sdk/pull/2095)).
32
+
33
+ ## 🐛 Bug Fixes
34
+ * Fix http-api butchering idServer requests ([\#2134](https://github.com/matrix-org/matrix-js-sdk/pull/2134)). Fixes vector-im/element-web#20680.
35
+ * Don't remove streams that still have tracks ([\#2104](https://github.com/matrix-org/matrix-js-sdk/pull/2104)).
36
+
37
+ Changes in [15.5.0-rc.1](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v15.5.0-rc.1) (2022-01-26)
38
+ ============================================================================================================
39
+
40
+ ## ✨ Features
41
+ * Support m.asset in m.location event content ([\#2109](https://github.com/matrix-org/matrix-js-sdk/pull/2109)).
42
+ * Send extensible events structure and support on-demand parsing ([\#2091](https://github.com/matrix-org/matrix-js-sdk/pull/2091)).
43
+ * Support cancelling events whilst they are in status = ENCRYPTING ([\#2095](https://github.com/matrix-org/matrix-js-sdk/pull/2095)).
44
+
45
+ ## 🐛 Bug Fixes
46
+ * Fix http-api butchering idServer requests ([\#2134](https://github.com/matrix-org/matrix-js-sdk/pull/2134)). Fixes vector-im/element-web#20680.
47
+ * Don't remove streams that still have tracks ([\#2104](https://github.com/matrix-org/matrix-js-sdk/pull/2104)).
48
+
1
49
  Changes in [15.4.0](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v15.4.0) (2022-01-17)
2
50
  ==================================================================================================
3
51