From 4aed7a0f30905ef66375cb34171384996586e98b Mon Sep 17 00:00:00 2001 From: admin-token-bot <36773031+admin-token-bot@users.noreply.github.com> Date: Mon, 30 Jan 2023 21:59:08 +0000 Subject: [PATCH] [Snyk] Upgrade bson from 4.7.0 to 4.7.1 (#2527) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit
The MongoDB Node.js team is pleased to announce version v4.7.1 of the bson package!
We invite you to try the bson library immediately, and report any issues to the NODE project.
The MongoDB Node.js team is pleased to announce version 4.7.0 of the bson package!
This release adds automatic UUID support. Now when
serializing or deserializing BSON you can work directly with the UUID
type without explicit conversion methods. The UUID class is now a
subclass of binary so all existing code will continue to work (including
the explicit conversion methods
.toUUID
/.toBinary
). The same automatic support
for UUID is also present in EJSON
.parse
/.stringify
.
Take a look at the following for the expected behavior:
const document = BSON.deserialize(bytes)
// { uuid: UUID('xxx') }
BSON.serialize(document)
// Buffer < document with uuid (binary subtype 4)
>
Special thanks to @
aditi-khare-mongoDB for all her hard work on this feature!!
We invite you to try the bson library immediately, and report any issues to the NODE project.