Releases: cfug/dio
Releases · cfug/dio
Release list
web_adapter 2.2.0
Immutable
release. Only release title and notes can be modified.
What's new
- Support
Dio.downloadon Web by fetching bytes and triggering a browser download with a Blob URL.
dio 5.10.0
Immutable
release. Only release title and notes can be modified.
What's new
- Fix
FormData.readAsBytesexcessive memory usage with large payloads by replacing the O(n²)reduce+spread approach with a pre-allocatedUint8List. - Fix request hanging indefinitely when async interceptor callbacks throw without calling the handler.
- Fix
HttpException: Connection closed before full header was receivedbeing reported asDioExceptionType.unknown. - Add
transformTimeoutto bound long-running response transformations, including background JSON decoding.
On web, timeout handling is best-effort because synchronous JavaScript work cannot be preempted. - Fix
FormData.clone()droppingboundaryNameandcamelCaseContentDisposition, so a retried multipart request now keeps the original options instead of silently falling back to the defaults. - Fix
QueuedInterceptorstalling its queue forever when the active request is cancelled while its callback is still pending (never callsnext/resolve/reject), which blocked every subsequent request routed through the interceptor. - Fix
ErrorInterceptorHandler.reject(..., true)not continuing to following error interceptors in queued interceptors.
native_dio_adapter 1.6.0
Immutable
release. Only release title and notes can be modified.
What's new
- Fix memory leak on Android: complete the
abortTriggerfuture after the
response stream is consumed, allowingCronetUrlRequestJNI references
and upload body bytes to be garbage collected. - Support
cupertino_http3.0.0
http2_adapter 2.7.1
Immutable
release. Only release title and notes can be modified.
What's new
- Fix
:authorityheader generation to include non-default ports.
web_adapter 2.1.2
What's new
- Fix inaccurate timeout type detection using
xhr.readyStateinstead of timer existence.
http2_adapter 2.7.0
What's new
- Fix inconsistent cache key format in
_ConnectionManagerbetweengetConnection()and_connect(),
which caused_transportsMap.remove()to fail silently during idle timeout cleanup and led to memory leaks. - Add
handshakeTimeout(defaults to 15 seconds) to theConnectionManagerto prevent long waiting
if there's something wrong with the handshake procedure. - Provides
httpVersioninResponse.extra.
dio 5.9.2
What's new
- Fixes
kIsWebacross different Flutter SDKs. - Provides
httpVersioninResponse.extrawhen usingIOHttpClientAdapter.
compatibility_layer 0.1.1
What's new
- Fixes
kIsWebacross different Flutter SDKs.
native_dio_adapter 1.5.1
What's new
- Support request cancellation for native HTTP clients via use of
AbortableRequest(introduced in http package from version 1.5.0) - Add timeout handling for
sendTimeout,connectTimeout, andreceiveTimeoutinConversionLayerAdapter