Coder Social home page Coder Social logo

Comments (4)

ghostwriter avatar ghostwriter commented on June 12, 2024 1

@boesing I believe it is related to this package. We should "normalize" the Composer version string composerJson['require']['php'].replace(/,\s/i, ' ') to the format NPM understands.

NPM

Advanced ranges may be combined in the same way as primitive comparators using white space ( ) or (||). https://docs.npmjs.com/cli/v6/using-npm/semver

eg. https://jubianchi.github.io/semver-check/#/%3E%3D1.2.7%20%3C1.3.0/1.2.8

Composer

You can define multiple ranges. Ranges separated by a space ( ) or comma (,) will be treated as a logical AND. A double pipe (||) will be treated as a logical OR. AND has higher precedence than OR.
https://getcomposer.org/doc/articles/versions.md#version-range

eg. https://semver.madewithlove.com/?package=composer%2Fcomposer&constraint=%3E%3D2.1.1%2C+%3C2.2.2&stability=stable

from laminas-ci-matrix-action.

boesing avatar boesing commented on June 12, 2024

Hey, thanks for reporting back.
I am unsure if this is related to this package or to upstream https://github.com/npm/node-semver
We do not implement semver ourselves and thus I'd report it there.

Since there was no update since 03/2021, the current matrix action container should already contain the latest version of node-semver.

Do you know any other semver parsing library which could replace the current semver dependency in this action?

from laminas-ci-matrix-action.

Ocramius avatar Ocramius commented on June 12, 2024

Thanks @ghostwriter!

from laminas-ci-matrix-action.

boesing avatar boesing commented on June 12, 2024

Got it, thanks for pointing that out @ghostwriter!

from laminas-ci-matrix-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.