Skip to content

v5.2.0

Compare
Choose a tag to compare
@nbbeeken nbbeeken released this 04 Apr 16:10
· 105 commits to main since this release
91b84ed

The MongoDB Node.js team is pleased to announce version 5.2.0 of the bson package!

Release Highlights

With this release we've added APIs to create BSON Binary / UUID / ObjectId types from hex and base64 strings.

class ObjectId {
  static createFromHexString(hex: string): ObjectId;
  static createFromBase64(base64: string): ObjectId;
}

class Binary {
  static createFromHexString(hex: string, subType? number): Binary;
  static createFromBase64(base64: string, subType? number): Binary;
}

class UUID extends Binary {
  static override createFromHexString(hex: string): UUID;
  static override createFromBase64(base64: string): UUID;
}

Features

Documentation

We invite you to try the bson library immediately, and report any issues to the NODE project.