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(NODE-4607): add exports needed by legacy client #3396

Merged
merged 6 commits into from Sep 8, 2022

Conversation

nbbeeken
Copy link
Contributor

@nbbeeken nbbeeken commented Sep 2, 2022

Description

What is changing?

Added:

  • ClientSession
  • GridFSBucketWriteStream
  • GridFSBucketReadStream (not needed, but symmetry)
  • OrderedBulkOperation
  • UnorderedBulkOperation

What is the motivation for this change?

This is not a feature for users, but we need these exports at the top level to make the legacy wrapper package be able to import without using nested paths.

Open Q:
I want to add a little unit test that checks our exports, is checking just keys fine? and is there any obvious test organization changes you see?

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>
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@nbbeeken nbbeeken marked this pull request as ready for review September 6, 2022 16:34
@dariakp dariakp added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Sep 7, 2022
test/unit/index.test.ts Outdated Show resolved Hide resolved
test/unit/index.test.ts Outdated Show resolved Hide resolved
test/unit/index.test.ts Outdated Show resolved Hide resolved
test/unit/index.test.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@dariakp dariakp left a comment

Choose a reason for hiding this comment

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

just one small thing

test/unit/index.test.ts Outdated Show resolved Hide resolved
@dariakp dariakp added Team Review Needs review from team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Sep 7, 2022
@dariakp dariakp merged commit 972f760 into main Sep 8, 2022
@dariakp dariakp deleted the NODE-4607/exports-for-legacy branch September 8, 2022 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team Review Needs review from team
Projects
None yet
3 participants