Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve types around login, registration, UIA and identity servers #3537

Merged
merged 14 commits into from
Jul 4, 2023

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Jul 3, 2023


Here's what your changelog entry will look like:

🚨 BREAKING CHANGES

  • Improve types around login, registration, UIA and identity servers (#3537).

Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks generally like an improvement, though it's a bit sprawling: it would have been nice to break it up into smaller changes.

src/@types/auth.ts Show resolved Hide resolved
src/@types/auth.ts Outdated Show resolved Hide resolved
src/@types/auth.ts Show resolved Hide resolved
src/@types/auth.ts Outdated Show resolved Hide resolved
src/client.ts Outdated
@@ -7824,11 +7814,10 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
}

/**
* @returns Promise which resolves: TODO
@returns Promise which resolves to a LoginResponse object
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@returns Promise which resolves to a LoginResponse object
* @returns Promise which resolves to a LoginResponse object

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is still broken I think?

src/client.ts Outdated Show resolved Hide resolved
src/client.ts Show resolved Hide resolved
src/interactive-auth.ts Show resolved Hide resolved
src/interactive-auth.ts Outdated Show resolved Hide resolved
src/interactive-auth.ts Show resolved Hide resolved
@t3chguy t3chguy added X-Breaking-Change T-Enhancement and removed T-Task Tasks for the team like planning labels Jul 4, 2023
src/@types/auth.ts Outdated Show resolved Hide resolved
Comment on lines +92 to +94
* A client can identify a user using their Matrix ID.
* This can either be the fully qualified Matrix user ID, or just the localpart of the user ID.
* @see https://spec.matrix.org/v1.7/client-server-api/#matrix-user-id
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is certainly helpful, but for bonus points it would be nice to say where this thing is used: if I look at https://pr3537--js-sdk-docs-previews.netlify.app/stable/types/_internal_.userloginidentifier it's just somewhat lacking in context.

Anyway no need to change this now but something I think we could be better at in future.

src/client.ts Outdated
@@ -7824,11 +7814,10 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
}

/**
* @returns Promise which resolves: TODO
@returns Promise which resolves to a LoginResponse object
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is still broken I think?

src/interactive-auth.ts Outdated Show resolved Hide resolved
src/interactive-auth.ts Outdated Show resolved Hide resolved
src/@types/registration.ts Outdated Show resolved Hide resolved
src/@types/registration.ts Outdated Show resolved Hide resolved
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks grand

src/@types/registration.ts Outdated Show resolved Hide resolved
@t3chguy t3chguy enabled auto-merge July 4, 2023 13:08
@t3chguy t3chguy added this pull request to the merge queue Jul 4, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 4, 2023
@t3chguy t3chguy merged commit 1c1ac13 into develop Jul 4, 2023
@t3chguy t3chguy deleted the t3chguy/types/3jul23 branch July 4, 2023 13:49
su-ex added a commit to SchildiChat/matrix-js-sdk that referenced this pull request Feb 24, 2024
* Drop support for Node 16 ([\matrix-org#3533](matrix-org#3533)).
* Improve types around login, registration, UIA and identity servers ([\matrix-org#3537](matrix-org#3537)).
* **The Browserify artifact is being deprecated, scheduled for removal in the October 10th release cycle. (matrix-org#3189)**
* Simplify `MatrixClient::setPowerLevel` API ([\matrix-org#3570](matrix-org#3570)). Fixes element-hq/element-web#13900 and matrix-org#1844.
* Deprecate `VerificationRequest.getQRCodeBytes` and replace it with the asynchronous `generateQRCode`. ([\matrix-org#3562](matrix-org#3562)).
* Deprecate `VerificationRequest.beginKeyVerification()` in favour of `VerificationRequest.startVerification()`. ([\matrix-org#3528](matrix-org#3528)).
* Deprecate `Crypto.VerificationRequest` application event, replacing it with `Crypto.VerificationRequestReceived`. ([\matrix-org#3514](matrix-org#3514)).
* Throw saner error when peeking has its room pulled out from under it ([\matrix-org#3577](matrix-org#3577)). Fixes element-hq/element-web#18679.
* OIDC: Log in ([\matrix-org#3554](matrix-org#3554)). Contributed by @kerryarchibald.
* Prevent threads code from making identical simultaneous API hits ([\matrix-org#3541](matrix-org#3541)). Fixes element-hq/element-web#25395.
* Update IUnsigned type to be extensible ([\matrix-org#3547](matrix-org#3547)).
* add stop() api to BackupManager for clean shutdown ([\matrix-org#3553](matrix-org#3553)).
* Log the message ID of any undecryptable to-device messages ([\matrix-org#3543](matrix-org#3543)).
* Ignore thread relations on state events for consistency with edits ([\matrix-org#3540](matrix-org#3540)).
* OIDC: validate id token ([\matrix-org#3531](matrix-org#3531)). Contributed by @kerryarchibald.
* Fix read receipt sending behaviour around thread roots ([\matrix-org#3600](matrix-org#3600)).
* Fix `TypedEventEmitter::removeAllListeners(void)` not working ([\matrix-org#3561](matrix-org#3561)).
* Don't allow Olm unwedging rate-limiting to race ([\matrix-org#3549](matrix-org#3549)). Fixes element-hq/element-web#25716.
* Fix an instance of failed to decrypt error when an in flight `/keys/query` fails. ([\matrix-org#3486](matrix-org#3486)).
* Use the right anchor emoji for SAS verification ([\matrix-org#3534](matrix-org#3534)).
* fix a bug which caused the wrong emoji to be shown during SAS device verification. ([\matrix-org#3523](matrix-org#3523)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants