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

fix: Fix backwards compatibility with older BSON package versions #411

Merged
merged 4 commits into from
Nov 30, 2020

Conversation

nbbeeken
Copy link
Contributor

The isBuffer check in the buffer module was too strict and led to a failure to deal with older BSON module Binary types. There is now an improved more relaxed method.

NODE-2848

I added testing for this, we can easily expand it to cover more types/cases with older versions of the library.

The isBuffer check in the buffer module was too strict and led to a failure to deal with older BSON module Binary types. There is now an improved more relaxed method.

NODE-2848
@nbbeeken nbbeeken requested review from mbroadst and emadum November 9, 2020 22:04
Copy link
Contributor

@emadum emadum left a comment

Choose a reason for hiding this comment

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

LGTM, just one comment request 👍

@@ -0,0 +1,74 @@
'use strict';
Copy link
Contributor

Choose a reason for hiding this comment

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

I think a comment block somewhere at the top of this file would be useful to future maintainers, explaining what it is doing and why it's needed.

@nbbeeken nbbeeken merged commit 5167be2 into master Nov 30, 2020
@nbbeeken nbbeeken deleted the NODE-2848/fix-version-interop branch November 30, 2020 15:22
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