Update jerome/fetch-php requirement from ^2.0 to ^3.2
Type: Pull Request
State: Merged
Association: None
Comments: 0
(about 1 year ago)
(about 1 year ago)
(about 1 year ago)
by CodeWithSushil
dependencies php
Updates the requirements on jerome/fetch-php to permit the latest version.
Release notes
Sourced from jerome/fetch-php's releases.
v3.2.1
Changed
- Updated documentation
- Updated dependencies
Full Changelog: https://github.com/Thavarshan/fetch-php/compare/3.2.0...3.2.1
Changelog
Sourced from jerome/fetch-php's changelog.
Release Notes
Unreleased
v3.2.0 - 2025-05-16
Added
- Added tests for various HTTP methods (GET, POST, PUT, DELETE, PATCH, OPTIONS) with appropriate assertions.
Changed
- Simplified
ManagesRetriesTestby using a mock class for retry-logic testing.- Consolidated tests for retryable status codes and exceptions into a single method.
- Updated
PerformsHttpRequestsTestto useGuzzleHttpclient mocks for more accurate request simulation.- Enhanced exception-handling tests to verify error messages and retry behaviour.
- Removed unnecessary reflection methods and streamlined test setup.
Fixed
- Improved back-off delay calculations in retry tests to ensure correct timing.
Full Changelog: https://github.com/Thavarshan/fetch-php/compare/3.1.1...3.2.0
v3.1.1 - 2025-05-16
Added
- Implemented the missing
finalizeRequest()method in thePerformsHttpRequeststrait. This method centralizes request finalization logic, enabling internal shortcut methods likeget(),post(), etc., to function correctly.Changed
- Internal shortcut HTTP methods (
get(),post(),put(), etc.) inPerformsHttpRequestsnow route through the newly addedfinalizeRequest()method for consistent request handling.Fixed
- Fixed a fatal error caused by calling an undefined
finalizeRequest()method inClientHandler. The missing method has now been properly defined and implemented.v3.1.0 - 2025-05-10
Added
PSR-18 Client:
Fetch\Http\Clientnow implementsPsr\Http\Client\ClientInterfacefor drop-in interoperability.Fluent Request Builder: Chainable helpers on
ClientHandlerfor headers, query params, JSON/form/multipart bodies, bearer token, basic auth, timeouts, redirects, cookies, proxy, certificates.Async/Promise Support: Built-in ReactPHP-style promises (
async(),await(),all(),race(),any(),sequence()), with->async()toggle andwrapAsync()/awaitPromise()helpers.Automatic Retries: Configurable max retries, retry delay, exponential backoff with jitter, and retry-on-status (408, 429, 5xx) or exceptions (
ConnectException).
... (truncated)
Commits
2e2d862Update version to 3.2.1 in composer.json and remove v3.2.1 entry from CHANGELOG7fa537fUpdate CHANGELOG to reflect updated dependencies and improve formatting9f18a0cUpdate CHANGELOG0c20bd8Add terser as a dev dependency and optimize build configuration in VitePress32f104bEnhance documentation and configuration for Fetch PHP, including SEO improvem...f9b54bbUpdate working with enums guide to include next steps for further learningd812e16Update documentation to include guide on using enums in Fetch PHPeb0211bEnhance documentation for Fetch PHP package4ea0b55Bump version to 3.2.0 in composer.json7e1b0c3Update CHANGELOG- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
1
1
+1
-1
Package Dependencies
Technical Details
| ID: | 421599 |
| UUID: | 2527492695 |
| Node ID: | PR_kwDOORAt2s6WpnpX |
| Host: | GitHub |
| Repository: | CodeWithSushil/fetch-php-example |
| Merge State: | Unknown |