Skip to content

refactor(NODE-4906): remove internal callback usage of public APIs #3495

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

Merged
merged 4 commits into from
Dec 22, 2022

Conversation

nbbeeken
Copy link
Contributor

@nbbeeken nbbeeken commented Dec 21, 2022

Description

What is changing?

Remove internal callback usage of public methods. In order to proceed with the typescript changes to callback support it makes sense for us to correct these few places where we use callbacks that will become type errors in NODE-4522.

This is the same kind of refactor for GridFS in #3493

What is the motivation for this change?

Typescript compat with public API.

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@nbbeeken nbbeeken changed the title refactor(NODE-4906): remove internal callback usage refactor(NODE-4906): remove internal callback usage of public APIs Dec 21, 2022
@nbbeeken nbbeeken marked this pull request as ready for review December 21, 2022 20:14
@durran durran added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Dec 22, 2022
@durran durran merged commit 8fd1822 into main Dec 22, 2022
@durran durran deleted the NODE-4522-rm-internal-callback-usage branch December 22, 2022 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Primary Review In Review with primary reviewer, not yet ready for team's eyes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants