The MongoDB C Driver beta I announced two weeks ago has ripened into a release candidate. Here is what's changed between 1.3.0-beta0 and today's release, 1.3.0-rc0.

libbson

  • Parse DBRefs correctly from JSON.
  • CMake option to disable building tests: you can turn off ENABLE_TESTS.
  • Fix build warnings on some platforms.
  • The build system is refactored to declare the current version and latest release in one place.

mongoc_client_new, mongoc_client_new_from_uri, or mongoc_client_pool_new, the function logs an error and returns NULL. Before, the driver would attempt a non-SSL connection.
  • New functions to copy database and collection handles:
  • mongoc_collection_copy
  • mongoc_database_copy
  • If a GridFS chunk is missing, mongoc_gridfs_file_readv set the file's error to domain MONGOC_ERROR_GRIDFS and a new code MONGOC_ERROR_GRIDFS_CHUNK_MISSING.
  • Use electionId to detect a stale replica set primary during a network split.
  • Disconnect from replica set members whose "me" field does not match the connection address.
  • The client side matching feature, mongoc_matcher_t and related functions, are deprecated and scheduled for removal in version 2.0.
  • New CMake options: ENABLE_SSL, ENABLE_SASL, ENABLE_TESTS, and ENABLE_EXAMPLES.
  • Other fixes:

    • Memory leaks in mongoc_database_has_collection and mongoc_cursor_next.
    • Report writeConcern failures from findAndModify and from legacy writes.

    Links

    Thanks to everyone who contributed to this release candidate.

    • Hannes Magnusson
    • Matt Cotter
    • Jose Sebastian Battig
    • Claudio Canella
    • Victor Leschuk
    • Flavio Medeiros
    • Christopher Wang

    Peace,
    —A. Jesse Jiryu Davis