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

feat!(deps): bump driver to 6.7.0 MONGOSH-1790 #191

Merged
merged 6 commits into from
Jun 4, 2024
Merged

Conversation

mabaasit
Copy link
Contributor

@mabaasit mabaasit commented Jun 3, 2024

No description provided.

@mabaasit mabaasit marked this pull request as draft June 3, 2024 14:58
@mabaasit mabaasit marked this pull request as ready for review June 4, 2024 09:08
@addaleax addaleax changed the title chore(deps): bump driver to 6.7.0 MONGOSH-1790 feat!(deps): bump driver to 6.7.0 MONGOSH-1790 Jun 4, 2024
@@ -74,7 +74,7 @@
"gen-esm-wrapper": "^1.1.0",
"husky": "^8.0.3",
"mocha": "^10.2.0",
"mongodb": "^5.4.0",
"mongodb": "^6.7.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

This is already close to the maximal breaking change we could do for this work, we might as well remove abort-controller too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you mean our OIDCAbortSignal, right?

Copy link
Contributor

Choose a reason for hiding this comment

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

No – I mean abort-controller 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, i noticed it in deps! will remove it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed in 67ede2b

src/types.ts Outdated
timeoutSeconds?: number;
timeoutContext?: OIDCAbortSignal;
version: number;
timeoutContext: OIDCAbortSignal;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
timeoutContext: OIDCAbortSignal;
timeoutContext?: OIDCAbortSignal;

Or is there a specific reason why this needs to be required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

driver has marked it as required prop. if we don't have to align this bit, i'll leave it as optional

Copy link
Contributor

Choose a reason for hiding this comment

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

We can always be more accepting than the driver

abortSignal?: OIDCAbortSignal
): ReturnType<OIDCCallbackFunction> {
return plugin.mongoClientOptions.authMechanismProperties.OIDC_HUMAN_CALLBACK({
timeoutContext: abortSignal ?? new AbortController().signal,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
timeoutContext: abortSignal ?? new AbortController().signal,
timeoutContext: abortSignal,

@mabaasit mabaasit merged commit 2f033b1 into main Jun 4, 2024
14 of 15 checks passed
@mabaasit mabaasit deleted the update-driver branch June 4, 2024 13:44
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