Skip to content

Releases: mongodb/mongo-c-driver

mongo-c-driver 2.3.1

02 Jun 12:57
2.3.1
e44471f

Choose a tag to compare

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

libbson

Fixes

  • Fix length check in bson_new_from_buffer.
  • Fix documentation generation on Sphinx 9.0+.

libmongoc

Improvements

  • Improve forward compatibility with OpenSSL 4.0.0 when handling EAGAIN errors in old-style read callbacks where BIO_FLAGS_AUTO_EOF is enabled.
  • Improve decompressed message length constraints.

Fixes

  • Fix documentation generation on Sphinx 9.0+.
  • Propagate username to custom OIDC callback.

Links:

Thanks to everyone who contributed to this release.

  • Ezra Chung
  • Colby Pike
  • Kevin Albertson

mongo-c-driver 2.3.0

17 Apr 11:22
2.3.0
dcd43fb

Choose a tag to compare

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

libbson

Improvements

  • bson_t is now trivially relocatable.

Deprecated

  • bson_append_array_begin. Use bson_append_array_builder_begin or bson_append_array_unsafe_begin instead.

libmongoc

New Features

  • Added support for MongoDB's Intelligent Workload Management (IWM) and ingress connection rate limiting features. The driver now gracefully handles write-blocking scenarios and optimizes connection establishment during high-load conditions to maintain application availability.
    • Supported on all commands.
    • Custom application retry logic may need to be adjusted to avoid retrying too long.
    • Upgrade is recommended to avoid impacts of server changes related to overload errors.
      • If not upgrading, custom application retry logic may need to be adjusted to handle higher rates of overload errors. See Overload Errors.
    • Add URI option maxAdaptiveRetries to configure the maximum number of retries for operations that fail with a SystemOverloadedError (default: 2).
    • Add URI option enableOverloadRetargeting to control whether retries of SystemOverloadedError will attempt to use a different server (default: false).
  • Support appending client handshake metadata after initialization and per-client/pool.
    • Adds mongoc_client_append_metadata and mongoc_client_pool_append_metadata.
    • Useful for projects wrapping the C driver to self-identify.
  • Support Kubernetes as a credential provider for MONGODB-OIDC authentication.

Improvements

  • Improve cursor handling on client-side timeouts:
    • Send killCursors after cursor receives client-side timeout.
    • Break early if change stream resumes on repeated client-side timeouts.

Removed

  • Support for macOS versions 13 and older. These versions are EOL and not tested. Use macOS version 14 or newer.

Links:

Thanks to everyone who contributed to this release.

  • Kevin Albertson
  • Connor MacDonald
  • Ezra Chung
  • GitHub user: user-45-20
  • Colby Pike
  • GitHub user: swigger

mongo-c-driver 2.2.4

07 Apr 13:59
2.2.4
104e2f8

Choose a tag to compare

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

libbson

No changes since 2.2.3. Version incremented to match the libmongoc version.

libmongoc

Fixes:

  • Fix handling of corrupt GridFS files.

Links:

Thanks to everyone who contributed to this release.

  • Kevin Albertson

mongo-c-driver 1.30.8

07 Apr 13:39
1.30.8
57dba9c

Choose a tag to compare

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

No further 1.x releases are planned. See "v1 support notice" in 2.0.0 release notes.

libbson

No changes since 1.30.7. Version incremented to match the libmongoc version.

libmongoc

Fixes:

  • Fix handling of corrupt GridFS files.
  • Fix handling in HTTP response parser.

Links:

Thanks to everyone who contributed to this release.

  • Kevin Albertson
  • Remi Collet

mongo-c-driver 2.2.3

03 Mar 15:19
2.2.3
84f6db0

Choose a tag to compare

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

libbson

No changes since 2.2.2. Version incremented to match the libmongoc version.

libmongoc

Fixed

  • Fix handling in HTTP response parser.

Links:

Thanks to everyone who contributed to this release.

  • Kevin Albertson

mongo-c-driver 2.2.2

03 Feb 16:22
2.2.2
4eb4936

Choose a tag to compare

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

libbson

No changes since 2.2.1. Version incremented to match the libmongoc version.

libmongoc

Fixed

  • Restore $clusterTime on first command of single-threaded client.
  • Wait between polling if serverMonitoringMode=poll is used on server supporting streaming.

Links:

Thanks to everyone who contributed to this release.

  • Connor MacDonald
  • Kevin Albertson

mongo-c-driver 1.30.7

03 Feb 15:15
1.30.7
33b9c14

Choose a tag to compare

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

libbson

No changes since 1.30.6. Version incremented to match the libmongoc version.

libmongoc

Fixes:

  • Fix documentation build with python-docutils 0.22.2
  • Omit saslSupportedMechs in single-threaded monitoring commands.

Links:

Thanks to everyone who contributed to this release.

  • Ezra Chung
  • Julia Garland

mongo-c-driver 2.2.1

09 Dec 13:38
2.2.1
0694203

Choose a tag to compare

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

libbson

No changes since 2.2.0. Version incremented to match the libmongoc version.

libmongoc

Fixed

  • Fix applied timeout on Azure and GCP KMS requests.
  • Do not error if server reply to bulkWrite omits nModified.

Links:

Thanks to everyone who contributed to this release.

  • Kevin Albertson

mongo-c-driver 2.2.0

25 Nov 14:02
2.2.0
9ad7502

Choose a tag to compare

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

libbson

Improvements

  • Increase resolution of bson_get_monotonic_time on Windows.

Deprecated

  • Support for macOS 11 (EOL since September 2023) and macOS 12 (EOL since September 2024).

Removed

  • Support for Visual Studio 2015 (EOL since October 2025). Use Visual Studio 2017 or newer.

libmongoc

New Features

  • MONGODB-OIDC authentication mechanism.
    • Support a custom callback with mongoc_client_set_oidc_callback and mongoc_client_pool_set_oidc_callback.
    • Support Azure environment with property environment:azure.
    • Support GCP environment with property environment:gcp.
    • Kubernetes environment is not-yet supported.
  • Add features to mongoc_bulkwrite_t:
    • Add mongoc_bulkwrite_is_acknowledged.
    • Add mongoc_bulkwriteresult_serverid.
    • Support Queryable Encryption.
  • Support text indexes for Queryable Encryption:
    • Add mongoc_client_encryption_encrypt_text_opts_t.
    • Substring, prefix and suffix search are in preview and should be used for experimental workloads only. These features are unstable and their security is not guaranteed until released as Generally Available (GA). The GA version of these features may not be backwards compatible with the preview version
  • Support TLS v1.3 with Windows Secure Channel.

Fixed

  • Do not try to resume when iterating a closed change stream.

Notes

  • Raise required version of libmongocrypt from 1.13.0 to 1.15.0 to support In-Use Encryption (corresponds to the CMake option: ENABLE_CLIENT_SIDE_ENCRYPTION).

Deprecated

  • Support for macOS 11 (EOL since September 2023) and macOS 12 (EOL since September 2024).

Removed

  • Support for Visual Studio 2015 (EOL since October 2025). Use Visual Studio 2017 or newer.

Links:

Thanks to everyone who contributed to this release.

  • Kevin Albertson
  • Connor MacDonald
  • Julia Garland
  • Ezra Chung
  • Adrian Dole
  • Colby Pike
  • Roberto C. Sánchez
  • shubhamhii

mongo-c-driver 2.1.2

07 Oct 14:00
2.1.2
81c27dd

Choose a tag to compare

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

libbson

No changes since 2.1.1. Version incremented to match the libmongoc version.

libmongoc

Fixes

  • Fix write command options handling.

Links:

Thanks to everyone who contributed to this release.

  • Ezra Chung
  • Kevin Albertson