-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
ggondim has created PR #626: fix: throw BSONVersionError according to its message in js-bson
What is changing?
- A comparison of BSON_MAJOR_VERSION
What is the motivation for this change?
- The message thrown by `BSONVersionError` is that the BSON type should be the current major *or later*.
- The symbol comparison at extended_json.js should be an operator `<` instead a strict `!==` to be in accordance with what the message stands.
Node Team notes:
- Our intention with the version check is to only allow bson types from the same major version into the serializer and EJSON stringifier
- We will update the error messages to clarify what version must be used with the current BSON serializer/stringifier