Repository navigation
Releases
Releases · cfug/dio
web_adapter 2.2.2
Immutable
release. Only release title and notes can be modified.
What's new
- Fix native XHR timeouts being misclassified as
receiveTimeoutwhen the
connection was never established.
http2_adapter 2.9.0
Immutable
release. Only release title and notes can be modified.
What's new
- Expose
supportedProtocolsonConnectionManager(defaults to['h2'],
fully backwards-compatible). Setting it to['h2', 'http/1.1']fixes
fallbackAdaptersilently never firing against RFC 7301-compliant servers
that abort the TLS handshake withno_application_protocolwhen onlyh2
is advertised. - Fix socket leak: when
DioH2NotSupportedExceptionis thrown after a
successful TLS handshake (server selectedhttp/1.1instead ofh2),
theSecureSocketis now explicitly destroyed before routing to
fallbackAdapter, rather than being abandoned. - Deprecate the misspelled
ConnectionManager.handshakeTimoutparameter in
favor of the correctly spelledhandshakeTimeout; the deprecated alias
keeps working and is scheduled for removal in 3.0.0.
dio 5.11.1
Immutable
release. Only release title and notes can be modified.
What's new
- Fix response stream not propagating backpressure to the underlying socket.
When a consumer paused the stream, the source subscription was never paused,
so the network kept buffering response data into memory, risking OOM on
constrained platforms. - Make the
badCertificateCallbackpinning test deterministic by pinning a
fingerprint that cannot match the served certificate, instead of relying on
badssl.com hosts serving different certificates. - Fix
NoSuchMethodErrorwhen using a class thatimplements Interceptor
instead ofextends Interceptor. The interceptor pipeline was calling private
dispatch methods that only exist onInterceptorsubclasses, breaking any
class using interface implementation.
native_dio_adapter 1.8.0
Immutable
release. Only release title and notes can be modified.
What's new
- Support
cronet_http1.9.0 by upgradingjnito^1.0.0and migrating
the Cronet-provider-disabled classifier fromJniExceptiontoJThrowable.
The minimum Dart SDK is now3.4.0and the minimum Flutter version is now
3.35.6, following the requirements ofjni1.0.0 andcronet_http1.9.0.
Fixes #2581.
web_adapter 2.2.1
Immutable
release. Only release title and notes can be modified.
What's new
- Warn when a request is not a CORS "simple request" and will trigger a
preflight (OPTIONS) request, and enrich theXMLHttpRequest.onErrormessage
with CORS guidance when the request was preflighted. The warning can be
disabled viaBrowserHttpClientAdapter(enableCORSWarning: false); the
enriched error message is always emitted.
native_dio_adapter 1.7.0
Immutable
release. Only release title and notes can be modified.
What's new
- Add opt-in
createFallbackAdaptertoNativeAdapter. On Android, when the
device has installed Cronet providers but every provider is disabled (for
example AOSP emulators or devices without Google Play services), the
supplied factory returns anyHttpClientAdapterand requests continue via
that adapter. Detection is strictly limited to Cronet's
provider-disabledRuntimeException; every other Cronet error is
propagated unchanged. Adapter selection is sticky for the lifetime of the
NativeAdapter. Fixes
#2444.
http2_adapter 2.8.0
Immutable
release. Only release title and notes can be modified.
What's new
- Prevent sensitive request headers from being forwarded across origins during
redirects. - Prevent uploads from throwing a
StateErrorwhen the HTTP/2 connection closes
before the request body finishes streaming. - Run HTTP integration and certificate pinning tests against the configured
test server.
dio 5.11.0
Immutable
release. Only release title and notes can be modified.
What's new
- Add
queryandqueryUriconvenience methods for the HTTP QUERY method defined in RFC 10008,
which allows a request body for safe, idempotent queries. - Fix
FusedTransformer(the default transformer) throwing aFormatException
on an empty response body when a customresponseDecoderis set. It now
returns an empty result, consistent withSyncTransformerand
BackgroundTransformer. - Fix concurrent requests hanging or reporting uncaught errors when an
interceptor shares a failing Future, such as in request deduplication.
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.