Update dependency minishlink/web-push to v11 - #74
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v9.0.2→v11.0.0Release Notes
web-push-libs/web-push-php (minishlink/web-push)
v11.0.0Compare 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/discoveryauto-detects Guzzle and uses it. If you useflushPooled(), 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:
After:
$timeout and $clientOptions are replaced by configuring your client instance directly:
Before:
After:
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
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.0Compare Source
What's Changed
New Contributors
Full Changelog: web-push-libs/web-push-php@v10.0.3...v10.1.0
v10.0.3Compare Source
What's Changed
Full Changelog: web-push-libs/web-push-php@v10.0.2...v10.0.3
v10.0.2Compare Source
What's Changed
json_encodeby @Rotzbua in #437web-token/jwt-libraryby @Rotzbua in #438New Contributors
Full Changelog: web-push-libs/web-push-php@v10.0.1...v10.0.2
v10.0.1Compare Source
What's Changed
Full Changelog: web-push-libs/web-push-php@v10.0.0...v10.0.1
v10.0.0Compare Source
What's Changed
PRs
Full Changelog: web-push-libs/web-push-php@v9.0.4...v10.0.0
v9.0.4Compare Source
What's Changed
Full Changelog: web-push-libs/web-push-php@v9.0.3...v9.0.4
v9.0.3Compare Source
What's Changed
New Contributors
Full Changelog: web-push-libs/web-push-php@v9.0.2...v9.0.3
Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.