Skip to content

dio 5.10.0

Latest

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.