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

Remove allowInterop calls, fix types of callbacks, and use dart:js_interop #655

Merged
merged 5 commits into from
Nov 12, 2024

Conversation

srujzs
Copy link
Contributor

@srujzs srujzs commented Nov 7, 2024

TokenClientConfig, CodeClientConfig, and revoke all take Dart functions only and therefore we should not use allowInterop. Fixes the type expected by revoke to take a JS value that is compatible with the callback. Also removes uses of dart:js in favor of dart:js_interop.

…terop

TokenClientConfig, CodeClientConfig, and revoke all take Dart
functions only and therefore we should not use allowInterop.
Fixes the type expected by revoke to take a JS value that is
compatible with the callback. Also removes uses of dart:js in
favor of dart:js_interop.
Copy link
Collaborator

@kevmoo kevmoo left a comment

Choose a reason for hiding this comment

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

I'll follow-up with a changelog, etc!

googleapis_auth/CHANGELOG.md Outdated Show resolved Hide resolved
@srujzs
Copy link
Contributor Author

srujzs commented Nov 7, 2024

Thanks!

I'll follow-up with a changelog, etc!

I went ahead and added a changelog to reduce the churn. Let me know if that works!

@kevmoo
Copy link
Collaborator

kevmoo commented Nov 7, 2024

I'm so confused...huh?

@srujzs
Copy link
Contributor Author

srujzs commented Nov 7, 2024

I'm so confused...huh?

Which part? I removed that changelog entry because it's wrong - this only partially migrates to dart:js_interop. There's other code in this package that uses dart:js. If it's about the analysis errors, I'm chatting separately about that because that crash is an analyzer issue.

@kevmoo
Copy link
Collaborator

kevmoo commented Nov 7, 2024

Ah! okay...

@kevmoo kevmoo merged commit 13be862 into google:master Nov 12, 2024
21 checks passed
@srujzs
Copy link
Contributor Author

srujzs commented Nov 12, 2024

FYI @stereotype441 this has landed.

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.

2 participants