Giter VIP home page Giter VIP logo

Comments (16)

ljharb avatar ljharb commented on June 12, 2024 1

I'm not quite comfortable with that level of a breaking change just yet; but perhaps I could also add an env var that sets that value, so it's easy to set your own default?

from nvm.

ljharb avatar ljharb commented on June 12, 2024

No, because that's a function of time, and that's not something I want nvm's output to depend on.

from nvm.

ryenus avatar ryenus commented on June 12, 2024

Hmm, even if the content of https://nodejs.org/dist/index.tab is also somehow a function of time?

from nvm.

ljharb avatar ljharb commented on June 12, 2024

It's not in the sense that nvm doesn't need to know the current date/time.

from nvm.

ryenus avatar ryenus commented on June 12, 2024

TBH I don't see why we cannot put it behind a flag such as --supported, meanwhile maintain the existing behaviour as default?

from nvm.

ljharb avatar ljharb commented on June 12, 2024

Of course we could. However, I don't think it would be a good idea to have anything depend on "the current date", and, if there were any way for a project's preferred node version to change based on the passage of time, then it would be possible for nvm use inside a project to work one day, and stop working the next, which would be both unacceptable and violate semver.

from nvm.

ryenus avatar ryenus commented on June 12, 2024

for a project's preferred node version to change based on the passage of time

Hmm, here the request is only about nvm ls-remote, with no involvement with nvm use at all.

from nvm.

ljharb avatar ljharb commented on June 12, 2024

That affects nvm install as well, though.

from nvm.

ryenus avatar ryenus commented on June 12, 2024

That affects nvm install as well, though.

Maybe not if it's an option only for nvm ls-remote?

I guess this request would be more appealing back when nvm_print_versions was quite slow before it was reimplemented using awk.

Nowadays it's pretty fast. But in the context of using nvm ls-remote to check for newer versions, the no longer supported versions are NOT going to get new versions at all, that's where this option can be useful, by making the output less cluttered.

from nvm.

ljharb avatar ljharb commented on June 12, 2024

Is your motivation to hasten/shorten the response of nvm ls-remote? That's very different from the OP :-)

from nvm.

ryenus avatar ryenus commented on June 12, 2024

Is your motivation to hasten/shorten the response of nvm ls-remote?

Well yes, that's it.

BTW, and which OP? I guess I'm a bit confused.

from nvm.

ljharb avatar ljharb commented on June 12, 2024

I meant your original post.

from nvm.

ryenus avatar ryenus commented on June 12, 2024

Ahh, I was actually thinking the same, maybe my OP should have been more concise :-)

from nvm.

ljharb avatar ljharb commented on June 12, 2024

Would a --min=18, for example, suffice here? basically it'd all work the same except it would omit displaying anything before v18 (and i'd optimize to skip contacting iojs.org entirely when the version was >= 4, etc)

from nvm.

ryenus avatar ryenus commented on June 12, 2024

Would a --min=18, for example, suffice here?

Yes, that also works! And it has the advantage of being more flexible.

Maybe we can even have it as the default? So that in the most common use case we save several keystrokes for all the users :-) Meanwhile those who want the old behavior can use --min=0.

from nvm.

ryenus avatar ryenus commented on June 12, 2024

add an env var that sets that value, so it's easy to set your own default?

That would be really great! Much appreciated 👍

from nvm.

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.