Giter Club home page Giter Club logo

Comments (7)

hone avatar hone commented on August 21, 2024 1

@isaacs Is ~= a valid semver operator? I noticed it works on https://semver.npmjs.com. I can't tell the difference between it and ~. For context, we're looking to replace a piece of functionality on Heroku with a Rust binary that does semver version resolution for node and yarn versions. In the wild we're seeing ~=14.4. /cc @danielleadams

from semver.

steveklabnik avatar steveklabnik commented on August 21, 2024

👍

from semver.

ashleygwilliams avatar ashleygwilliams commented on August 21, 2024

o hey! this is awesome 👾 👻 🐬

from semver.

kamalmarhubi avatar kamalmarhubi commented on August 21, 2024

Someone with edit perms: uncheck #57 since it was reopened. :-)

from semver.

isaacs avatar isaacs commented on August 21, 2024

@hone So it is!

> semver.validRange('~=1.2.3')
'>=1.2.3 <1.3.0-0'

Kinda weird, imo.

from semver.

hone avatar hone commented on August 21, 2024

Thanks! So they are the same.

Doing a quick search, I don't see it the semver range spec changes.

from semver.

dtolnay avatar dtolnay commented on August 21, 2024

As of 1.0.0, this is no longer in scope for this crate, as described by https://github.com/dtolnay/semver/tree/1.0.0-rc.1#scope-of-this-crate. A separate https://crates.io/crates/node-semver crate may or may not happen depending on who is interested in maintaining it.

from semver.

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.