Skip to content

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 emadum and mbroadst 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

2 participants