Skip to content

Releases: mongodb/mongo-c-driver

mongo-c-driver 1.9.2

12 Jan 03:00
1.9.2
c063949
Compare
Choose a tag to compare

No change since 1.9.1; released to keep pace with libbson's version number.

-- A. Jesse Jiryu Davis

mongo-c-driver 1.9.1

09 Jan 22:30
1.9.1
a6964c8
Compare
Choose a tag to compare

It is my pleasure to announce mongo-c-driver 1.9.1. This release fixes a bug
that caused session ID to be included in authentication and server monitoring
commands. Thanks to Jeremy Mikola for finding and fixing the issue.

Peace,
-- A. Jesse Jiryu Davis

mongo-c-driver 1.9.0

21 Dec 02:50
1.9.0
58a471b
Compare
Choose a tag to compare

It is my pleasure to announce mongo-c-driver 1.9.0. This version drops support
for MongoDB 2.4 and adds support for MongoDB 3.6 features:

  • New struct mongoc_change_stream_t to watch a collection for changes.
  • New struct mongoc_client_session_t represents a MongoDB 3.6 session,
    which supports causal consistency: you are guaranteed to read your writes
    and to perform monotonic reads, even when reading from secondaries or in
    a sharded cluster.
  • New functions that accept flexible options as a BSON document. These
    accept a "sessionId" option and any future options. In addition, the
    two new "update" functions accept the "arrayFilters" option that is new
    in MongoDB 3.6:
    mongoc_collection_insert_one
    mongoc_collection_insert_many
    mongoc_collection_update_one
    mongoc_collection_update_many
    mongoc_collection_replace_one
    mongoc_collection_delete_one
    mongoc_collection_delete_many
    mongoc_client_command_with_opts
    mongoc_database_command_with_opts
    mongoc_collection_command_with_opts
    mongoc_client_find_databases_with_opts
    mongoc_client_get_database_names_with_opts
    mongoc_collection_create_bulk_operation_with_opts
    mongoc_collection_find_indexes_with_opts
    mongoc_database_find_collections_with_opts
    mongoc_database_get_collection_names_with_opts
  • New URI option "retryWrites=true" safely and automatically retries certain
    write operations if the server is a MongoDB 3.6 replica set or sharded
    cluster.
  • Support for MongoDB OP_MSG wire protocol.

Additional changes not specific to MongoDB 3.6:

  • Support for mongodb+srv URIs to query DNS for SRV and TXT records that
    configure the connection to MongoDB.
  • Support LibreSSL with CMake build
  • The "minPoolSize" URI option is deprecated: it's confusing and not useful.

Bug fixes:

  • mongoc_bulk_operation_execute did not always initialize "reply".
  • Fix C99 pedantic warnings.

Thanks to everyone who contributed to the development of this release.

  • A. Jesse Jiryu Davis
  • Hannes Magnusson
  • Jeremy Mikola
  • Kevin Albertson
  • Jeroen Ooms
  • Iulian Rotaru
  • Derick Rethans
  • Graham Whitted
  • Brian Moss
  • Alex Masterov
  • Michael Kuhn
  • Sriharsha Vardhan

Peace,
-- A. Jesse Jiryu Davis

mongo-c-driver 1.8.2

16 Nov 22:45
1.8.2
f09af36
Compare
Choose a tag to compare

It is my pleasure to announce mongo-c-driver 1.8.2. This release fixes the
following bugs:

  • Remove option to bundle the Snappy compression library, it caused issues
    for programs linking to libmongoc
  • Fix pkg-config and CMake config file flags for programs that statically
    link to libmongoc when libmongoc is statically linked to zLib
  • The configure flag "--with-zlib=no" was ignored
  • Crash in authentication when username is NULL

Thanks to everyone who contributed to the development of this release.

  • A. Jesse Jiryu Davis
  • Derick Rethans
  • Hannes Magnusson
  • Jeremy Mikola

Peace,
-- A. Jesse Jiryu Davis

mongo-c-driver 1.8.1

11 Oct 23:52
1.8.1
5587318
Compare
Choose a tag to compare

It is my pleasure to announce mongo-c-driver 1.8.1. This release fixes the
following bugs:

  • Remove a syntax error in the configure script that affects some shells.
  • The configure script respects --with-zlib=system and --with-snappy=system.
  • The internal mongoc_server_description_t struct is properly reinitialized
    after a network error.
  • Fix the encoding of this NEWS file.

Thanks to everyone who contributed to the development of this release.

  • A. Jesse Jiryu Davis
  • Jeremy Mikola

Peace,
-- A. Jesse Jiryu Davis

mongo-c-driver 1.8.0

13 Sep 19:29
1.8.0
2662349
Compare
Choose a tag to compare
  • The zLib and Snappy compression libraries are bundled if not available.
    Wire protocol compression is enabled on Windows.
    • mongoc_collection_find_and_modify_with_opts now respects a "writeConcern"
      field in the "extra" BSON document in its mongoc_find_and_modify_opts_t.
    • The command functions mongoc_client_read_write_command_with_opts,
      mongoc_database_read_write_command_with_opts, and
      mongoc_collection_read_write_command_with_opts now ignore the "read_prefs"
      parameter.
    • mongoc_collection_create_index and mongoc_collection_create_index_with_opts
      are both now deprecated. Use mongoc_database_write_command_with_opts
      instead; a guide to creating an index using that function has been added.
    • Use select, not WSAPoll, on Windows.
    • Always mark a server "Unknown" after a network error (besides a timeout).
    • mongoc_client_pool_t sends platform metadata to the server; before, only a
      single mongoc_client_t did.
    • New stream method mongoc_stream_timed_out.
    • Wire version checks introduced in 1.8.0 will prevent the driver from
      connecting to a future MongoDB server version if its wire protocol is
      incompatible.
    • New CMake option ENABLE_MAINTAINER_FLAGS.

Thanks to everyone who contributed to the development of this release.

  • A. Jesse Jiryu Davis
  • Hannes Magnusson
  • Jeremy Mikola

Peace,
-- A. Jesse Jiryu Davis

mongo-c-driver 1.7.0

09 Aug 16:23
1.7.0
494e4bb
Compare
Choose a tag to compare

It is my please to announce mongo-c-driver 1.7.0.

New features and bug fixes:

  • CMake build now installs .pc files for programs that link to libmongoc using
    pkg-config. Both the CMake and Autotools build systems now install .cmake
    files for programs that link to libmongoc using CMake. Linking to libmongoc
    statically or dynamically is now much more convenient. See the new tutorial
    section "Include and link libmongoc in your C program".
  • New CMake option ENABLE_STATIC can be ON, OFF, or AUTO (the default)
  • Minimum required CMake version has been increased to 3.1.
  • CMake remains experimental on non-Windows platforms and issues a warning now
  • Support for wire compression.
    • Support for snappy and zlib. MongoDB 3.4 only supports snappy, while zlib
      support is expected in MongoDB 3.6.
      The enable, configure mongoc like so:
      ./configure --with-snappy --with-zlib
    • New functions: mongoc_uri_get_compressors & mongoc_uri_set_compressors, to
      get and set compressor configuration on mongoc_uri_t
    • Added support for comma seperated "compressors" connection string option (e.g.
      mongodb://localhost/?compressors=snappy,zlib)
    • Added support for configuring zlib compression level in the connection string
      (e.g. mongodb://localhost/?compressors=zlib&zlibcompressionlevel=8)
  • Now requires the use of CMake config files for libbson to build libmongoc
    with CMake
  • Added pkg-config support for libressl.
  • New function mongoc_uri_set_auth_mechanism to update the authentication
    mechanism of a mongoc_uri_t after it is created from a string.
  • New function mongoc_bulk_operation_insert_with_opts provides immediate
    error checking.
  • New function mongoc_uri_new_with_error provides a way to parse a connection
    string, and retrieve the failure reason, if any.
  • Support for MongoDB Connection String specification
    • All connection string options are now represented by MONGOC_URI_xxx macros
    • Paths to Unix Domain Sockets must be url encoded
    • Repeated options now issue warnings
    • Special characters in username, password and other values must be url encoded
    • Unsupported connection string options now issue warnings
    • Boolean values can now be represented as true/yes/y/t/1 and false/no/n/f/0.
    • Case is now preserved in Unix domain paths.
  • New function mongoc_cursor_error_document provides access to server's error
    reply if a query or command fails.
  • New function mongoc_write_concern_is_default determines whether any write
    concern options have been set, and mongoc_read_concern_is_default checks if
    read concern options are set.
  • mongoc_gridfs_find_one_with_opts optimized to use limit 1.

Thanks to everyone who contributed to the development of this release.

  • Hannes Magnusson
  • A. Jesse Jiryu Davis
  • David Golden
  • Jeremy Mikola
  • Bernard Spil
  • Aleksander Melnikov
  • Adam Seering
  • Remi Collet

Peace,
-- A. Jesse Jiryu Davis

mongo-c-driver 1.6.3

23 May 17:25
1.6.3
77424df
Compare
Choose a tag to compare

It is my pleasure to announce mongo-c-driver 1.6.3. This release fixes two bugs
in the TLS layer that interfered with connections to MongoDB Atlas:

  • mongoc_client_pool_t did not apply all TLS options to pooled connections
  • SNI wasn't provided when allow_invalid_hostname is set

Thanks to everyone who contributed to the development of this release.

  • Hannes Magnusson

Peace,
-- A. Jesse Jiryu Davis

mongo-c-driver 1.6.2

27 Mar 18:39
1.6.2
1436e46
Compare
Choose a tag to compare

It is my pleasure to announce mongo-c-driver 1.6.2. This release further
improves HP-UX compatibility, especially when building with CMake, adds missing
Windows SSPI files to the distribution tarball, and fixes distribution issues
we introduced when porting the documentation from Mallard to Sphinx.

Thanks to everyone who contributed to the development of this release.

  • A. Jesse Jiryu Davis
  • Aleksander Melnikov

Peace,
-- A. Jesse Jiryu Davis

mongo-c-driver 1.6.1

07 Mar 13:45
1.6.1
7522d03
Compare
Choose a tag to compare

It is my pleasure to announce mongo-c-driver 1.6.1. This is a bugfix release:

  • Correct the rules to parse localThresholdMS option from the MongoDB URI.
  • Prevent crash in mongoc_cursor_destroy if "query" or "filter" are invalid.
  • Include a file, mongoc-cluster-sspi.c, that had been omitted from the
    release archive.
  • Fix logic bugs in mongoc_bulk_operation_t validation code.

Thanks to everyone who contributed to the development of this release.

  • A. Jesse Jiryu Davis
  • Jeremy Mikola
  • Remi Collet

Peace,
-- A. Jesse Jiryu Davis