Update dependency matrix-js-sdk to v20 - autoclosed
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
matrix-js-sdk | dependencies | major | ^12.0.0 -> ^20.0.0 |
Release Notes
matrix-org/matrix-js-sdk
v20.1.0
============================================================================================================
✨ Features
- Add local notification settings capability (#2700).
- Implementation of MSC3882 login token request (#2687). Contributed by @hughns.
- Typings for MSC2965 OIDC provider discovery (#2424). Contributed by @hughns.
- Support to remotely toggle push notifications (#2686).
- Read receipts for threads (#2635).
🐛 Bug Fixes
- Use the correct sender key when checking shared secret (#2730). Fixes vector-im/element-web#23374.
- Unexpected ignored self key request when it's not shared history (#2724). Contributed by @mcalinghee.
- Fix IDB initial migration handling causing spurious lazy loading upgrade loops (#2718). Fixes vector-im/element-web#23377.
- Fix backpagination at end logic being spec non-conforming (#2680). Fixes vector-im/element-web#22784.
v20.0.2
==================================================================================================
🐛 Bug Fixes
- Fix issue in sync when crypto is not supported by client (#2715). Contributed by @stas-demydiuk.
v20.0.1
==================================================================================================
🐛 Bug Fixes
- Fix missing return when receiving an invitation without shared history (#2710).
v20.0.0
==================================================================================================
🚨 BREAKING CHANGES
- Bump IDB crypto store version (#2705).
v19.7.0
==================================================================================================
🔒 Security
- Fix for CVE-2022-39249
- Fix for CVE-2022-39250
- Fix for CVE-2022-39251
- Fix for CVE-2022-39236
v19.6.0
==================================================================================================
✨ Features
- Add a property aggregating all names of a NamespacedValue (#2656).
- Implementation of MSC3824 to add action= param on SSO login (#2398). Contributed by @hughns.
- Add invited_count and joined_count to sliding sync room responses. (#2628).
- Base support for MSC3847: Ignore invites with policy rooms (#2626). Contributed by @Yoric.
🐛 Bug Fixes
v19.5.0
==================================================================================================
🐛 Bug Fixes
- Fix bug in deepCompare which would incorrectly return objects with disjoint keys as equal (#2586). Contributed by @3nprob.
- Refactor Sync and fix
initialSyncLimit
(#2587). - Use deep equality comparisons when searching for outgoing key requests by target (#2623). Contributed by @duxovni.
- Fix room membership race with MREPARED event (#2613). Contributed by @jotto.
v19.4.0
==================================================================================================
🔒 Security
- Fix for CVE-2022-36059
Find more details at https://matrix.org/blog/2022/08/31/security-releases-matrix-js-sdk-19-4-0-and-matrix-react-sdk-3-53-0
✨ Features
- Re-emit room state events on rooms (#2607).
- Add ability to override built in room name generator for an i18n'able one (#2609).
- Add txn_id support to sliding sync (#2567).
🐛 Bug Fixes
- Refactor Sync and fix
initialSyncLimit
(#2587). - Use deep equality comparisons when searching for outgoing key requests by target (#2623). Contributed by @duxovni.
- Fix room membership race with MREPARED event (#2613). Contributed by @jotto.
- fixed a sliding sync bug which could cause the
roomIndexToRoomId
map to be incorrect when a new room is added in the middle of the list or when an existing room is deleted from the middle of the list. (#2610). - Fix: Handle parsing of a beacon info event without asset (#2591). Fixes vector-im/element-web#23078. Contributed by @kerryarchibald.
- Fix finding event read up to if stable private read receipts is missing (#2585). Fixes vector-im/element-web#23027.
- fixed a sliding sync issue where history could be interpreted as live events. (#2583).
v19.3.0
==================================================================================================
✨ Features
- Add txn_id support to sliding sync (#2567).
- Emit an event when the client receives TURN servers (#2529).
- Add support for stable prefixes for MSC2285 (#2524).
- Remove stream-replacement (#2551).
- Add support for sending user-defined encrypted to-device messages (#2528).
- Retry to-device messages (#2549). Fixes vector-im/element-web#12851.
- Sliding sync: add missing filters from latest MSC (#2555).
- Use stable prefixes for MSC3827 (#2537).
🐛 Bug Fixes
- Fix: Handle parsing of a beacon info event without asset (#2591). Fixes vector-im/element-web#23078.
- Fix finding event read up to if stable private read receipts is missing (#2585). Fixes vector-im/element-web#23027.
- Fixed a sliding sync issue where history could be interpreted as live events. (#2583).
- Don't load the sync accumulator if there's already a sync persist in flight (#2569).
v19.2.0
==================================================================================================
🦖 Deprecations
✨ Features
- Sliding sync: add missing filters from latest MSC (#2555).
- Use stable prefixes for MSC3827 (#2537).
- Add support for MSC3575: Sliding Sync (#2242).
🐛 Bug Fixes
- Correct the units in TURN servers expiry documentation (#2520).
- Re-insert room IDs when decrypting bundled redaction events returned by
/sync
(#2531). Contributed by @duxovni.
v19.1.0
==================================================================================================
🦖 Deprecations
- Remove MSC3244 support (#2504).
✨ Features
-
room
now exportsKNOWN_SAFE_ROOM_VERSION
(#2474).
🐛 Bug Fixes
- Don't crash with undefined room in
processBeaconEvents()
(#2500). Fixes #2494. - Properly re-insert room ID in bundled thread relation messages from sync (#2505). Fixes vector-im/element-web#22094. Contributed by @duxovni.
- Actually store the identity server in the client when given as an option (#2503). Fixes vector-im/element-web#22757.
- Fix call.collectCallStats() (#2480).
v19.0.0
==================================================================================================
🚨 BREAKING CHANGES
- Remove unused sessionStore (#2455).
✨ Features
- Implement MSC3827: Filtering of
/publicRooms
by room type (#2469). - expose latestLocationEvent on beacon model (#2467). Contributed by @kerryarchibald.
- Live location share - add start time leniency (#2465). Contributed by @kerryarchibald.
- Log real errors and not just their messages, traces are useful (#2464).
- Various changes to
src/crypto
files for correctness (#2137). Contributed by @ShadowJonathan. - Update MSC3786 implementation: Check the
state_key
(#2429). - Timeline needs to refresh when we see a MSC2716 marker event (#2299). Contributed by @MadLittleMods.
- Try to load keys from key backup when a message fails to decrypt (#2373). Fixes vector-im/element-web#21026. Contributed by @duxovni.
🐛 Bug Fixes
- Send call version
1
as a string (#2471). Fixes vector-im/element-web#22629. - Fix issue with
getEventTimeline
returning undefined for thread roots in main timeline (#2454). Fixes vector-im/element-web#22539. - Add missing
type
property onIAuthData
(#2463). - Clearly indicate that
lastReply
on a Thread can return falsy (#2462). - Fix issues with getEventTimeline and thread roots (#2444). Fixes vector-im/element-web#21613.
- Live location sharing - monitor liveness of beacons yet to start (#2437). Contributed by @kerryarchibald.
- Refactor Relations to not be per-EventTimelineSet (#2412). Fixes #2399 and vector-im/element-web#22298.
- Add tests for sendEvent threadId handling (#2435). Fixes vector-im/element-web#22433.
- Make sure
encryptAndSendKeysToDevices
assumes devices are unique per-user. (#2136). Fixes #2135. Contributed by @ShadowJonathan. - Don't bug the user while re-checking key backups after decryption failures (#2430). Fixes vector-im/element-web#22416. Contributed by @duxovni.
v18.1.0
==================================================================================================
✨ Features
- Convert
getLocalAliases
to a stable API call (#2402).
🐛 Bug Fixes
- Fix request, crypto, and bs58 imports (#2414). Fixes #2415.
- Update relations after every decryption attempt (#2387). Fixes vector-im/element-web#22258. Contributed by @weeman1337.
- Fix degraded mode for the IDBStore and test it (#2400). Fixes matrix-org/element-web-rageshakes#13170.
- Don't cancel SAS verifications if
ready
is received afterstart
(#2250). - Prevent overlapping sync accumulator persists (#2392). Fixes vector-im/element-web#21541.
- Fix behaviour of isRelation with relation m.replace for state events (#2389). Fixes vector-im/element-web#22280.
- Fixes #2384 (#2385). Fixes undefined#2384. Contributed by @schmop.
- Ensure rooms are recalculated on re-invites (#2374). Fixes vector-im/element-web#22106.
v18.0.0
==================================================================================================
🚨 BREAKING CHANGES (to experimental methods)
- Implement changes to MSC2285 (private read receipts) (#2221).
✨ Features
- Add support for HTML renderings of room topics (#2272).
- Add stopClient parameter to MatrixClient::logout (#2367).
- registration: add function to re-request email token (#2357).
- Remove hacky custom status feature (#2350).
🐛 Bug Fixes
- Remove default push rule override for MSC1930 (#2376). Fixes vector-im/element-web#15439.
- Tweak thread creation & event adding to fix bugs around relations (#2369). Fixes vector-im/element-web#22162 and vector-im/element-web#22180.
- Prune both clear & wire content on redaction (#2346). Fixes vector-im/element-web#21929.
- MSC3786: Add a default push rule to ignore
m.room.server_acl
events (#2333). Fixes vector-im/element-web#20788.
v17.2.0
==================================================================================================
✨ Features
- Live location sharing: handle encrypted messages in processBeaconEvents (#2327).
🐛 Bug Fixes
- Fix race conditions around threads (#2331). Fixes vector-im/element-web#21627.
- Ignore m.replace relations on state events, they're invalid (#2306). Fixes vector-im/element-web#21851.
- fix example in readme (#2315).
- Don't decrement the length count of a thread when root redacted (#2314).
- Prevent attempt to create thread with id "undefined" (#2308).
- Update threads handling for replies-to-thread-responses as per MSC update (#2305). Fixes vector-im/element-web#19678.
v17.1.0
==================================================================================================
✨ Features
- Add MatrixClient.doesServerSupportLogoutDevices() for MSC2457 (#2297).
- Live location sharing - expose room liveBeaconIds (#2296).
- Support for MSC2457 logout_devices param for setPassword() (#2285).
- Stabilise token authenticated registration support (#2181). Contributed by @govynnus.
- Live location sharing - Aggregate beacon locations on beacons (#2268).
🐛 Bug Fixes
- Prevent duplicated re-emitter setups in event-mapper (#2293).
- Make self membership less prone to races (#2277). Fixes vector-im/element-web#21661.
v17.0.0
==================================================================================================
🚨 BREAKING CHANGES
- Remove groups and groups-related APIs (#2234).
✨ Features
🐛 Bug Fixes
- Fix getSessionsNeedingBackup() limit support (#2270). Contributed by @adamvy.
- Fix issues with /search and /context API handling for threads (#2261). Fixes vector-im/element-web#21543.
- Prevent exception 'Unable to set up secret storage' (#2260).
v16.0.1
==================================================================================================
✨ Features
- emit aggregate room beacon liveness (#2241).
- Live location sharing - create m.beacon_info events (#2238).
- Beacon event types from MSC3489 (#2230).
🐛 Bug Fixes
- Fix incorrect usage of unstable variant of
is_falling_back
(#2227).
v16.0.0
==================================================================================================
🚨 BREAKING CHANGES
- Improve typing around event emitter handlers (#2180).
✨ Features
- Fix defer not supporting resolving with a Promise (#2216).
- add LocationAssetType enum (#2214).
- Support for mid-call devices changes (#2154). Contributed by @SimonBrandner.
- Add new room state emit RoomStateEvent.Update for lower-frequency hits (#2192).
🐛 Bug Fixes
- Fix wrong event_id being sent for m.in_reply_to of threads (#2213).
- Fix wrongly asserting that PushRule::conditions is non-null (#2217).
- Make createThread more resilient when missing rootEvent (#2207). Fixes vector-im/element-web#21130.
- Fix bug with the /hierarchy API sending invalid requests (#2201). Fixes vector-im/element-web#21170.
- fix relation sender filter (#2196). Fixes vector-im/element-web#20877.
- Fix bug with one-way audio after a transfer (#2193).
v15.6.0
==================================================================================================
✨ Features
- Return send event response from MSC3089Branch.createNewVersion() (#2186).
- Add functions to support refresh tokens (#2178).
🐛 Bug Fixes
- [Release] Fix bug with the /hierarchy API sending invalid requests (#2202).
- Fix bug where calls could break if rejected from somewhere else (#2189).
- Fix camera stuck on after call transfer (#2188).
- Fix synthetic read receipt handling (#2174). Fixes vector-im/element-web#21016.
- Revert "Sign backup with cross-signing key when we reset it." (#2175).
- Sign backup with cross-signing key when we reset it. (#2170).
- Fix error in uploadContent() when file is empty under Node.js (#2155).
- Check the backup info against the stored private key when determining trust. (#2167).
- Back up keys before logging out (#2158). Fixes vector-im/element-web#13151.
v15.5.2
==================================================================================================
🐛 Bug Fixes
- Fix synthetic read receipt handling
v15.5.1
==================================================================================================
🐛 Bug Fixes
- Fix issue with rooms not getting marked as unread (#2163). Fixes vector-im/element-web#20971.
- Don't store streams that are only used once (#2157). Fixes vector-im/element-web#20932. Contributed by @SimonBrandner.
- Fix edge cases around RR calculations (#2160). Fixes vector-im/element-web#20922.
- Account for encryption in
maySendMessage()
(#2159). Contributed by @SimonBrandner. - Send references to thread root to threads, even out of order (#2156).
- Fix initial sync fail when event fetching unsuccessful (#2150). Fixes vector-im/element-web#20862.
- Don't decrypt redacted messages (#2143). Contributed by @SimonBrandner.
v15.5.0
==================================================================================================
✨ Features
- Support m.asset in m.location event content (#2109).
- Send extensible events structure and support on-demand parsing (#2091).
- Support cancelling events whilst they are in status = ENCRYPTING (#2095).
🐛 Bug Fixes
- Fix http-api butchering idServer requests (#2134). Fixes vector-im/element-web#20680.
- Don't remove streams that still have tracks (#2104).
v15.4.0
==================================================================================================
✨ Features
- Don't consider alt_aliases when calculating room name (#2094). Fixes vector-im/element-web#13887.
- Load room history if necessary when searching for MSC3089 getFileEvent() (#2066).
- Add support for MSC3030
/timestamp_to_event
(#2072).
🐛 Bug Fixes
- Stop encrypting redactions as it isn't spec compliant (#2098). Fixes vector-im/element-web#20460.
- Fix more function typings relating to key backup (#2086).
- Fix timeline search in MSC3089 getFileEvent() (#2085).
- Set a
deviceId
for VoIP example and useconst
/let
(#2090). Fixes #2083. Contributed by @SimonBrandner. - Fix incorrect TS return type for secret storage and key backup functions (#2082).
v15.3.0
==================================================================================================
✨ Features
- Improve fallback key behaviour (#2037).
- Add new room event filter fields (#2051).
- Add method to fetch /account/whoami (#2046).
🐛 Bug Fixes
- Filter out falsey opts in /relations API hits (#2059). Fixes vector-im/element-web#20137.
- Fix paginateEventTimeline resolve to boolean (#2054).
- Fix incorrect MSC3089 typings and add null checks (#2049).
v15.2.1
==================================================================================================
- Security release with updated version of Olm to fix https://matrix.org/blog/2021/12/03/pre-disclosure-upcoming-security-release-of-libolm-and-matrix-js-sdk
v15.2.0
==================================================================================================
✨ Features
- Remove support for
ArrayBuffer
in unstable MSC3089createFile()
andcreateNewVersion()
and instead use same content types as handled byMatrixClient.uploadContent()
. This enables support for Node.js. (#2014). - Support for password-based backup on Node.js (#2021).
- Add optional force parameter when ensuring Olm sessions (#2027).
🐛 Bug Fixes
- Fix call upgrades (#2024). Contributed by @SimonBrandner.
v15.1.1
==================================================================================================
🐛 Bug Fixes
- Fix edit history being broken after editing an unencrypted event with an encrypted event (#2013). Fixes vector-im/element-web#19651 and vector-im/element-web#19651. Contributed by @aaronraimist.
- Make events pagination responses parse threads (#2011). Fixes vector-im/element-web#19587 and vector-im/element-web#19587.
v15.1.0
==================================================================================================
🦖 Deprecations
- Mark old verification methods as deprecated (#1994).
✨ Features
- Try to set a sender on search result events if possible (#2004).
- Port some changes from group calls branch to develop (#2001). Contributed by @SimonBrandner.
- Fetch room membership from server rather than relying on stored data (#1998).
- Add method to fetch the MSC3266 Room Summary of a Room (#1988).
🐛 Bug Fixes
- Don't show
Unable to access microphone
when cancelling screensharing dialog (#2005). Fixes vector-im/element-web#19533 and vector-im/element-web#19533. Contributed by @SimonBrandner. - Strip direction override characters from display names (#1992). Fixes vector-im/element-web#1712 and vector-im/element-web#1712.
v15.0.0
===================================================================================================
🚨 BREAKING CHANGES
- Use
ICallFeedOpts
in theCallFeed
constructor. To construct a newCallFeed
object you have to passICallFeedOpts
e.g. `const callFeed = new CallFeed({client (#1964). Contributed by SimonBrandner.
✨ Features
- Make threads use 'm.thread' relation (#1980).
- Try to answer a call without video if we can't access the camera (#1972). Fixes vector-im/element-web#17975 and vector-im/element-web#17975. Contributed by SimonBrandner.
- Make
opts
inimportRoomKeys()
optional (#1974). Contributed by SimonBrandner. - Enable TypeScript declaration maps (#1966). Contributed by Alexendoo.
🐛 Bug Fixes
- Fix
requestVerificationDM
with chronologicalpendingEventOrdering
(#1943). Contributed by freaktechnik.
v14.0.1
===================================================================================================
🚨 BREAKING CHANGES
- Support for call upgrades.
setLocalVideoMuted()
andsetMicrophoneMuted()
are nowasync
and return the new mute state (#1827). Contributed by SimonBrandner.
✨ Features
- Implement file versioning for tree spaces (#1952).
- Allow answering calls without audio/video (#1950). Contributed by SimonBrandner.
- Add
bound
toIThreepid
(#1941). Contributed by SimonBrandner. - Add
trusted_locally
toTrustInfo
(#1942). Contributed by SimonBrandner.
🐛 Bug Fixes
- Fix incorrect return value type in getJoinedRooms() (#1959). Contributed by psrpinto.
- Make sure to set
callLengthInterval
only once (#1958). Fixes vector-im/element-web#19221 and vector-im/element-web#19221. Contributed by SimonBrandner. - Fix event partitioning from non threading ready clients (#1948).
- Ensure unencrypted fields get exposed by getEffectiveEvent() (#1938). Fixes vector-im/element-web#19062 and vector-im/element-web#19062.
v14.0.0
=============================================================================================================
🚨 BREAKING CHANGES
- Support for call upgrades.
setLocalVideoMuted()
andsetMicrophoneMuted()
are nowasync
and return the new mute state (#1827). Contributed by SimonBrandner.
✨ Features
- Implement file versioning for tree spaces (#1952).
- Allow answering calls without audio/video (#1950). Contributed by SimonBrandner.
- Add
bound
toIThreepid
(#1941). Contributed by SimonBrandner. - Add
trusted_locally
toTrustInfo
(#1942). Contributed by SimonBrandner.
🐛 Bug Fixes
- Fix incorrect return value type in getJoinedRooms() (#1959). Contributed by psrpinto.
- Make sure to set
callLengthInterval
only once (#1958). Fixes vector-im/element-web#19221 and vector-im/element-web#19221. Contributed by SimonBrandner. - Fix event partitioning from non threading ready clients (#1948).
- Ensure unencrypted fields get exposed by getEffectiveEvent() (#1938). Fixes vector-im/element-web#19062 and vector-im/element-web#19062.
v13.0.0
===================================================================================================
✨ Features
- Add
getHistoryVisibility()
andgetGuestAccess()
(#1940). Contributed by SimonBrandner. - Add
getBuffer()
toQRCodeData
(#1927). Contributed by SimonBrandner. - Added
createDataChannel()
andCallEvent.DataChannel
toMatrixCall
for creating and listening for WebRTC datachannels. (#1929). Contributed by robertlong. - Add file locking to MSC3089 branches (#1909).
- Add
hasBeenCancelled
toVerificationBase
(#1915). Contributed by SimonBrandner. - Add
ISasEvent
(#1908). Contributed by SimonBrandner. - Count notifications in encrypted rooms client-side (#1872). Fixes vector-im/element-web#15393 and vector-im/element-web#15393. Contributed by SimonBrandner.
- Exclude opt-in Element performance metrics from encryption (#1897).
🐛 Bug Fixes
- Fix race on automatic backup restore (#1936). Fixes vector-im/element-web#17781 and vector-im/element-web#17781.
v12.5.0
===================================================================================================
✨ Features
- [Release] Exclude opt-in Element performance metrics from encryption (#1901).
- Give
MatrixCall
the capability to emitLengthChanged
events (#1873). Contributed by SimonBrandner. - Improve browser example (#1875). Contributed by psrpinto.
- Give
CallFeed
the capability to emit on volume changes (#1865). Contributed by SimonBrandner.
🐛 Bug Fixes
- Fix verification request cancellation (#1871).
v12.4.1
===================================================================================================
🔒 SECURITY FIXES
- Fix a security issue with message key sharing. See https://matrix.org/blog/2021/09/13/vulnerability-disclosure-key-sharing for details.
v12.4.0
===================================================================================================
🦖 Deprecations
- Deprecate groups APIs. Groups are no longer supported, only Synapse has support. They are being replaced by Spaces which build off of Rooms and are far more flexible. (#1792).
✨ Features
- Add method for including extra fields when uploading to a tree space (#1850).
🐛 Bug Fixes
- Fix broken voice calls, no ringing and broken call notifications (#1858). Fixes vector-im/element-web#18578 vector-im/element-web#18538 and vector-im/element-web#18578. Contributed by SimonBrandner.
- Revert "Fix glare related regressions" (#1857).
- Fix glare related regressions (#1851). Fixes vector-im/element-web#18538 and vector-im/element-web#18538. Contributed by SimonBrandner.
- Fix temporary call messages being handled without call (#1834). Contributed by Palid.
- Fix conditional on returning file tree spaces (#1841).
v12.3.1
===================================================================================================
🐛 Bug Fixes
- Fix multiple VoIP regressions (#1860).
v12.3.0
===================================================================================================
✨ Features
- Support for MSC3291: Muting in VoIP calls (#1812). Contributed by SimonBrandner.
- Support for screen-sharing using multi-stream VoIP (MSC3077) (#1685). Contributed by SimonBrandner.
- Handle DTMF support (#1813). Contributed by SimonBrandner.
🐛 Bug Fixes
- [Release] Fix glare related regressions (#1854). Contributed by SimonBrandner.
- Fix the types in shipped package (#1842). Fixes vector-im/element-web#18503 and vector-im/element-web#18503.
- Fix error on turning off screensharing (#1833). Fixes vector-im/element-web#18449. Contributed by SimonBrandner.
- Fix blank profile in join events (#1837). Fixes vector-im/element-web#18321.
- fix TURN by fixing regression preventing multiple ICE candidates from sending. (#1838).
- Send
user_hangup
reason if the opponent supports it (#1820). Fixes vector-im/element-web#18219. Contributed by SimonBrandner. - Apply hidden char check to rawDisplayName too (#1816).
- Only clear bit 63 when we create the IV (#1819).
v12.2.0
===================================================================================================
✨ Features
- Improve calculateRoomName performances by using Intl.Collator #1801
- Switch callEventHandler from listening on
event
toRoom.timeline
#1789 - Expose MatrixEvent's internal clearEvent as a function #1784
🐛 Bug Fixes
- Clean up Event.clearEvent handling to fix a bug where malformed events with falsey content wouldn't be considered decrypted #1807
- Standardise spelling and casing of homeserver, identity server, and integration manager #1782
v12.1.0
================================================================================================== Full Changelog
- No changes from rc.1
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.