Releases: matrix-org/matrix-sdk-crypto-wasm
v16.0.0
-
Add new property
MegolmDecryptionError.withheldCode, which returns a withheld
code such asm.unverifiedif we received a withheld notification for the
session associated with the UTD event.
(#269) -
Update matrix-rust-sdk to
0.16.0, which includes:Features:
- When we receive an inbound Megolm session from two different sources, merge the two copies together to get the best of both.
(#5865 - When constructing a key bundle for history sharing, if we had received a key bundle ourselves, in which one or more sessions was marked as "history not shared", pass that on to the new user.
(#5820 - Use new withheld code in key bundles for sessions not marked as
shared_history.
(#5807 - Improve feedback support for shared history when downloading room key
bundles.
(#5737)
Bugfixes:
- Fix a bug which caused encrypted to-device messages from unknown devices to be ignored.
(#5763) - Fix a bug which caused history shared on invite to be ignored when "exclude insecure devices" was enabled.
(#5763) - Fix a bug introduced in 0.14.0 which meant that the serialization of the value returned by
OtherUserIdentity::verification_request_contentdid not include amsgtypefield.
(#5642)
- When we receive an inbound Megolm session from two different sources, merge the two copies together to get the best of both.
v15.3.0
v15.2.0
-
Update matrix-rust-sdk to 0.14.0, which includes:
- When in "exclude insecure devices" mode, refuse to decrypt incoming to-device messages from unverified devices, except for some exceptions for certain event types.
OlmMachine.receiveSyncChangesandRehydratedDevice.receiveEventsnow have optional arguments of typeDecryptionSettingsto specify the required trust level of senders. (#5319) Device.encryptToDeviceEventnow takes an optional argument of typeCollectStrategyto specify the required trust level of recipients. (#5457)- Add support to accept historic room key bundles that arrive out of order, i.e. the bundle arrives after the invite has already been accepted. (#5322)
- Upgrade ruma to 0.13.0. (#5623)
- When in "exclude insecure devices" mode, refuse to decrypt incoming to-device messages from unverified devices, except for some exceptions for certain event types.
v15.1.0
-
Update matrix-rust-sdk to
0.13.0, which includes: -
Expose experimental new functionality for sharing encrypted room history, per MSC4268. (#250)
-
Extend
OlmMachineconstructor functions to accept an optionalloggerinstance. This logger is associated with the machine for its lifetime, and used instead of the globalconsoleto write any log messages from the underlying rust library. Similarly, the legacy store migration functions (in theMigrationclass), and theStoreHandleopen functions are extended to accept an optional logger, to be used for the duration of that operation. (#251) -
Add a new error code for
MegolmDecryptionError,DecryptionErrorCode::MismatchedSender, indicating that the sender of the event does not match the owner of the device that established the Megolm session. (#248)
v15.0.0
-
Update matrix-rusk-sdk to
0.12.0, which includes:-
Send stable identifier
sender_device_keysfor MSC4147 (Including device keys with Olm-encrypted events).
(#4964) -
Check the
sender_device_keysfield on all incoming Olm-encrypted to-device messages and ignore any to-device messages which include the field but whose data is invalid (as per MSC4147).
(#4922) -
Fix bug which caused room keys to be unnecessarily rotated on every send in the presence of blacklisted/withheld devices in the room.
(#4954) -
Fix #2729 which in rare cases can cause room key oversharing.
(#4975)
-
-
BREAKING:
OlmMachine.receiveSyncChangesnow returns a list ofProcessedToDeviceEventinstead of a JSON-encoded list of JSON-encoded events. This allows making the difference between an event that was sent in clear and the same event successfully decrypted.
(#236), (#246) -
A number of the properties and methods on
DecryptedRoomEventno longer returnundefined
(#243) -
Add more JS/TS Framework support by adding the ability to choose the URL of wasm files.
(#227)
v14.2.1
Update matrix-sdk-crypto to 0.11.1, which includes:
Security Fixes
- Check the sender of an event matches owner of session, preventing sender spoofing by homeserver owners.
13c1d20 (High, GHSA-x958-rvg6-956w).
v14.2.0
v14.1.0
v14.0.1
v14.0.0
-
CollectStrategy.deviceBasedStrategyis deprecated, and replaced by other methods inCollectStrategy. (#194) -
BREAKING: Improve generated typescript types (
Promise<T>instead ofPromise<any>, etc). (#193) -
Fix a problem, introduced in v12.0.0, when importing the published package as an ESM module, in which some files could be incorrectly interpreted as CommonJS, leading to syntax errors. (#189)
-
Update matrix-rust-sdk to
0.10.0, which includes: