Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency dio to v5 #23

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Mar 18, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change
dio dependencies major ^3.0.8 -> ^5.0.0

Release Notes

cfug/dio (dio)

v5.5.0: dio 5.5.0

What's new
  • Raise the min Dart SDK version to 2.18.0.
  • Add constructor for DioExceptionType.badCertificate.
  • Create type alias DioMediaType for http_parser's MediaType.
  • Fix the type conversion regression when using MultipartFile.fromBytes.
  • Split the Web implementation to package:dio_web_adapter.
  • Add FusedTransformer for improved performance when decoding JSON.
  • Set FusedTransformer as the default transformer.
  • Improves InterceptorState.toString().
  • If the CancelToken got canceled before making requests,
    throws the exception directly rather than cut actual HTTP requests afterward.
  • Catch MediaType parse exception in Transformer.isJsonMimeType.
  • Improves warning logs on the Web platform.
  • Improves memory allocating when using CancelToken.

v5.4.3: dio 5.4.3

What's new

  • Remove sockets detach in IOHttpClientAdapter.
  • Allows to define FormData.boundaryName instead of the default --dio-boundary-.

v5.4.1: dio 5.4.1

What's new

  • Provide fix suggestions for dart fix.
  • Fix receiveTimeout for streamed responses.
  • Fix cancellation for streamed responses and downloads when using IOHttpClientAdapter.
  • Fix receive progress for streamed responses and downloads when using IOHttpClientAdapter.
  • Support relative baseUrl on the Web platform.
  • Avoid fake uncaught exceptions during debugging with IDEs.

v5.4.0: dio 5.4.0

What's new
  • Improve SyncTransformer's stream transform.
  • Allow case-sensitive header keys with the preserveHeaderCase flag through options.
  • Fix receiveTimeout for the IOHttpClientAdapter.
  • Fix receiveTimeout for the download method of DioForNative.
  • Improve the stream byte conversion.

v5.3.4: dio 5.3.4

What's new
  • Raise warning for Maps other than Map<String, dynamic> when encoding request data.
  • Improve exception messages.
  • Allow ResponseDecoder and RequestEncoder to be async.
  • Ignores Duration.zero timeouts.

v5.3.3: dio 5.3.3

What's new
  • Fix failing requests throw DioExceptions with .unknown instead of .connectionError on SocketException.
  • Removes the accidentally added options argument for Options.compose.
  • Fix wrong formatting of multi-value header in BrowserHttpClientAdapter.
  • Add warning in debug mode when trying to send data with a GET request in web.
  • Reduce cases in which browsers would trigger a CORS preflight request.
  • Add warnings in debug mode when using sendTimeout and onSendProgress with an empty request body.
  • Fix receiveTimeout not working correctly on web.
  • Fix ImplyContentTypeInterceptor can be removed by Interceptors.clear() by default.

v5.3.2: dio 5.3.2

What's new
  • Revert removed download for DioMixin.
  • Fix for Dio.download not cleaning the file on data handling error.

v5.3.1: dio 5.3.1

What's new
  • Improve package descriptions and code formats.
  • Improve comments.
  • Fix error when cloning MultipartFile from FormData with regression test.
  • Deprecate MulitpartFile constructor in favor MultipartFile.fromStream.
  • Add FormData.clone.

v5.3.0: dio 5.3.0

What's new
  • Remove http from dev_dependencies.
  • Add support for cloning MultipartFile from FormData.
  • Only produce null response body when ResponseType.json.

v5.2.1: dio 5.2.1

What's new
  • Revert changes to handling of List<int> body data.

v5.2.0: dio 5.2.0

What's new
  • Make LogInterceptor prints in DEBUG mode (when the assertion is enabled) by default.
  • Deprecate DioError in favor of DioException.
  • Fix IOHttpClientAdapter.onHttpClientCreate Repeated calls
  • IOHttpClientAdapter.onHttpClientCreate has been deprecated and is scheduled for removal in
    Dio 6.0.0 - Please use the replacement IOHttpClientAdapter.createHttpClient instead.
  • Using CancelToken no longer closes and re-creates HttpClient for each request when IOHttpClientAdapter is used.
  • Fix timeout handling for browser receiveTimeout.
  • Using CancelToken no longer closes and re-creates HttpClient for each request when IOHttpClientAdapter is used.
  • Improve performance when sending binary data (List<int>/Uint8List).

v5.1.2: dio 5.1.2

What's new
  • Allow FormData to send a null entry value as an empty string.

v5.1.1: dio 5.1.1

What's new
  • Revert changes to CancelToken.cancel() behavior, as a result the DioError
    provided by the CancelToken.cancelError does not contain useful information
    when the token was not used with a request.
  • Fix wrong ListFormat being used for comparison during encoding of FormData
    and application/x-www-form-urlencoded, resulting in potential wrong output encoding
    for ListFormat.multi and ListFormat.multiCompatible since Dio 4.0.x.
  • Respect Options.listFormat when encoding x-www-url-encoded content.

v5.1.0: dio 5.1.0

What's new
  • Fix double-completion when using connectionTimeout on web platform.
  • Allow defining adapter methods through their constructors.
  • Fix FormData encoding regression for maps with dynamic keys, introduced in 5.0.3.
  • Mark several static DioMixin functions as @internal.
  • Make DioError.stackTrace non-nullable.
  • Ensure DioError.stackTrace always points to the correct call site.

v5.0.3: dio 5.0.3

What's new
  • Imply List<Map> as JSON content in ImplyContentTypeInterceptor.
  • Fix FormData encoding for collections and objects.

v5.0.2: 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 in Interceptors.
  • Fix wrong encoding of collection query parameters.
  • Fix "unsupported operation" error on web platform.

v5.0.1: dio 5.0.1

What's new
  • Add ImplyContentTypeInterceptor as a default interceptor.
  • Add Headers.multipartFormDataContentType for headers usage.
  • Fix variable shadowing of withCredentials in browser_adapers.dart.

v5.0.0

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.
  • 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.

v4.0.4

Compare Source

What's Changed

New Contributors

Full Changelog: cfug/dio@4.0.3...4.0.4

v4.0.3

Compare Source

v4.0.2

Compare Source

v4.0.1

Compare Source

v4.0.0

Compare Source

stable version


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants