Skip to content

[Java] v5.0 Tech Review #507

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

Merged
merged 8 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
15 changes: 9 additions & 6 deletions source/upgrade.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ Version 5.0 Breaking Changes
``long`` instead of type ``int``. Because this change breaks both binary and source
compatibility, update any source code that uses these methods and rebuild your binary.

- This driver version removes the following record annotations:
- The following record annotations from the
``org.bson.codecs.record.annotations`` package are replaced with
annotations of the same name from the ``org.bson.codecs.pojo.annotations`` package:

- ``BsonId``
- ``BsonProperty``
Expand All @@ -95,22 +97,23 @@ Version 5.0 Breaking Changes
<java-socketsettings-example>` in the Specify MongoClient Settings
guide.

- This driver version removes the ``Filters.eqFull()`` method, which allowed you
- This driver version removes the ``Filters.eqFull()`` method, released
exclusively in ``Beta``, which allowed you
to construct an equality filter when performing a vector search.
You can use the ``Filters.eq()`` method when instantiating a
``VectorSearchOptions`` type, as shown in the following code:

.. code-block:: java
VectorSearchOptions opts = vectorSearchOptions().filter(eq("x", 8));

VectorSearchOptions opts = vectorSearchOptions().filter(eq("x", 8));

.. _java-breaking-changes-v5.0-observables:

- This driver version removes the
``org.mongodb.scala.ObservableImplicits.ToSingleObservableVoid`` implicit
class. This means the ``org.reactivestreams.Publisher[Void]`` type no longer
converts automatically to ``org.mongodb.scala.SingleObservable[Void]``. The also
API exposes ``org.mongodb.scala.Observable[Unit]`` instead of
converts automatically to ``org.mongodb.scala.SingleObservable[Void]``. The
API also exposes ``org.mongodb.scala.Observable[Unit]`` instead of
``org.mongodb.scala.Observable[Void]``.

.. After the 5.0 Scala API docs are released, this line will be uncommented.
Expand Down
6 changes: 3 additions & 3 deletions source/whats-new.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ What's New in 5.0

.. warning:: Breaking Changes in v5.0

This driver version introduces breaking changes. For a list of these changes, see
the :ref:`Version 5.0 Breaking Changes section <java-breaking-changes-v5.0>` in the
Upgrade guide.
This driver version introduces breaking changes. For a list of these changes, see
the :ref:`Version 5.0 Breaking Changes section <java-breaking-changes-v5.0>` in the
Upgrade guide.

The 5.0 driver release introduces the following features:

Expand Down