Announcing libbson and libmongoc 1.3.1

I'm pleased to announce version 1.3.1 of libbson and libmongoc, the libraries constituting the MongoDB C Driver. This is a run-of-the-mill bugfix release for you, unless you use GridFS with write concern, read concern, or read preference—in that case read carefully before upgrading.
libbson
bson_strnlenis off by one on Windows.BSON_HAVE_STRNLENconfig check used incorrectly.- Incompatibility with older CMake versions.
- Wrong-sized allocation in
bson_json_reader_new.
libmongoc
mongoc_client_get_gridfsnow copies the client's read preferences, read concern, and write concern to the newly createdmongoc_gridfs_t. Before this fix, GridFS operations were always executed with the default config: data was read from the primary, with the read concern level "local", and written with write concern "acknowledged". Now, if you have configured any of these options on themongoc_client_t, they are respected by themongoc_gridfs_t.- CMakeLists.txt now includes and installs the pkg-config files.
Links
Thanks to everyone who contributed to this release.
- A. Jesse Jiryu Davis
- Hannes Magnusson
- Christopher Wang
- Jean-Bernard Jansen
- Jeremy Mikola
- Jeroen Ooms
- Alex Bishop
Peace,
—A. Jesse Jiryu Davis