Problem/Motivation
drupal/web_push_api (1.x branch, current HEAD) pins in its composer.json:
"minishlink/web-push": "^6"This constraint pulls in a chain of packages flagged as abandoned on Packagist: web-token/jwt-core, web-token/jwt-key-mgmt, web-token/jwt-signature, web-token/jwt-signature-algorithm-ecdsa, web-token/jwt-util-ecc, and transitively fgrosse/phpasn1.
composer audit --locked does not report any active CVE against these packages today, but since they are abandoned they will not receive a fix if one is ever found, and they generate constant noise in dependency audits for sites consuming this module.
minishlink/web-push v10.1.0 replaces this entire chain with a single maintained package, web-token/jwt-library (^3.4.9|^4.0.6), and requires PHP >=8.2.
Steps to reproduce
composer require drupal/web_push_apicomposer why fgrosse/phpasn1/composer why web-token/jwt-core— shows the chain coming throughminishlink/web-push.composer audit --locked— reports the packages asabandoned.
Proposed resolution
Update the module's require to "minishlink/web-push": "^10.1" and adjust the wrapper (src/Component/WebPush.php and related classes) to the minishlink/web-push v10.x API. A reference patch will be attached once validated.
Remaining tasks
- Confirm
composer updateresolves without conflicts. - Review API changes in the module's wrapper classes.
- Bump the module's PHP requirement if needed (v10 requires
>=8.2).
Issue fork web_push_api-3612264
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
abarrioCreated MR to resolve the problem and modified the PHP and core requirements according to the new library version PHP requirement.