Releases: cfug/dio
Releases · cfug/dio
cookie_manager 2.1.2
What's new
- Fix empty cookie parsing and header value set.
- Improve code formats according to linter rules.
dio 5.0.2
What's new
- Improve code formats according to linter rules.
- Remove the force conversion for the response body.
- Fix
DioErrorType.cancel
inInterceptors
. - Fix wrong encoding of collection query parameters.
- Fix "unsupported operation" error on web platform.
dio 5.0.1
What's new
- Add
ImplyContentTypeInterceptor
as a default interceptor. - Add
Headers.multipartFormDataContentType
for headers usage. - Fix variable shadowing of
withCredentials
inbrowser_adapers.dart
.
cookie_manager 2.1.1
v5.0.0
What's changed
- Change
Dio.transformer
fromDefaultTransformer
toBackgroundTransformer
. - 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
andapplication/x-www-form-urlencoded
will not be implied anymore in the transformer and the request option. - The default charset
utf-8
inHeaders
content type constants has been removed. BaseOptions.setRequestContentTypeWhenNoPayload
has been removed.- Improve
DioError
s. 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 viaimport 'package:diox/io.dart';
.
Classes specific to web can be imported viaimport 'package:diox/browser.dart';
. connectTimeout
,sendTimeout
, andreceiveTimeout
are nowDuration
s.