diff --git a/dio/CHANGELOG.md b/dio/CHANGELOG.md index 299ab38ac..c31d4bc75 100644 --- a/dio/CHANGELOG.md +++ b/dio/CHANGELOG.md @@ -17,7 +17,7 @@ See the [Migration Guide][] for the complete breaking changes list.** - 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`. +- Deprecate `MultipartFile` constructor in favor `MultipartFile.fromStream`. - Add `FormData.clone`. ## 5.3.0 @@ -89,14 +89,14 @@ See the [Migration Guide][] for the complete breaking changes list.** - Add `ImplyContentTypeInterceptor` as a default interceptor. - Add `Headers.multipartFormDataContentType` for headers usage. -- Fix variable shadowing of `withCredentials` in `browser_adapers.dart`. +- Fix variable shadowing of `withCredentials` in `browser_adapter.dart`. ## 5.0.0 - Raise the min Dart SDK version to 2.15.0 to support `BackgroundTransformer`. - Change `Dio.transformer` from `DefaultTransformer` to `BackgroundTransformer`. - Remove plain ASCII check in `FormData`. -- Allow asynchronized method with `savePath`. +- Allow asynchronous method with `savePath`. - Allow `data` in all request methods. - A platform independent `HttpClientAdapter` can now be instantiated by doing `dio.httpClientAdapter = HttpClientAdapter();`. @@ -181,7 +181,7 @@ the subsequent interceptors processing logic more finely (whether to skip them o ## 4.0.0-beta3 - rename CollectionFormat to ListFormat -- change default value of Options.listFormat from `mutiComptible` to `multi` +- change default value of Options.listFormat from `multiCompatible` to `multi` - add upload_stream_test.dart ## 4.0.0-beta2 diff --git a/dio/test/options_test.dart b/dio/test/options_test.dart index 25a1df293..0a30464c6 100644 --- a/dio/test/options_test.dart +++ b/dio/test/options_test.dart @@ -135,7 +135,7 @@ void main() { }); test('options content-type', () { const contentType = 'text/html'; - const contentTypeJson = 'appliction/json'; + const contentTypeJson = 'application/json'; final headers = {'content-type': contentType}; final jsonHeaders = {'content-type': contentTypeJson}; diff --git a/dio/test/request_test.dart b/dio/test/request_test.dart index cd49e293b..789985f3a 100644 --- a/dio/test/request_test.dart +++ b/dio/test/request_test.dart @@ -125,7 +125,7 @@ void main() { expect(response.data['query'], equals('id=12&name=wendu')); expect(response.headers.value('single'), equals('value')); - const map = {'content': 'I am playload'}; + const map = {'content': 'I am payload'}; // test post response = await dio.postUri( diff --git a/plugins/native_dio_adapter/README.md b/plugins/native_dio_adapter/README.md index 88b18335b..f7ce819f4 100644 --- a/plugins/native_dio_adapter/README.md +++ b/plugins/native_dio_adapter/README.md @@ -19,7 +19,7 @@ Inspired by the [Dart 2.18 release blog](https://medium.com/dartlang/dart-2-18-f # Motivation -Using the native platform implementation, rather than the socket-based [`dart:io` HttpClient](https://api.dart.dev/stable/dart-io/HttpClient-class.html) implemententation, has several advantages: +Using the native platform implementation, rather than the socket-based [`dart:io` HttpClient](https://api.dart.dev/stable/dart-io/HttpClient-class.html) implementation, has several advantages: - It automatically supports platform features such VPNs and HTTP proxies. - It supports many more configuration options such as only allowing access through WiFi and blocking cookies. @@ -29,7 +29,7 @@ Using the native platform implementation, rather than the socket-based [`dart:io ```dart final dioClient = Dio(); -if (Platform.isIOS || Platform.isMacOS || Platform.isAndroid) { +if (Platform.isIOS || Platform.isMacOS || Platform.isAndroid) { dioClient.httpClientAdapter = NativeAdapter(); } ```