MongoDB Node.js Driver 5.2.0 Released

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

Release Highlights

This release includes driver support for automatically obtaining Azure credentials when using automatic client side encryption. You can find a tutorial for using Azure and automatic encryption here: Use Automatic Queryable Encryption with Azure

Additionally, we have a number of minor bug fixes listed below.

NOTE: This release includes some experimental features that are not yet ready for use. As a reminder, anything marked experimental is not a part of the stable driver API and is subject to change without notice.

BSON 5.2 Release Highlights

With this release we have pulled in BSON 5.2.0 which has 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

  • NODE-5077: automatic Azure kms credential refresh (#3599) (8e87e5c)

Bug Fixes

  • NODE-3998: metadata duplication in handshake (#3615) (6d894d6)
  • NODE-4518: error message with invalid authMechanism is provided (#3597) (1a16b7e)
  • NODE-4854: set timeout on write and reset on message (#3582) (4a7b5ec)
  • NODE-5106: prevent multiple mongo client connect()s from leaking topology (#3596) (eb836bb)
  • NODE-5126: find operations fail when passed an ObjectId as filter (#3604) (2647b61)

Documentation

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

1 Like

This topic was automatically closed after 90 days. New replies are no longer allowed.