diff --git a/CHANGELOG.md b/CHANGELOG.md index bd3d7cb..1f2f524 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,27 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 2023-11-09 + +### Changes + +--- + +Packages with breaking changes: + + - There are no breaking changes in this release. + +Packages with other changes: + + - [`enhanced_http` - `v4.1.1-blizzard.0`](#enhanced_http---v411-blizzard0) + +--- + +#### `enhanced_http` - `v4.1.1-blizzard.0` + + - **FIX**(enhanced-http): fix casing issue in generated docs. + + ## 2023-10-15 ### Changes diff --git a/packages/enhanced_http/CHANGELOG.md b/packages/enhanced_http/CHANGELOG.md index c6785fb..682d010 100644 --- a/packages/enhanced_http/CHANGELOG.md +++ b/packages/enhanced_http/CHANGELOG.md @@ -1,3 +1,7 @@ +## 4.1.1-blizzard.0 + + - **FIX**(enhanced-http): fix casing issue in generated docs. + ## 4.1.0 * Provided direct access to the underlying http package \ No newline at end of file diff --git a/packages/enhanced_http/example/pubspec.lock b/packages/enhanced_http/example/pubspec.lock index 6c413c5..9e045a2 100644 --- a/packages/enhanced_http/example/pubspec.lock +++ b/packages/enhanced_http/example/pubspec.lock @@ -92,10 +92,10 @@ packages: dependency: transitive description: name: file - sha256: b69516f2c26a5bcac4eee2e32512e1a5205ab312b3536c1c1227b2b942b5f9ad + sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d" url: "https://pub.dev" source: hosted - version: "6.1.2" + version: "6.1.4" flutter: dependency: "direct main" description: flutter @@ -113,18 +113,18 @@ packages: dependency: transitive description: name: flutter_cache_manager - sha256: "32cd900555219333326a2d0653aaaf8671264c29befa65bbd9856d204a4c9fb3" + sha256: "8207f27539deb83732fdda03e259349046a39a4c767269285f449ade355d54ba" url: "https://pub.dev" source: hosted - version: "3.3.0" + version: "3.3.1" http: dependency: transitive description: name: http - sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2" + sha256: "4c3f04bfb64d3efd508d06b41b825542f08122d30bda4933fb95c069d22a4fa3" url: "https://pub.dev" source: hosted - version: "0.13.6" + version: "1.0.0" http_parser: dependency: transitive description: @@ -221,14 +221,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.0.5" - pedantic: - dependency: transitive - description: - name: pedantic - sha256: "67fc27ed9639506c856c840ccce7594d0bdcd91bc8d53d6e52359449a1d50602" - url: "https://pub.dev" - source: hosted - version: "1.11.1" platform: dependency: transitive description: diff --git a/packages/enhanced_http/lib/enhanced_http.dart b/packages/enhanced_http/lib/enhanced_http.dart index cc0c222..4ef97a2 100644 --- a/packages/enhanced_http/lib/enhanced_http.dart +++ b/packages/enhanced_http/lib/enhanced_http.dart @@ -27,8 +27,7 @@ class EnhancedHttp extends StreamedRequest with Interceptor, Utils { return await request(() async { final url = Uri.parse('$baseURL$path'); if (isStream(headers, responseType)) { - return await streamedRequest( - 'GET', url, mergeHeaders(this.headers, headers), + return await streamed('GET', url, mergeHeaders(this.headers, headers), responseType: responseType); } return await http.get( @@ -47,8 +46,7 @@ class EnhancedHttp extends StreamedRequest with Interceptor, Utils { final url = Uri.parse('$baseURL$path'); return await request(() async { if (isStream(headers, responseType)) { - return await streamedRequest( - 'POST', url, mergeHeaders(this.headers, headers), + return await streamed('POST', url, mergeHeaders(this.headers, headers), payload: payload, files: files, responseType: responseType); } return await http.post( @@ -64,8 +62,7 @@ class EnhancedHttp extends StreamedRequest with Interceptor, Utils { final url = Uri.parse('$baseURL$path'); return await request(() async { if (isStream(headers, responseType)) { - return await streamedRequest( - method, url, mergeHeaders(this.headers, headers), + return await streamed(method, url, mergeHeaders(this.headers, headers), payload: payload, files: files, responseType: responseType); } else { payload ??= {}; @@ -112,7 +109,7 @@ class EnhancedHttp extends StreamedRequest with Interceptor, Utils { return await request(() async { final url = Uri.parse('$baseURL$path'); if (isStream(headers, responseType)) { - return await streamedRequest( + return await streamed( 'DELETE', url, mergeHeaders(this.headers, headers), responseType: responseType); } diff --git a/packages/enhanced_http/lib/streamed_request.dart b/packages/enhanced_http/lib/streamed_request.dart index ff90055..cafccb3 100644 --- a/packages/enhanced_http/lib/streamed_request.dart +++ b/packages/enhanced_http/lib/streamed_request.dart @@ -3,7 +3,7 @@ import 'package:path/path.dart' as p; import 'package:http_parser/http_parser.dart'; class StreamedRequest { - Future streamedRequest(method, url, headers, + Future streamed(method, url, headers, {payload, files, responseType}) async { final request = http.MultipartRequest(method, url); request.headers.addAll(headers); diff --git a/packages/enhanced_http/pubspec.lock b/packages/enhanced_http/pubspec.lock index ccd2571..29f952c 100644 --- a/packages/enhanced_http/pubspec.lock +++ b/packages/enhanced_http/pubspec.lock @@ -63,10 +63,10 @@ packages: dependency: "direct main" description: name: http - sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2" + sha256: "4c3f04bfb64d3efd508d06b41b825542f08122d30bda4933fb95c069d22a4fa3" url: "https://pub.dev" source: hosted - version: "0.13.6" + version: "1.0.0" http_parser: dependency: "direct main" description: diff --git a/packages/enhanced_http/pubspec.yaml b/packages/enhanced_http/pubspec.yaml index ba9dd84..c0d18ad 100644 --- a/packages/enhanced_http/pubspec.yaml +++ b/packages/enhanced_http/pubspec.yaml @@ -1,15 +1,15 @@ name: enhanced_http description: A wrapper around the dart http package provided by Google which is inspired by axios -version: 4.1.0 +version: 4.1.1-blizzard.0 repository: https://github.com/sliit-foss/enhanced_http environment: sdk: ">=2.12.0 <3.7.0" dependencies: - http: 0.13.6 - http_parser: 4.0.2 - path: 1.8.3 + http: ^1.0.0 + http_parser: ^4.0.2 + path: ^1.8.3 dev_dependencies: flutter_test: