Skip to content

Commit

Permalink
address comments by @ikhoon
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhee17 committed Nov 11, 2024
1 parent 2a2bdd1 commit 3ddae6c
Showing 1 changed file with 12 additions and 37 deletions.
49 changes: 12 additions & 37 deletions site/src/pages/release-notes/1.31.0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ date: 2024-11-13
.build();

// return a TlsKeyPair dynamically
TlsKeyPair tlsKeyPair = hostname -> TlsKeyPair.of(...);
TlsProvider tlsProvider = hostname -> TlsKeyPair.of(...);
```
- The <type://TlsProvider> can be used for both server and clients.
```java
Expand All @@ -29,29 +29,15 @@ date: 2024-11-13
.builder()
.tlsProvider(tlsProvider);
```
- You can customize how in-flight requests are terminated during server shutdown by specifying a <type://GracefulShutdown>. #5941
```java
GracefulShutdown gracefulShutdown =
GracefulShutdown.builder()
.shutdownErrorFunction((ctx, req) -> {
logger.info("Not gracefully terminated!");
return new MyException();
})
.build();

Server
.builder()
.gracefulShutdown(gracefulShutdown);
```
- You can access the raw request path via <type://ServiceRequestContext#rawPath()>. #5931 #5932
```java
ServiceRequestContext ctx = ...;
String rawPath = ctx.rawPath();
```
- More static factory methods are added for <type://ResponseEntity>. #5954
```java
ResponseEntity response = ResponseEntity.of(200);
ResponseEntity response = ResponseEntity.of("Hello!");
ResponseEntity<Object> response = ResponseEntity.of(200);
ResponseEntity<String> response = ResponseEntity.of("Hello!");
```
- You can specify <type://HttpRequest#timeout(Duration)> or <type://HttpResponse#timeout(Duration)> to set a timeout
for an <type://HttpRequest> or <type://HttpResponse>. #5744 #5761
Expand All @@ -77,13 +63,6 @@ a [Nacos](https://nacos.io/) registry server. #5365 #5409
EndpointGroup group = NacosEndpointGroup.of(nacosUri, "my-service");
WebClient client = WebClient.of(SessionProtocol.HTTP, group);
```
- An experimental `micrometer-context` module has been added. You can propagate <type://RequestContext> via [Project Reactor](https://projectreactor.io/)'s `Context`. #5145 #5577
```java
ContextRegistry
.getInstance()
.registerThreadLocalAccessor(new RequestContextThreadLocalAccessor());
Hooks.enableAutomaticContextPropagation();
```

## 📈 Improvements

Expand All @@ -101,10 +80,6 @@ a [Nacos](https://nacos.io/) registry server. #5365 #5409

- ABI compatibility of <type://ResponseEntity#of(ResponseHeaders)> has been broken. #5954

## 🏚️ Deprecations

- <type://ServerBuilder#gracefulShutdownTimeout(Duration,Duration)> has been deprecated in favor of <type://ServerBuilder#gracefulShutdown(GracefulShutdown)>.

## Dependencies

- Brotli4j 1.16.0 1.17.0
Expand All @@ -116,29 +91,29 @@ a [Nacos](https://nacos.io/) registry server. #5365 #5409
- Guava 33.2.1-jre 33.3.1-jre
- Jackson 2.17.2 2.18.1
- Jetty
- 11.0.22 11.0.24
- 12.0.12 12.0.14
- 11.0.22 11.0.24
- 12.0.12 12.0.14
- Kotlin 3.8.0 3.8.1
- Kotlin coroutines 1.8.1 1.9.0
- Fabric8 Kubernetes Client 6.13.1 6.13.4
- Micrometer 1.13.2 1.13.6
- Micrometer Tracing 1.3.2 1.3.5
- Netty 4.1.112.Final 4.1.114.Fin
- prometheus 1.3.1 1.3.2al
- Netty 4.1.112.Final 4.1.114.Final
- prometheus 1.3.1 1.3.2
- Protobuf 3.25.1 3.25.5
- protobuf-jackson 2.5.0 2.6.0
- Reactor 3.6.8 3.6.11
- RXJava 3.1.8 3.1.9
- Sangria 4.1.1 4.2.2
- Scala
- 2.12.19 2.12.20
- 2.13.14 2.13.15
- 3.4.2 3.6.1
- 2.12.19 2.12.20
- 2.13.14 2.13.15
- 3.4.2 3.6.1
- Spring 6.1.11 6.1.14
- Spring Boot 3.3.2 3.3.5
- Tomcat
- 9.0.91 9.0.96
- 10.1.26 10.1.31
- 9.0.91 9.0.96
- 10.1.26 10.1.31

## 🗑 Maybe ignore

Expand Down

0 comments on commit 3ddae6c

Please sign in to comment.