Why you should version your Node dependencies using tilde

I’m going to assume you’re already familiar with SemVer and the NPM tilde extension. If not, get your eye holes around those links, particularly the second one.

Ever since I’ve been working on David I’ve seen a lot of version numbers for node projects. I’ve also authored a few npm packages and node projects myself. I find it hard understand why you wouldn’t use tilde to specify the versions of your dependencies. For example:

~1.0.2

This is shorthand for >= 1.0.2 < 1.1.0. It is saying: If the major or minor version increases then I need to retest my code to check it works on the new version, so don’t depend on that. Although, if there are bug fixes, I want them, and whilst I understand that a bugfix release could break my software, it isn’t meant to, so I’m willing to take the gamble.

The idea is that you’re allowing your dependencies to “self update” within a range that is safe to do so. This is really powerful and you should be using it.

I’ve seen a lot of absolute versions for dependencies, which is fine (you know who you are, you have your reasons), but I also see a lot of reckless version ranges: “>= 0.3.14″, “*”, “latest” which are just mad. How can you possibly know your code will still work as your dependencies transition between major and minor version numbers?

3,692 thoughts on “Why you should version your Node dependencies using tilde

  1. casino 1000 free spins (Clement) winnings tax free in united states, new zealandn online casinos no deposit and slot machines sale
    united states, or are there pokies in new united states

  2. royal ascot ante post betting​

    Feel free to visit my blog post; best horse to bet on at cheltenham
    today​ (Effie)

  3. The Reason crash games have genuinely become one of the biggest thing dominating online casinos lately boils down to several core things that make all the difference any time this kind of game comes up in the community. Compared to old-school slot machines this format rely on a simple but addictive mechanic: an increasing value rises right up until it busts which means the gambler is left to figure out the perfect timing to cash out. A good example of somewhere worth a proper look for this kind of game is lale.help and it covers a decent lineup of crash titles that are worth a spin. For those keen to get a deeper dive into the mechanics behind crash betting a proper breakdown can be found by visiting https://lale.help/ which is a spot where its easy to explore how the format has evolved. The main draw explaining the popularity of this format comes down to how easy it is to understand. You dont need confusing bonus rounds to get started – only one number climbing and a choice around when to bank your winnings. Another major factor comes down to the social side that this format brings. A lot of these games show other players bets as they happen such a feature adds a shared almost competitive vibe which older formats rarely provide. Fast rounds forms a major chunk of why players love it. A single round wraps up almost instantly meaning players can jump in and out quickly compared to slower casino games. Adding to all this that push-and-pull of greed versus caution is what has players engaged. Pulling out too soon can lead to watching the number keep climbing without you though waiting too long often results in the round ending before you cash out. This exact dilemma forms the heart of the whole genre. Going forward crash games are only getting more popular. Innovative spins on the genre are constantly being released featuring different themes to keep things fresh. Whether youre new to crash games its clear why such a straightforward concept has taken off the way it has.

  4. Hello there! This is kind of off topic but I need some guidance from an established blog. Is it very hard to set up your own blog? I’m not very techincal but I can figure things out pretty quick. I’m thinking about creating my own but I’m not sure where to start. Do you have any ideas or suggestions? Thank you

  5. free bets for cheltenham today​

    Feel free to visit my webpage: fixed odds betting horse racing​ (Brad)

  6. Если вы ищете проверенный удобный и постоянно обновляемый информационный источник рекомендуем посетить информационный портал 1wyws где регулярно публикуются актуальные материалы детальные разборы и полезные статьи на самые разные темы. Современное информационное пространство перенасыщено контентом поэтому крайне важно иметь под рукой проверенный и структурированный веб-ресурс.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>