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_stringon 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, andsubstringPreviewquery types are no longer supported by In-Use Encryption and now return an error. Use theprefix,suffix, andsubstringquery types instead.
- The
- 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
srvAllowedHostsSuffixURI option. - Support HTTP proxies for In-Use Encryption KMS connections by setting a KMS connect callback (
mongoc_kms_connect_callback_t) withmongoc_client_encryption_opts_set_kms_connect_callbackormongoc_auto_encryption_opts_set_kms_connect_callback.
Improvements
- Allow valid SRV hostnames with fewer than three labels.
- Report container metadata (Docker, Kubernetes) as
env.containerin 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