github mongodb/mongo-c-driver 2.6.0
mongo-c-driver 2.6.0

48 minutes ago

Announcing 2.6.0 of libbson and libmongoc, the libraries constituting the MongoDB C Driver.

libbson

Improvements

  • Improve performance of bson_utf8_validate.
  • Improve performance of bson_oid_to_string on non-x86 architectures.

libmongoc

Notes

  • Upgrade bundled zlib from 1.3.1 to 1.3.2.
  • Raise required version of libmongocrypt from 1.20.0 to 1.21.0 to support In-Use Encryption (corresponds to the CMake option: ENABLE_CLIENT_SIDE_ENCRYPTION).
    • The prefixPreview, suffixPreview, and substringPreview query types are no longer supported by In-Use Encryption and now return an error. Use the prefix, suffix, and substring query types instead.
  • The minimum supported MongoDB Server version is raised from 4.2 to 4.4. This is in accordance with MongoDB Software Lifecycle Schedules. Support for MongoDB Server 4.2 is dropped in this release.

New Features

  • Add the srvAllowedHostsSuffix URI option.
  • Support HTTP proxies for In-Use Encryption KMS connections by setting a KMS connect callback (mongoc_kms_connect_callback_t) with mongoc_client_encryption_opts_set_kms_connect_callback or mongoc_auto_encryption_opts_set_kms_connect_callback.

Improvements

  • Allow valid SRV hostnames with fewer than three labels.
  • Report container metadata (Docker, Kubernetes) as env.container in the connection handshake.

Links:

Thanks to everyone who contributed to this release.

  • Kevin Albertson
  • Ezra Chung
  • Connor MacDonald
  • Sabrina Chang
  • Roberto C. Sánchez
  • Colby Pike
  • Jérôme Tamarelle
  • maozguttman

Don't miss a new mongo-c-driver release

NewReleases is sending notifications on new releases.