Giter Club home page Giter Club logo

Comments (2)

mgol avatar mgol commented on May 13, 2024

Thanks for the report.

This behaves exactly as in the semver package:

const semver = require('semver');
semver.satisfies("1.2.3", "*"); // true
semver.satisfies("1.2.3-beta.1", "*"); // false

The rationale is that by default version ranges should assume people want stable versions of packages; if you want to allow pre-release ones, you need to be explicit and even being explicit that you want to accept 1.0.0-beta doesn't mean 1.0.1-beta gets accepted:

const semver = require('semver');
semver.satisfies("1.0.0-beta.1", ">=1.0.0-beta"); // true
semver.satisfies("1.0.1-beta.1", ">=1.0.0-beta"); // false

That said, if you have * as a version range in package.json, npm install installs the pre-release version if none other is available and doesn't even print any warning (at least with npm 4.2.0). So relaxing that requirement sounds reasonable.

Would you like to submit a PR?

from check-dependencies.

tomi avatar tomi commented on May 13, 2024

Unfortunately at this point I don't have the time to do a PR

from check-dependencies.

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.