Announcing libbson and libmongoc 1.8.0
I’m pleased to announce version 1.8.0 of libbson and libmongoc, the libraries constituting the MongoDB C Driver.
libbson
New features and bugfixes:
- Make symbols bson_get_major_version, bson_get_minor_version, bson_get_micro_version, bson_get_version, and bson_check_version available to C++ programs.
- New CMake option ENABLE_MAINTAINER_FLAGS.
- Crash iterating over invalid code with scope.
libmongoc
- 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.
- These command functions now ignore “read_prefs”:
- mongoc_client_read_write_command_with_opts,
- mongoc_database_read_write_command_with_opts
- mongoc_collection_read_write_command_with_opts
- These functions are both deprecated, use mongoc_database_write_command_with_opts instead. A guide to creating an index using that function has been added.
- mongoc_collection_create_index
- mongoc_collection_create_index_with_opts
- 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.
Links:
Thanks to everyone who contributed to this release.
- A. Jesse Jiryu Davis
- Hannes Magnusson
- Jeremy Mikola
- Kevin Albertson
- Michael Kuhn
Image © A. Jesse Jiryu Davis