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

refactor: Eliminate CancellationToken, use AbortSignal instead #680

Merged
merged 10 commits into from
Dec 13, 2024

Conversation

jbms
Copy link
Collaborator

@jbms jbms commented Dec 8, 2024

CancellationToken was introduced before AbortSignal was supported by browsers.

This commit also unifies handling of authentication status messages and popup windows. Some features previously supported only for middleauth are now supported for all credential providers:

  • Display authentication status message in "modal" mode by default
  • Detecting when authentication popup window is closed
  • Closing the popup if the user navigates away from the page without completing authentication.

@jbms jbms force-pushed the refactor-abort-signal branch 7 times, most recently from 794c2c7 to c2386f8 Compare December 12, 2024 01:50
jbms added 2 commits December 11, 2024 20:53
CancellationToken was introduced before `AbortSignal` was supported by
browsers.

This commit also unifies handling of authentication status messages and
popup windows.  Some features previously supported only for middleauth
are now supported for all credential providers:

- Display authentication status message in "modal" mode by default
- Detecting when authentication popup window is closed
- Closing the popup if the user navigates away from the page without
  completing authentication.
This aligns with native JavaScript class properties and improves
compatibility with other transpilers/bundlers, like swc and rspack, like
that can have varying behavior when `useDefineForClassFields=false`.
@jbms jbms force-pushed the refactor-abort-signal branch 3 times, most recently from 7dee8cc to c408c75 Compare December 12, 2024 21:01
@jbms jbms force-pushed the refactor-abort-signal branch from c408c75 to 24c5bad Compare December 12, 2024 22:07
@jbms jbms merged commit d5b2650 into master Dec 13, 2024
26 checks passed
@jbms jbms deleted the refactor-abort-signal branch December 13, 2024 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant