You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/whats-new.txt
+132-2Lines changed: 132 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,137 @@ Learn what's new in:
19
19
Upcoming Breaking Changes
20
20
-------------------------
21
21
22
-
- Beginning with v5.0, the Kotlin Driver will require Java 11 or later.
22
+
- Beginning with v5.0, the {+driver-short+} requires Java 11 or later.
23
+
24
+
.. _version-4.11:
25
+
26
+
What's New in 4.11
27
+
------------------
28
+
29
+
This section includes the following information:
30
+
31
+
- :ref:`kotlin-deprecations-4.11`
32
+
- :ref:`kotlin-new-features-4.11`
33
+
34
+
.. _kotlin-deprecations-4.11:
35
+
36
+
Deprecations in 4.11
37
+
~~~~~~~~~~~~~~~~~~~~
38
+
39
+
.. warning:: Deprecations in this release
40
+
41
+
To avoid breaking changes in future major releases of the driver,
42
+
replace any application code that depends on deprecated methods and types.
43
+
44
+
The 4.11 driver release deprecates the following items:
45
+
46
+
- The following network address-related methods are deprecated and will be removed
47
+
in v5.0:
48
+
49
+
- The `ServerAddress <{+api+}/apidocs/mongodb-driver-core/com/mongodb/ServerAddress.html>`__
50
+
methods ``getSocketAddress()`` and ``getSocketAddresses()``.
51
+
52
+
Instead of ``getSocketAddress()``, use the ``getByName()`` instance
53
+
method of ``java.net.InetAddress``.
54
+
55
+
Instead of ``getSocketAddresses()``, use the ``getAllByName()`` instance
56
+
method of ``java.net.InetAddress``.
57
+
58
+
- The `UnixServerAddress <{+api+}/apidocs/mongodb-driver-core/com/mongodb/UnixServerAddress.html>`__
59
+
method ``getUnixSocketAddress()``.
60
+
61
+
Instead of ``getUnixSocketAddress()``, construct an instance of
62
+
``jnr.unixsocket.UnixSocketAddress``. Pass the full path of the UNIX
63
+
socket file to the constructor. By default, MongoDB creates a UNIX
64
+
socket file located at ``"/tmp/mongodb-27017.sock"``. To learn more
65
+
about the ``UnixSocketAddress``, see the `UnixSocketAddress <https://www.javadoc.io/doc/com.github.jnr/jnr-unixsocket/latest/jnr/unixsocket/UnixSocketAddress.html>`__ API documentation.
0 commit comments