MongoDB C++11 Driver r4.1.0
Fixed
- The API version of auto-downloaded C Driver libraries no longer incorrectly inherits the C++ Driver's
BUILD_VERSIONvalue. - Potentially unchecked narrowing conversion in
bsoncxx::v_noabi::builder::core::append()now throws an exception with error codek_cannot_append_string.
Added
storage_engine()inmongocxx::v_noabi::options::index.- Support for sort option with replaceOne and updateOne operations.
- Support for BSON Binary Vector.
- Support $lookup in CSFLE and QE.
Deprecated
- Support for MacOS 11 (EOL since Nov 2020) and MacOS 12 (EOL since Oct 2021).
storage_options()inmongocxx::v_noabi::options::index: usestorage_engine()instead.base_storage_optionsandwiredtiger_storage_optionsinmongocxx::v_noabi::options::indexare also deprecated.
hedge()inmongocxx::v_noabi::read_preference: hedged reads will no longer be supported by MongoDB.
Changed
- Bump the minimum required C Driver version to 2.0.0.
- Set CMake maximum policy version to 4.0.
- The CMake minimum required version is still 3.15.
- C++17 polyfill implementations for
optional<T>andstring_vieware now declared in thebsoncxx::v1::stdxnamespace.- The
bsoncxx::v_noabi::stdxnamespace now contains type aliases to theirv1equivalents. - This is an ABI breaking change for all symbols which reference
bsoncxx::v_noabi::stdxin their declaration (including mongocxx library symbols).- This does not affect users who compile with C++17 or newer and have not set
BSONCXX_POLY_USE_IMPLS=ON.
- This does not affect users who compile with C++17 or newer and have not set
- The
See the full list of changes in Jira.
Feedback
To report a bug or request a feature, please open a ticket in the MongoDB issue management tool Jira:
- Create an account and login.
- Navigate to the CXX project
- Click
Create.
Signature Verification
Release artifacts may be verified by using the accompanying detached signature (.asc) and the cpp-driver public key obtained from https://pgp.mongodb.com.