Hugh Nimmo-Smith
ff1db2b538
Bump eslint-plugin-matrix-org to enable @typescript-eslint/consistent-type-imports rule ( #4680 )
...
* Bump eslint-plugin-matrix-org to enable @typescript-eslint/consistent-type-imports rule
* Re-lint after merge
2025-02-05 12:15:20 +00:00
Florian Duros
c54ca29aa8
Rename initCrypto into initLegacyCrypto ( #4567 )
2024-12-05 11:08:38 +00:00
Will Hunt
f6a169b5a5
Replace usages of global with globalThis ( #4489 )
...
* Update src with globalThis
* Update spec with globalThis
* Replace in more spec/ places
* More changes to src/
* Add a linter rule for global
* Prettify
* lint
2024-11-01 09:15:21 +00:00
renovate[bot]
91f6f0f9c5
Update typescript-eslint monorepo to v8 (major) ( #4388 )
...
* Update typescript-eslint monorepo to v8
* Migrate to stylistic
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
* Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
---------
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2024-10-21 13:17:20 +00:00
Michael Telatynski
f03dd7b7bc
Remove deprecated methods and fields ( #4201 )
...
* Remove legacy `threepidCreds` field
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
* Remove deprecated shouldUpgradeToVersion
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
* Remove `added` legacy login request field
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
* Remove deprecated re-exports
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
* Remove `home_server` field
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
* Update imports in tests
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
---------
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2024-05-15 15:23:04 +00:00
renovate[bot]
0f65088fd9
Update dependency prettier to v3 ( #3983 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2024-01-02 17:56:06 +00:00
Richard van der Hoff
ceb2a57feb
Rename and move crypto.IBootstrapCrossSigningOpts ( #3352 )
...
* Define `UIAuthCallback` type and use in `IBootstrapCrossSigningOpts`
* Move `IBootstrapCrossSigningOpts` to `crypto-api` and rename
* Replace uses of `IBootstrapCrossSigningOpts`
... with `BootstrapCrossSigningOpts`
* Update src/crypto-api.ts
2023-05-11 18:41:58 +00:00
Eric Eastwood
c67325ba07
Add matrix-org/jest linting ( #2973 )
2023-02-10 12:05:40 +01:00
Richard van der Hoff
9c17eb6c14
Begin factoring out a CryptoBackend interface ( #2955 )
...
Part of https://github.com/vector-im/element-web/issues/21972 . Eventually I want to replace the whole of the current `Crypto` implementation with an alternative implementation, but in order to get from here to there, I'm factoring out a common interface which will be implemented by both implementations.
I'm also determined to fix the problem where the innards of the crypto implementation are exposed to applications via the `MatrixClient.crypto` property.
It's not (yet) entirely clear what shape this interface should be, so I'm going with a minimal approach and adding things as we know we need them. This means that we need to keep the old `client.crypto` property around as well as a new `client.cryptoBackend` property. Eventually `client.crypto` will go away, but that will be a breaking change in the js-sdk.
2022-12-12 17:49:39 +00:00
Michael Weimann
349c2c2587
Apply prettier formatting
2022-12-09 09:38:20 +01:00
Richard van der Hoff
39cf212628
Expose a new 'userHasCrossSigningKeys' method ( #2950 )
2022-12-08 11:53:38 +00:00
Michael Telatynski
8d018f9c2d
Enable noImplicitAny ( #2895 )
...
* Stash noImplicitAny work
* Enable noImplicitAny
* Update olm
* Fun
* Fix msgid stuff
* Fix tests
* Attempt to fix Browserify
2022-12-06 18:21:44 +00:00
Michael Telatynski
867a0ca7ee
Apply more strict typescript around the codebase ( #2778 )
...
* Apply more strict typescript around the codebase
* Fix tests
* Revert strict mode commit
* Iterate strict
* Iterate
* Iterate strict
* Iterate
* Fix tests
* Iterate
* Iterate strict
* Add tests
* Iterate
* Iterate
* Fix tests
* Fix tests
* Strict types be strict
* Fix types
* detectOpenHandles
* Strict
* Fix client not stopping
* Add sync peeking tests
* Make test happier
* More strict
* Iterate
* Stabilise
* Moar strictness
* Improve coverage
* Fix types
* Fix types
* Improve types further
* Fix types
* Improve typing of NamespacedValue
* Fix types
2022-10-21 11:44:40 +01:00
Michael Telatynski
34c5598a3f
Modernize http-api - move from browser-request to fetch ( #2719 )
2022-10-12 18:59:04 +01:00
Kerry
2c2686c910
Test typescriptification - cross-signing.spec ( #2441 )
...
* enamed: spec/unit/crypto/secrets.spec.js -> spec/unit/crypto/secrets.spec.ts
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix ts issues in secrets.spec
Signed-off-by: Kerry Archibald <kerrya@element.io >
* renamed: spec/unit/crypto/outgoing-room-key-requests.spec.js -> spec/unit/crypto/outgoing-room-key-requests.spec.ts
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix ts issues in outgoing-room-key-requests.spec.ts
Signed-off-by: Kerry Archibald <kerrya@element.io >
* renamed: spec/unit/crypto/DeviceList.spec.js -> spec/unit/crypto/DeviceList.spec.ts
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix ts issues in DeviceList.spec
Signed-off-by: Kerry Archibald <kerrya@element.io >
* renamed: spec/unit/crypto/CrossSigningInfo.spec.js -> spec/unit/crypto/CrossSigningInfo.spec.ts
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix ts issues in CrossSigningInfo.spec
Signed-off-by: Kerry Archibald <kerrya@element.io >
* renamed: spec/unit/crypto/cross-signing.spec.js -> spec/unit/crypto/cross-signing.spec.ts
Signed-off-by: Kerry Archibald <kerrya@element.io >
* fix most function call types in cross-signing.spec
Signed-off-by: Kerry Archibald <kerrya@element.io >
* typed events in cross-signing
Signed-off-by: Kerry Archibald <kerrya@element.io >
* type cross signing keys
Signed-off-by: Kerry Archibald <kerrya@element.io >
* convince the rest of the key types in cross-signing.spec
Signed-off-by: Kerry Archibald <kerrya@element.io >
* use correct type for IDevice
2022-06-08 13:03:02 +00:00