Skip to content

Releases

web_adapter 2.2.2

Choose a tag to compare

@cfug-dev cfug-dev released this 04 Sep 02:46
Immutable release. Only release title and notes can be modified.

What's new

  • Fix native XHR timeouts being misclassified as receiveTimeout when the
    connection was never established.

http2_adapter 2.9.0

Choose a tag to compare

@cfug-dev cfug-dev released this 04 Sep 02:45
Immutable release. Only release title and notes can be modified.

What's new

  • Expose supportedProtocols on ConnectionManager (defaults to ['h2'],
    fully backwards-compatible). Setting it to ['h2', 'http/1.1'] fixes
    fallbackAdapter silently never firing against RFC 7301-compliant servers
    that abort the TLS handshake with no_application_protocol when only h2
    is advertised.
  • Fix socket leak: when DioH2NotSupportedException is thrown after a
    successful TLS handshake (server selected http/1.1 instead of h2),
    the SecureSocket is now explicitly destroyed before routing to
    fallbackAdapter, rather than being abandoned.
  • Deprecate the misspelled ConnectionManager.handshakeTimout parameter in
    favor of the correctly spelled handshakeTimeout; the deprecated alias
    keeps working and is scheduled for removal in 3.0.0.

dio 5.11.1

Choose a tag to compare

@cfug-dev cfug-dev released this 04 Sep 02:46
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 badCertificateCallback pinning test deterministic by pinning a
    fingerprint that cannot match the served certificate, instead of relying on
    badssl.com hosts serving different certificates.
  • Fix NoSuchMethodError when using a class that implements Interceptor
    instead of extends Interceptor. The interceptor pipeline was calling private
    dispatch methods that only exist on Interceptor subclasses, breaking any
    class using interface implementation.

native_dio_adapter 1.8.0

Choose a tag to compare

@cfug-dev cfug-dev released this 29 Jul 07:09
Immutable release. Only release title and notes can be modified.

What's new

  • Support cronet_http 1.9.0 by upgrading jni to ^1.0.0 and migrating
    the Cronet-provider-disabled classifier from JniException to JThrowable.
    The minimum Dart SDK is now 3.4.0 and the minimum Flutter version is now
    3.35.6, following the requirements of jni 1.0.0 and cronet_http 1.9.0.
    Fixes #2581.

web_adapter 2.2.1

Choose a tag to compare

@cfug-dev cfug-dev released this 25 Jul 12:53
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 the XMLHttpRequest.onError message
    with CORS guidance when the request was preflighted. The warning can be
    disabled via BrowserHttpClientAdapter(enableCORSWarning: false); the
    enriched error message is always emitted.

native_dio_adapter 1.7.0

Choose a tag to compare

@cfug-dev cfug-dev released this 25 Jul 12:54
Immutable release. Only release title and notes can be modified.

What's new

  • Add opt-in createFallbackAdapter to NativeAdapter. 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 any HttpClientAdapter and requests continue via
    that adapter. Detection is strictly limited to Cronet's
    provider-disabled RuntimeException; every other Cronet error is
    propagated unchanged. Adapter selection is sticky for the lifetime of the
    NativeAdapter. Fixes
    #2444.

http2_adapter 2.8.0

Choose a tag to compare

@cfug-dev cfug-dev released this 25 Jul 12:53
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 StateError when 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

Choose a tag to compare

@cfug-dev cfug-dev released this 25 Jul 12:54
Immutable release. Only release title and notes can be modified.

What's new

  • Add query and queryUri convenience 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 a FormatException
    on an empty response body when a custom responseDecoder is set. It now
    returns an empty result, consistent with SyncTransformer and
    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

Choose a tag to compare

@cfug-dev cfug-dev released this 29 Jun 13:29
Immutable release. Only release title and notes can be modified.

What's new

  • Support Dio.download on Web by fetching bytes and triggering a browser download with a Blob URL.