Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Nov 9, 2023
2 parents 53090de + 8943da0 commit e258320
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 28 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions packages/enhanced_http/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
20 changes: 6 additions & 14 deletions packages/enhanced_http/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
11 changes: 4 additions & 7 deletions packages/enhanced_http/lib/enhanced_http.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand All @@ -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 ??= {};
Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/enhanced_http/lib/streamed_request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:path/path.dart' as p;
import 'package:http_parser/http_parser.dart';

class StreamedRequest {
Future<dynamic> streamedRequest(method, url, headers,
Future<dynamic> streamed(method, url, headers,
{payload, files, responseType}) async {
final request = http.MultipartRequest(method, url);
request.headers.addAll(headers);
Expand Down
4 changes: 2 additions & 2 deletions packages/enhanced_http/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions packages/enhanced_http/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit e258320

Please sign in to comment.