Skip to content

4.5.2 Deprecations and breaking changes

Julien Viet edited this page Jan 28, 2024 · 3 revisions

Vert.x Core

Deprecation of DEFAULT_SEACH_DOMAINS in AddressResolverOptions

https://github.com/eclipse-vertx/vert.x/pull/5053

This name has a typo, instead DEFAULT_SEARCH_DOMAINS shall be used.

Deprecation of DatabindCodec pretty mapper

https://github.com/eclipse-vertx/vert.x/pull/5060

There is no need to keep two object mappers if a single one can be used to encode JSON in both compact and pretty forms.

This change relieves users from configuring two object mappers if they have customizations.

// Before
DatabindCodec.prettyMapper().writeValueAsString(jsonObject);

// After
DatabindCodec.mapper().writerWithDefaultPrettyPrinter().writeValueAsString(jsonObject);

Vert.x HTTP Proxy

ProxyRequest authority type breaking change

https://github.com/eclipse-vertx/vertx-http-proxy/pull/59

The ProxyRequest#authority property type has been changed to HostAndPort instead of a string.

// Before
proxyRequest.authority("example.com");

// After
proxyRequest.authority(HostAndPort.authority("example.com"));
``
Clone this wiki locally