An open index of dependabot pull requests across open source projects.

Update jerome/fetch-php requirement from ^2.0 to ^3.2

Merged
Number: #1
Type: Pull Request
State: Merged
Author: dependabot[bot] dependabot[bot]
Association: None
Comments: 0
Created: May 19, 2025 at 04:16 AM UTC
(about 1 year ago)
Updated: May 19, 2025 at 04:17 AM UTC
(about 1 year ago)
Merged: May 19, 2025 at 04:17 AM UTC
(about 1 year ago)
by CodeWithSushil
Time to Close: 1 minute
Labels:
dependencies php
Description:

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 ManagesRetriesTest by using a mock class for retry-logic testing.
  • Consolidated tests for retryable status codes and exceptions into a single method.
  • Updated PerformsHttpRequestsTest to use GuzzleHttp client 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 the PerformsHttpRequests trait. This method centralizes request finalization logic, enabling internal shortcut methods like get(), post(), etc., to function correctly.

Changed

  • Internal shortcut HTTP methods (get(), post(), put(), etc.) in PerformsHttpRequests now route through the newly added finalizeRequest() method for consistent request handling.

Fixed

  • Fixed a fatal error caused by calling an undefined finalizeRequest() method in ClientHandler. The missing method has now been properly defined and implemented.

v3.1.0 - 2025-05-10

Added

  • PSR-18 Client: Fetch\Http\Client now implements Psr\Http\Client\ClientInterface for drop-in interoperability.

  • Fluent Request Builder: Chainable helpers on ClientHandler for 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 and wrapAsync()/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
  • 2e2d862 Update version to 3.2.1 in composer.json and remove v3.2.1 entry from CHANGELOG
  • 7fa537f Update CHANGELOG to reflect updated dependencies and improve formatting
  • 9f18a0c Update CHANGELOG
  • 0c20bd8 Add terser as a dev dependency and optimize build configuration in VitePress
  • 32f104b Enhance documentation and configuration for Fetch PHP, including SEO improvem...
  • f9b54bb Update working with enums guide to include next steps for further learning
  • d812e16 Update documentation to include guide on using enums in Fetch PHP
  • eb0211b Enhance documentation for Fetch PHP package
  • 4ea0b55 Bump version to 3.2.0 in composer.json
  • 7e1b0c3 Update 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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will 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
Commits:
1
Files Changed:
1
Additions:
+1
Deletions:
-1
Package Dependencies
Ecosystem:
packagist
Version Change:
^2.0 → ^3.2
Technical Details
ID: 421599
UUID: 2527492695
Node ID: PR_kwDOORAt2s6WpnpX
Host: GitHub
Repository: CodeWithSushil/fetch-php-example
Merge State: Unknown