laminas-ci-matrix-action
laminas-ci-matrix-action copied to clipboard
Feature: Use `composer/semver` to detect PHP version ranges
Q | A |
---|---|
Bugfix | yes |
BC Break | no |
New Feature | yes |
Description
By using composers own composer/semver
library, we are able to detect PHP version ranges from almost every composer-compatible constraint.
Fixes #87
Everything checks out though. Looks good to merge if we decide to go down this route, but I'm not convinced its necessary.
I've raised an "issue" in the NPM semver implementation: https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/61669
As I understand it, that repository is for the typescript mappings for everything @types/
related, including @types/semver
. The implementation for the semver
library would be https://github.com/npm/node-semver. I've opened an issue for that one here https://github.com/npm/node-semver/issues/468. 🤞
It appears there are some other differences, so I think we have to go this route after all.