Skip to content

Update dependency minishlink/web-push to v11 - #74

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/minishlink-web-push-11.x
Open

Update dependency minishlink/web-push to v11#74
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/minishlink-web-push-11.x

Conversation

@renovate

@renovate renovate Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
minishlink/web-push v9.0.2v11.0.0 age confidence

Release Notes

web-push-libs/web-push-php (minishlink/web-push)

v11.0.0

Compare Source

Migration

WebPush now depends on standard interfaces instead of Guzzle directly. Any PSR-18 client now works.

If you already have guzzlehttp/guzzle installed and call new WebPush(...) with no client-related arguments: no code changes needed. php-http/discovery auto-detects Guzzle and uses it. If you use flushPooled(), you now need one extra package, see below.

If you pass the old $timeout / $clientOptions constructor arguments, you must update that call.

Constructor signature change

Before:

public function __construct(
      array $auth = [],
      array $defaultOptions = [],
      ?int $timeout = 30,
      array $clientOptions = [],
      ?LoggerInterface $logger = null
)

After:

public function __construct(
      array $auth = [],
      array $defaultOptions = [],
      ?ClientInterface $client = null,          // PSR-18
      ?RequestFactoryInterface $requestFactory = null, // PSR-17
      ?StreamFactoryInterface $streamFactory = null,   // PSR-17
      ?HttpAsyncClient $asyncClient = null,     // HTTPlug, optional, only needed for flushPooled()
      ?LoggerInterface $logger = null
)

$timeout and $clientOptions are replaced by configuring your client instance directly:

Before:

$timeout = 20;
$clientOptions = [\GuzzleHttp\RequestOptions::ALLOW_REDIRECTS => false];
$webPush = new WebPush([], [], $timeout, $clientOptions);

After:

$client = new \GuzzleHttp\Client([
      'timeout' => 20,
      \GuzzleHttp\RequestOptions::ALLOW_REDIRECTS => false,
]);
$webPush = new WebPush([], [], $client);

If you were relying on the default (new WebPush()), nothing changes.

Keeping flushPooled() concurrency

flushPooled() used Guzzle's Pool for real concurrent requests. PSR-18 has no concept of concurrency, so this now requires an HTTPlug async client: composer require php-http/guzzle7-adapter (if you use guzzle)

The requestConcurrency option is no longer used, HTTPlug async clients manage their own concurrency (e.g. php-http/guzzle7-adapter delegates to Guzzle's MultiCurl handler).

Using a different PSR-18 client entirely
composer remove guzzlehttp/guzzle
composer require symfony/http-client nyholm/psr7
$psr18Client = new \Symfony\Component\HttpClient\Psr18Client();
$webPush = new WebPush([], [], $psr18Client, $psr18Client, $psr18Client);

For concurrent sending with a non-Guzzle stack (flushPooled), check the php-http adapter list for an HTTPlug adapter matching your client; otherwise use flush().

What's Changed

New Contributors

Full Changelog: web-push-libs/web-push-php@v10.1.0...v11.0.0

v10.1.0

Compare Source

What's Changed

New Contributors

Full Changelog: web-push-libs/web-push-php@v10.0.3...v10.1.0

v10.0.3

Compare Source

What's Changed

  • fix: base 64 errors introduced in v10.0.2. See #​449

Full Changelog: web-push-libs/web-push-php@v10.0.2...v10.0.3

v10.0.2

Compare Source

What's Changed

New Contributors

Full Changelog: web-push-libs/web-push-php@v10.0.1...v10.0.2

v10.0.1

Compare Source

What's Changed

Full Changelog: web-push-libs/web-push-php@v10.0.0...v10.0.1

v10.0.0

Compare Source

What's Changed

⚠️ Breaking changes
  • Drop support for PHP 8.1
PRs

Full Changelog: web-push-libs/web-push-php@v9.0.4...v10.0.0

v9.0.4

Compare Source

What's Changed

Full Changelog: web-push-libs/web-push-php@v9.0.3...v9.0.4

v9.0.3

Compare Source

What's Changed

New Contributors

Full Changelog: web-push-libs/web-push-php@v9.0.2...v9.0.3


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants