@@ -149,6 +149,8 @@ The v4.0 driver introduces the following breaking changes to the build system:
149
149
To include test targets in the "all" target, you must also set the
150
150
``BUILD_TESTING`` option to ``ON``.
151
151
152
+ .. _version-4.0-api-breaking:
153
+
152
154
API Breaking Changes in v4.0
153
155
````````````````````````````
154
156
@@ -159,6 +161,17 @@ The v4.0 driver introduces the following breaking changes to the API:
159
161
library equivalents. For context, see the :ref:`Build System Breaking Changes
160
162
<version-4.0-build-system-breaking>` section.
161
163
164
+ - Removes the following deprecated ``utf8`` types and functions that have ``string`` equivalents:
165
+
166
+ - ``k_utf8`` from the ``bsoncxx::v_noabi::type`` class. Instead, use ``k_string``.
167
+ - ``b_utf8`` from the ``bsoncxx::v_noabi::types`` class. Instead, use ``b_string``.
168
+ - ``get_utf8()`` from the ``bsoncxx::v_noabi::document::element``, ``bsoncxx::v_noabi::array::element``,
169
+ and ``bsoncxx::v_noabi::types::bson_value::view`` classes. Instead, use ``get_string()``.
170
+ - ``k_cannot_append_utf8`` from the ``bsoncxx::v_noabi::exception::error_code`` class.
171
+ Instead, use ``k_cannot_append_string``.
172
+ - ``k_need_element_type_k_utf8`` from the ``bsoncxx::v_noabi::exception::error_code`` class.
173
+ Instead, use ``k_need_element_type_k_string``.
174
+
162
175
- Removes the ``mongocxx::stdx`` namespace. Replace the following
163
176
types in your code:
164
177
@@ -184,6 +197,10 @@ The v4.0 driver introduces the following breaking changes to the ABI:
184
197
library equivalents. For context, see the :ref:`Build System Breaking Changes
185
198
<version-4.0-build-system-breaking>` section.
186
199
200
+ - Removes deprecated ``utf8`` functions that have ``string`` equivalents.
201
+ For a full list of these changes, see the :ref:`API Breaking Changes <version-4.0-api-breaking>`
202
+ section.
203
+
187
204
.. _version-3.11-breaking-changes:
188
205
189
206
Version 3.11
0 commit comments