Skip to content

Commit 7fa537f

Browse files
committed
Update CHANGELOG to reflect updated dependencies and improve formatting
1 parent 9f18a0c commit 7fa537f

File tree

1 file changed

+21
-34
lines changed

1 file changed

+21
-34
lines changed

CHANGELOG.md

Lines changed: 21 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
### Changed
88

99
* Updated documentation
10+
* Updated dependencies
1011

11-
**Full Changelog**: https://github.com/Thavarshan/fetch-php/compare/3.2.0...3.2.1
12+
**Full Changelog**: <https://github.com/Thavarshan/fetch-php/compare/3.2.0...3.2.1>
1213

1314
## [v3.2.0](https://github.com/Thavarshan/fetch-php/compare/v3.1.1...v3.2.0) - 2025-05-16
1415

@@ -28,45 +29,44 @@
2829

2930
* Improved back-off delay calculations in retry tests to ensure correct timing.
3031

31-
**Full Changelog**: https://github.com/Thavarshan/fetch-php/compare/3.1.1...3.2.0
32+
**Full Changelog**: <https://github.com/Thavarshan/fetch-php/compare/3.1.1...3.2.0>
3233

3334
## [v3.1.1](https://github.com/Thavarshan/fetch-php/compare/v3.1.0...v3.1.1) - 2025-05-16
3435

3536
### Added
3637

37-
- Implemented the missing `finalizeRequest()` method in the `PerformsHttpRequests` trait. This method centralizes request finalization logic, enabling internal shortcut methods like `get()`, `post()`, etc., to function correctly.
38+
* Implemented the missing `finalizeRequest()` method in the `PerformsHttpRequests` trait. This method centralizes request finalization logic, enabling internal shortcut methods like `get()`, `post()`, etc., to function correctly.
3839

3940
### Changed
4041

41-
- Internal shortcut HTTP methods (`get()`, `post()`, `put()`, etc.) in `PerformsHttpRequests` now route through the newly added `finalizeRequest()` method for consistent request handling.
42+
* Internal shortcut HTTP methods (`get()`, `post()`, `put()`, etc.) in `PerformsHttpRequests` now route through the newly added `finalizeRequest()` method for consistent request handling.
4243

4344
### Fixed
4445

45-
- Fixed a fatal error caused by calling an undefined `finalizeRequest()` method in `ClientHandler`. The missing method has now been properly defined and implemented.
46+
* Fixed a fatal error caused by calling an undefined `finalizeRequest()` method in `ClientHandler`. The missing method has now been properly defined and implemented.
4647

4748
## [v3.1.0](https://github.com/Thavarshan/fetch-php/compare/v3.0.0...v3.1.0) - 2025-05-10
4849

4950
### Added
5051

5152
* **PSR-18 Client**: `Fetch\Http\Client` now implements `Psr\Http\Client\ClientInterface` for drop-in interoperability.
52-
53+
5354
* **Fluent Request Builder**: Chainable helpers on `ClientHandler` for headers, query params, JSON/form/multipart bodies, bearer token, basic auth, timeouts, redirects, cookies, proxy, certificates.
54-
55+
5556
* **Async/Promise Support**: Built-in ReactPHP-style promises (`async()`, `await()`, `all()`, `race()`, `any()`, `sequence()`), with `->async()` toggle and `wrapAsync()`/`awaitPromise()` helpers.
56-
57+
5758
* **Automatic Retries**: Configurable max retries, retry delay, exponential backoff with jitter, and retry-on-status (408, 429, 5xx) or exceptions (`ConnectException`).
58-
59+
5960
* **PSR-3 Logging**: Optional `LoggerInterface` injection on `Client` and `ClientHandler` with info/debug/error logs and sensitive-data masking for retries, requests, and responses.
60-
61+
6162
* **Immutable PSR-7 Extensions**:
62-
63+
6364
* `Fetch\Http\Request` extends Guzzle’s PSR-7 `Request` with immutability traits and JSON/form/multipart constructors.
6465
* `Fetch\Http\Response` extends Guzzle’s PSR-7 `Response` with buffered body, array-access to JSON payloads, and helpers: `->json()`, `->text()`, `->xml()`, `->blob()`, `->arrayBuffer()`, status inspectors, etc.
65-
66+
6667
* **Enums for Safety**: `Fetch\Enum\Method`, `ContentType`, and `Status` enums for validating methods, content types, and status codes.
67-
68+
6869
* **Test Helpers**: `ClientHandler::createMockResponse()` and `createJsonResponse()` to easily stub HTTP responses in unit tests.
69-
7070

7171
### Changed
7272

@@ -80,30 +80,28 @@
8080

8181
* None
8282

83-
8483
---
8584

8685
## [v3.0.0](https://github.com/Thavarshan/fetch-php/compare/v2.0.6...v3.0.0) - 2025-05-04
8786

8887
### Added
8988

9089
* **True Asynchronous Support**: Completely reimplemented asynchronous functionality using Matrix’s PHP Fiber-based library.
91-
90+
9291
* **JavaScript-like Syntax**: Added support for JavaScript-like async/await patterns with `async()` and `await()` functions.
93-
92+
9493
* **Promise-based API**: Introduced a clean Promise interface with `then()`, `catch()`, and `finally()` methods.
95-
94+
9695
* **Concurrent Request Helpers**: Added support for managing multiple concurrent requests with `all()`, `race()`, and `any()` functions.
97-
96+
9897
* **Task Lifecycle Management**: Implemented proper task lifecycle control (start, pause, resume, cancel, retry).
99-
98+
10099
* **Enhanced Error Handling**: Added improved error handling with customizable error handlers.
101-
100+
102101
* **New Helper Methods**:
103-
102+
104103
* `wrapAsync()`: For wrapping callables in async functions
105104
* `awaitPromise()`: For awaiting promise resolution
106-
107105

108106
### Changed
109107

@@ -124,7 +122,6 @@
124122
* **Error Propagation**: Improved how errors are propagated through Promise chains.
125123
* **Event Loop Management**: Fixed event loop management for proper async task execution.
126124

127-
128125
---
129126

130127
## [v2.0.6](https://github.com/Thavarshan/fetch-php/compare/v2.0.5...v2.0.6) - 2025-05-03
@@ -151,7 +148,6 @@
151148
* Fixed duplicate implementation of `isRetryableError()` method.
152149
* Fixed retry failure detection to properly identify the last retry attempt.
153150

154-
155151
---
156152

157153
## [v2.0.5](https://github.com/Thavarshan/fetch-php/compare/v2.0.4...v2.0.5) - 2025-03-30
@@ -162,7 +158,6 @@
162158

163159
**Full Changelog**: [https://github.com/Thavarshan/fetch-php/compare/v2.0.4...v2.0.5](https://github.com/Thavarshan/fetch-php/compare/v2.0.4...v2.0.5)
164160

165-
166161
---
167162

168163
## [v2.0.4](https://github.com/Thavarshan/fetch-php/compare/v2.0.3...v2.0.4) - 2025-03-30
@@ -189,7 +184,6 @@
189184

190185
**Full Changelog**: [https://github.com/Thavarshan/fetch-php/compare/v2.0.3...v2.0.4](https://github.com/Thavarshan/fetch-php/compare/v2.0.3...v2.0.4)
191186

192-
193187
---
194188

195189
## [v2.0.3](https://github.com/Thavarshan/fetch-php/compare/v2.0.2...v2.0.3) - 2024-12-06
@@ -204,7 +198,6 @@
204198

205199
**Full Changelog**: [https://github.com/Thavarshan/fetch-php/compare/v2.0.2...v2.0.3](https://github.com/Thavarshan/fetch-php/compare/v2.0.2...v2.0.3)
206200

207-
208201
---
209202

210203
## [v2.0.2](https://github.com/Thavarshan/fetch-php/compare/v2.0.1...v2.0.2) - 2024-10-19
@@ -224,7 +217,6 @@
224217

225218
**Full Changelog**: [https://github.com/Thavarshan/fetch-php/compare/v2.0.1...v2.0.2](https://github.com/Thavarshan/fetch-php/compare/v2.0.1...v2.0.2)
226219

227-
228220
---
229221

230222
## [v2.0.1](https://github.com/Thavarshan/fetch-php/compare/v2.0.0...v2.0.1) - 2024-10-03
@@ -234,7 +226,6 @@
234226
* Refactored `withBody()` in `ClientHandler` to accept only arrays and JSON-encode them.
235227
* Documentation and typo fixes.
236228

237-
238229
---
239230

240231
## [v2.0.0](https://github.com/Thavarshan/fetch-php/compare/v1.2.0...v2.0.0) - 2024-09-30
@@ -265,7 +256,6 @@
265256
* Async error handling.
266257
* Persistent Guzzle client reuse.
267258

268-
269259
---
270260

271261
## [v1.2.0](https://github.com/Thavarshan/fetch-php/compare/v1.1.1...v1.2.0) - 2024-09-27
@@ -288,7 +278,6 @@
288278
* Composer dependency conflicts.
289279
* Async exception handling.
290280

291-
292281
---
293282

294283
## [v1.1.1](https://github.com/Thavarshan/fetch-php/compare/v1.1.0...v1.1.1) - 2024-09-25
@@ -302,7 +291,6 @@
302291

303292
* Resolved Laravel 10 install conflict.
304293

305-
306294
---
307295

308296
## [v1.1.0](https://github.com/Thavarshan/fetch-php/compare/v1.0.0...v1.1.0) - 2024-09-24
@@ -317,7 +305,6 @@
317305

318306
* Single-instance Guzzle instantiation.
319307

320-
321308
---
322309

323310
## v1.0.0 - 2024-09-14

0 commit comments

Comments
 (0)