github cfug/dio dio_v5.10.0
dio 5.10.0

4 hours ago

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.

Don't miss a new dio release

NewReleases is sending notifications on new releases.