diff --git a/source/whats-new.txt b/source/whats-new.txt index 9e85138e2..efb4d9aeb 100644 --- a/source/whats-new.txt +++ b/source/whats-new.txt @@ -74,6 +74,28 @@ What's New in 4.11 .. New features of the 4.11 driver release include: +- The following network address-related methods are deprecated and will be removed + in v5.0: + + - The `ServerAddress <{+api+}/apidocs/mongodb-driver-core/com/mongodb/ServerAddress.html>`__ + methods ``getSocketAddress()`` and ``getSocketAddresses()``. + + Instead of ``getSocketAddress()``, use the ``getByName()`` instance + method of ``java.net.InetAddress``. + + Instead of ``getSocketAddresses()``, use the ``getAllByName()`` instance + method of ``java.net.InetAddress``. + + - The `UnixServerAddress <{+api+}/apidocs/mongodb-driver-core/com/mongodb/UnixServerAddress.html>`__ + method ``getUnixSocketAddress()``. + + Instead of ``getUnixSocketAddress()``, construct an instance of + ``jnr.unixsocket.UnixSocketAddress``. Pass the full path of the UNIX + socket file to the constructor. By default, MongoDB creates a UNIX + socket file located at ``"/tmp/mongodb-27017.sock"``. To learn more + about the ``UnixSocketAddress``, see the `UnixSocketAddress API documentation + `__. + .. _version-4.10: What's New in 4.10