Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

v5.0.0

Latest
Compare
Choose a tag to compare
@AlexV525 AlexV525 released this 10 Feb 07:12
· 6 commits to main since this release
a874d7f

This is the first stable release of the diox package.

What's Changed

  • Change Dio.transformer from DefaultTransformer to BackgroundTransformer.
  • Remove plain ASCII check in FormData.
  • Allow asynchronized method with savePath.
  • Allow data in all request methods.
  • A platform independent HttpClientAdapter can now be instantiated by doing
    dio.httpClientAdapter = HttpClientAdapter();.
  • Add ValidateCertificate to handle certificate pinning better.
  • Support Content-Disposition header case sensitivity.

Breaking Changes

  • Content type with application/json and application/x-www-form-urlencoded
    will not be implied anymore in the transformer and the request option.
  • The default charset utf-8 in Headers content type constants has been removed.
  • BaseOptions.setRequestContentTypeWhenNoPayload has been removed.
  • Remove BaseOptions.setRequestContentTypeWhenNoPayload.
  • Improve DioErrors. There are now more cases in which the inner original stacktrace is supplied.
  • HttpClientAdapter must now be implemented instead of extended.
  • Any classes specific to dart:io platforms can now be imported via import 'package:diox/io.dart';.
    Classes specific to web can be imported via import 'package:diox/browser.dart';.
  • connectTimeout, sendTimeout, and receiveTimeout are now Durations.

Contributors