1.46.0 (2024-02-02)
Features Added
- Added
SyncPoller.getFinalResult(Duration)
to get the final result of a long-running operation with a timeout
period. Allows for a single call rather than calling bothSyncPoller.waitForCompletion(Duration)
and
SyncPoller.getFinalResult()
. - Serialization model types now implement
JsonSerializable
. (#37046) - Added
CoreUtils.durationToStringWithDays
, exposing how serialization ofDuration
is done. (#37763) - Prevent requests that won't retry from being buffered. (#37871)
- Added
BinaryData.writeTo(OutputStream)
,BinaryData.writeTo(WriteableByteChannel)
,
andBinaryData.writeToAsync(AsynchronousByteChannel)
to allow writing the content ofBinaryData
to an
OutputStream
,WriteableByteChannel
, orAsynchronousByteChannel
respectively. (#38271) - Added
RetryOptions.shouldRetryCondition
,RetryStrategy.shouldRetryCondition
andRequestRetryCondition
to allow
RetryOptions
to determine which HTTP responses and exceptions can be retried. (#38585) - Added
CoreUtils.addShutdownHookSafely
to add a shutdown hook with possible usage ofAccessController
to add it
in a privileged manner. (#38580)
Breaking Changes
SyncPoller.waitForCompletion(Duration)
now throws an exception if the polling operation doesn't complete or reach
the status within the give duration.
Bugs Fixed
- Fixed
RetryPolicy
usage of calculated delay. (#37788)
Other Changes
HttpLoggingPolicy
uses better defaults for allowed headers and query parameters to log. (#37686)- Performance improvements in
LoggingEventBuilder
. (#37967) - Performance improvements to HTTP header logging. (#38492)
- Reduce redacted header logging. (#38501)
Dependency Updates
- Upgraded Reactor Core from
3.4.33
to3.4.34
.