Skip to content

Upgrading dio 0.0 to 0.1

Unknown0.0.14 → 0.1.8

Fetching 8 releases from GitHub…0 / 8
UnknownUpgrade verdict

DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.

  • DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
  • This page updates as the notes come in.
Still reading release notes

DepDelta is still reading the release notes in this range. This updates as they come in.

Dart SDK requirement changed in 0.1.1: >=1.20.1 <2.0.0 → >=1.9.0 <3.0.0.

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • removed: class TransFormer: abstract
  • removed: field Dio.transFormer: TransFormer
  • removed: method TransFormer.transformRequest(Options options): Future
  • removed: method TransFormer.transformResponse(Options options, HttpClientResponse response): Future
  • removed: static method TransFormer.urlEncodeMap(data): String
  • removed: typedef OnHttpClientCreate(HttpClient client)
  • changed: class DefaultTransformer extends TransFormer → class DefaultTransformer extends Transformer
  • changed: class Response → class Response<T>
  • changed: ctor Options({this.method, this.baseUrl, this.connectTimeout, this.receiveTimeout, this.data, this.extra, this.headers, this.responseType, this.contentType}) → ctor Options({ this.method, this.baseUrl, this.connectTimeout, this.receiveTimeout, this.path, this.data, this.extra, this.headers, this.responseType, this.contentType, this.validateStatus })
  • changed: field Options.data: var → field Options.data: dynamic
  • changed: field Response.data: var → field Response.data: T
  • changed: method Dio.delete(String path, {data, Options options, CancelToken cancelToken}): Future → method Dio.delete<T>(String path, {data, Options options, CancelToken cancelToken}): Future<Response<T>>
  • changed: method Dio.download(String urlPath, savePath, { OnDownloadProgress onProgress, CancelToken cancelToken, data, bool flush = …, Options options, }): Future → method Dio.download(String urlPath, savePath, { OnDownloadProgress onProgress, CancelToken cancelToken, data, Options options, }): Future<Response>
  • changed: method Dio.get(String path, {data, Options options, CancelToken cancelToken}): Future → method Dio.get<T>(String path, {data, Options options, CancelToken cancelToken}): Future<Response<T>>
  • changed: method Dio.head(String path, {data, Options options, CancelToken cancelToken}): Future → method Dio.head<T>(String path, {data, Options options, CancelToken cancelToken}): Future<Response<T>>
  • changed: method Dio.patch(String path, {data, Options options, CancelToken cancelToken}): Future → method Dio.patch<T>(String path, {data, Options options, CancelToken cancelToken}): Future<Response<T>>
  • changed: method Dio.post(String path, {data, Options options, CancelToken cancelToken}): Future → method Dio.post<T>(String path, {data, Options options, CancelToken cancelToken}): Future<Response<T>>
  • changed: method Dio.put(String path, {data, Options options, CancelToken cancelToken}): Future → method Dio.put<T>(String path, {data, Options options, CancelToken cancelToken}): Future<Response<T>>
  • changed: method Dio.reject(err): Future → method Dio.reject<T>(err): Future<Response<T>>
  • changed: method Dio.request(String path, {data, CancelToken cancelToken, Options options, }): Future → method Dio.request<T>(String path, {data, CancelToken cancelToken, Options options, }): Future<Response<T>>
  • changed: method Dio.resolve(response): Future → method Dio.resolve<T>(response): Future<Response<T>>
  • added: class Transformer: abstract
  • added: field Dio.transformer: Transformer
  • added: field Options.validateStatus: ValidateStatus
  • added: method Dio.clear()
  • added: method Options.merge({ String method, String baseUrl, String path, int connectTimeout, int receiveTimeout, dynamic data, Map<String, dynamic> extra, Map<String, dynamic> headers, ResponseType responseType, ContentType contentType, ValidateStatus validateStatus }): Options
  • added: method Transformer.transformRequest(Options options): Future
  • added: method Transformer.transformResponse(Options options, HttpClientResponse response): Future
  • added: static method Transformer.urlEncodeMap(data): String
  • added: typedef bool ValidateStatus(int status)
  • added: typedef dynamic OnHttpClientCreate(HttpClient client)