MongoDB C++11 Driver r4.0.0
Added
- Getter for the
start_at_operation_timeoption inmongocxx::v_noabi::options::change_stream.
Changed
- Bump the minimum required C Driver version to 1.29.0.
- CMake option
ENABLE_TESTSis nowOFFby default.- Set
ENABLE_TESTS=ONto re-enable building test targets. - Set
BUILD_TESTING=ONto include test targets in the "all" target whenENABLE_TESTS=ON(since 3.9.0,OFFby default).
- Set
- Layout of
mongocxx::v_noabi::options::change_streamto support the new optionalstart_at_operation_timeaccessor.
Deprecated
- Support for MongoDB Server 4.0.
Removed
- Support for external polyfill libraries.
ENABLE_BSONCXX_POLY_USE_IMPLS=ONis now implicit behavior.- The following CMake options are no longer supported:
ENABLE_BSONCXX_POLY_USE_IMPLSBSONCXX_POLY_USE_MNMLSTCBSONCXX_POLY_USE_MNMLSTC_SYSTEMBSONCXX_POLY_USE_BOOST
- Support for CMake option
MONGOCXX_OVERRIDE_DEFAULT_INSTALL_PREFIX.MONGOCXX_OVERRIDE_DEFAULT_INSTALL_PREFIX=OFFis now implicit behavior.
- Redeclarations of
bsoncxx::stdxinterfaces in themongocxx::stdxnamespace.- Use
bsoncxx::stdx::optional<T>instead ofmongocxx::stdx::optional<T>. - Use
bsoncxx::stdx::string_viewinstead ofmongocxx::stdx::string_view.
- Use
- Inline namespace macros for bsoncxx and mongocxx namespace:
*_INLINE_NAMESPACE_*. - The
<bsoncxx/stdx/make_unique.hpp>header. - The
<bsoncxx/types/value.hpp>header. - The
<bsoncxx/util/functor.hpp>header. - The
<mongocxx/options/create_collection.hpp>header. - References to deprecated
utf8which have equivalentstringalternatives.k_utf8inbsoncxx::v_noabi::type. Usek_stringinstead.b_utf8inbsoncxx::v_noabi::types. Useb_stringinstead.get_utf8inbsoncxx::v_noabi::document::element,bsoncxx::v_noabi::array::element, andbsoncxx::v_noabi::types::bson_value::view. Useget_stringinstead.k_cannot_append_utf8andk_need_element_type_k_utf8inbsoncxx::v_noabi::exception::error_code. Usek_cannot_append_stringandk_need_element_type_k_stringinstead.
- Undocumented using-directives and using-declarations.
bsoncxx::builder::typesin<bsoncxx/builder/list.hpp>. Usebsoncxx::typesin<bsoncxx/types.hpp>instead.bsoncxx::builder::stream::concatenatein<bsoncxx/builder/stream/helpers.hpp>. Usebsoncxx::builder::concatenatein<bsoncxx/builder/concatenate.hpp>instead.mongocxx::events::read_preferencein<mongocxx/events/topology_description.hpp>. Usemongocxx::read_preferencein<mongocxx/read_preference.hpp>instead.
See the full list of changes in Jira and upgrade guide
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.