Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCSP-45311: Remove deprecated utf8 types #78

Merged
merged 7 commits into from
Nov 22, 2024
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions source/upgrade.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,17 @@ The v4.0 driver introduces the following breaking changes to the API:
library equivalents. For context, see the :ref:`Build System Breaking Changes
<version-4.0-build-system-breaking>` section.

- Removes the following deprecated ``utf8`` types and methods that have ``string`` equivalents:
eramongodb marked this conversation as resolved.
Show resolved Hide resolved

- ``k_utf8`` from the ``bsoncxx::v_noabi::type`` class. Instead, use ``k_string``.
- ``b_utf8`` from the ``bsoncxx::v_noabi::types`` class. Instead, use ``b_string``.
- ``get_utf8()`` from the ``bsoncxx::v_noabi::document::element``, ``bsoncxx::v_noabi::array::element``,
and ``bsoncxx::v_noabi::types::bson_value::view`` classes. Instead, use ``get_string()``.
eramongodb marked this conversation as resolved.
Show resolved Hide resolved
- ``k_cannot_append_utf8`` from the ``bsoncxx::v_noabi::exception::error_code`` class.
Instead, use ``k_cannot_append_string``.
- ``k_need_element_type_k_utf8`` from the ``bsoncxx::v_noabi::exception::error_code`` class.
Instead, use ``k_need_element_type_k_string``.

ABI Breaking Changes in v4.0
````````````````````````````

Expand Down
Loading