matrix-js-sdk 27.2.0 → 27.3.0-rc.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 (87) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +2 -0
  3. package/dist/browser-matrix.js +141 -231
  4. package/dist/browser-matrix.js.map +16 -14
  5. package/dist/browser-matrix.min.js +1 -1
  6. package/dist/browser-matrix.min.js.map +1 -1
  7. package/git-revision.txt +1 -1
  8. package/lib/@types/requests.d.ts +0 -5
  9. package/lib/@types/requests.d.ts.map +1 -1
  10. package/lib/@types/requests.js.map +1 -1
  11. package/lib/autodiscovery.d.ts +3 -1
  12. package/lib/autodiscovery.d.ts.map +1 -1
  13. package/lib/autodiscovery.js +17 -2
  14. package/lib/autodiscovery.js.map +1 -1
  15. package/lib/client.d.ts +7 -69
  16. package/lib/client.d.ts.map +1 -1
  17. package/lib/client.js +21 -171
  18. package/lib/client.js.map +1 -1
  19. package/lib/content-repo.js +2 -2
  20. package/lib/content-repo.js.map +1 -1
  21. package/lib/crypto/backup.d.ts.map +1 -1
  22. package/lib/crypto/backup.js +18 -7
  23. package/lib/crypto/backup.js.map +1 -1
  24. package/lib/crypto/index.d.ts +7 -1
  25. package/lib/crypto/index.d.ts.map +1 -1
  26. package/lib/crypto/index.js +14 -0
  27. package/lib/crypto/index.js.map +1 -1
  28. package/lib/crypto-api/keybackup.d.ts +7 -0
  29. package/lib/crypto-api/keybackup.d.ts.map +1 -1
  30. package/lib/crypto-api/keybackup.js.map +1 -1
  31. package/lib/crypto-api.d.ts +20 -1
  32. package/lib/crypto-api.d.ts.map +1 -1
  33. package/lib/crypto-api.js.map +1 -1
  34. package/lib/http-api/index.js +3 -3
  35. package/lib/http-api/index.js.map +1 -1
  36. package/lib/http-api/prefix.d.ts +7 -7
  37. package/lib/http-api/prefix.d.ts.map +1 -1
  38. package/lib/http-api/prefix.js +2 -2
  39. package/lib/http-api/prefix.js.map +1 -1
  40. package/lib/interactive-auth.d.ts.map +1 -1
  41. package/lib/interactive-auth.js +2 -4
  42. package/lib/interactive-auth.js.map +1 -1
  43. package/lib/matrix.d.ts +1 -0
  44. package/lib/matrix.d.ts.map +1 -1
  45. package/lib/matrix.js +12 -0
  46. package/lib/matrix.js.map +1 -1
  47. package/lib/rust-crypto/OutgoingRequestProcessor.d.ts.map +1 -1
  48. package/lib/rust-crypto/OutgoingRequestProcessor.js +4 -2
  49. package/lib/rust-crypto/OutgoingRequestProcessor.js.map +1 -1
  50. package/lib/rust-crypto/backup.d.ts +53 -3
  51. package/lib/rust-crypto/backup.d.ts.map +1 -1
  52. package/lib/rust-crypto/backup.js +206 -4
  53. package/lib/rust-crypto/backup.js.map +1 -1
  54. package/lib/rust-crypto/rust-crypto.d.ts +28 -5
  55. package/lib/rust-crypto/rust-crypto.d.ts.map +1 -1
  56. package/lib/rust-crypto/rust-crypto.js +66 -7
  57. package/lib/rust-crypto/rust-crypto.js.map +1 -1
  58. package/lib/rust-crypto/verification.d.ts +10 -0
  59. package/lib/rust-crypto/verification.d.ts.map +1 -1
  60. package/lib/rust-crypto/verification.js +27 -0
  61. package/lib/rust-crypto/verification.js.map +1 -1
  62. package/lib/sync.d.ts.map +1 -1
  63. package/lib/sync.js +4 -11
  64. package/lib/sync.js.map +1 -1
  65. package/lib/version-support.d.ts +5 -0
  66. package/lib/version-support.d.ts.map +1 -0
  67. package/lib/version-support.js +28 -0
  68. package/lib/version-support.js.map +1 -0
  69. package/package.json +4 -4
  70. package/src/@types/requests.ts +0 -6
  71. package/src/autodiscovery.ts +19 -1
  72. package/src/client.ts +24 -185
  73. package/src/content-repo.ts +2 -2
  74. package/src/crypto/backup.ts +18 -10
  75. package/src/crypto/index.ts +15 -0
  76. package/src/crypto-api/keybackup.ts +8 -0
  77. package/src/crypto-api.ts +22 -1
  78. package/src/http-api/index.ts +3 -3
  79. package/src/http-api/prefix.ts +7 -7
  80. package/src/interactive-auth.ts +2 -4
  81. package/src/matrix.ts +1 -0
  82. package/src/rust-crypto/OutgoingRequestProcessor.ts +7 -2
  83. package/src/rust-crypto/backup.ts +244 -5
  84. package/src/rust-crypto/rust-crypto.ts +94 -15
  85. package/src/rust-crypto/verification.ts +27 -0
  86. package/src/sync.ts +4 -11
  87. package/src/version-support.ts +20 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ Changes in [27.3.0-rc.1](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v27.3.0-rc.1) (2023-08-22)
2
+ ============================================================================================================
3
+
4
+ ## 🚨 BREAKING CHANGES
5
+ * Set minimum supported Matrix 1.1 version (drop legacy r0 versions) ([\#3007](https://github.com/matrix-org/matrix-js-sdk/pull/3007)). Fixes vector-im/element-web#16876.
6
+
7
+ ## 🦖 Deprecations
8
+ * **The Browserify artifact is being deprecated, scheduled for removal in the October 10th release cycle. (#3189)**
9
+
10
+ ## ✨ Features
11
+ * ElementR: Add `CryptoApi.requestVerificationDM` ([\#3643](https://github.com/matrix-org/matrix-js-sdk/pull/3643)). Contributed by @florianduros.
12
+ * Implement `CryptoApi.checkKeyBackupAndEnable` ([\#3633](https://github.com/matrix-org/matrix-js-sdk/pull/3633)). Fixes vector-im/crypto-internal#111 and vector-im/crypto-internal#112.
13
+
14
+ ## 🐛 Bug Fixes
15
+ * ElementR: Process all verification events, not just requests ([\#3650](https://github.com/matrix-org/matrix-js-sdk/pull/3650)). Contributed by @florianduros.
16
+
1
17
  Changes in [27.2.0](https://github.com/matrix-org/matrix-js-sdk/releases/tag/v27.2.0) (2023-08-15)
2
18
  ==================================================================================================
3
19
 
package/README.md CHANGED
@@ -11,6 +11,8 @@
11
11
  This is the [Matrix](https://matrix.org) Client-Server SDK for JavaScript and TypeScript. This SDK can be run in a
12
12
  browser or in Node.js.
13
13
 
14
+ #### Minimum Matrix server version: v1.1
15
+
14
16
  The Matrix specification is constantly evolving - while this SDK aims for maximum backwards compatibility, it only
15
17
  guarantees that a feature will be supported for at least 4 spec releases. For example, if a feature the js-sdk supports
16
18
  is removed in v1.4 then the feature is _eligible_ for removal from the SDK when v1.8 is released. This SDK has no