Skip to content

Releases: cfug/dio

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.

dio 5.10.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

  • Fix FormData.readAsBytes excessive memory usage with large payloads by replacing the O(n²) reduce+spread approach with a pre-allocated Uint8List.
  • Fix request hanging indefinitely when async interceptor callbacks throw without calling the handler.
  • Fix HttpException: Connection closed before full header was received being reported as DioExceptionType.unknown.
  • Add transformTimeout to 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() dropping boundaryName and camelCaseContentDisposition, so a retried multipart request now keeps the original options instead of silently falling back to the defaults.
  • Fix QueuedInterceptor stalling its queue forever when the active request is cancelled while its callback is still pending (never calls next/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

Choose a tag to compare

@cfug-dev cfug-dev released this 10 Jun 16:42
Immutable release. Only release title and notes can be modified.

What's new

  • Fix memory leak on Android: complete the abortTrigger future after the
    response stream is consumed, allowing CronetUrlRequest JNI references
    and upload body bytes to be garbage collected.
  • Support cupertino_http 3.0.0

http2_adapter 2.7.1

Choose a tag to compare

@cfug-dev cfug-dev released this 25 May 16:24
Immutable release. Only release title and notes can be modified.

What's new

  • Fix :authority header generation to include non-default ports.

web_adapter 2.1.2

Choose a tag to compare

@cfug-dev cfug-dev released this 02 Mar 04:30

What's new

  • Fix inaccurate timeout type detection using xhr.readyState instead of timer existence.

http2_adapter 2.7.0

Choose a tag to compare

@cfug-dev cfug-dev released this 02 Mar 04:30

What's new

  • Fix inconsistent cache key format in _ConnectionManager between getConnection() 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 the ConnectionManager to prevent long waiting
    if there's something wrong with the handshake procedure.
  • Provides httpVersion in Response.extra.

dio 5.9.2

Choose a tag to compare

@cfug-dev cfug-dev released this 02 Mar 04:31

What's new

  • Fixes kIsWeb across different Flutter SDKs.
  • Provides httpVersion in Response.extra when using IOHttpClientAdapter.

compatibility_layer 0.1.1

Choose a tag to compare

What's new

  • Fixes kIsWeb across different Flutter SDKs.

native_dio_adapter 1.5.1

Choose a tag to compare

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, and receiveTimeout in ConversionLayerAdapter