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?

4,313 thoughts on “Why you should version your Node dependencies using tilde

  1. For those seeking online gambling rewards play an important factor for enticing and maintaining players. Of the various virtual gambling platforms out there National Casino AU shines for the generous promotional offerings. Whether youre an incoming player or even an experienced pro https://karlovac10.run/ offers a promotion designed to match your needs. Catering to beginners they extends a substantial welcome bonus that often consists of a combination of bonus spins and additional money for you to utilize towards a variety of games. These offers not only offering additional benefits but also allow you to explore various games and potentially increase the likelihood of hitting a jackpot without having to risking a lot of money. For loyal members National Casino also provides continuous special offers including reload bonuses rebates offers along with special tournaments designed to keep the excitement alive while reward your continued patronage. Through utilizing these bonuses players can enhance the internet gaming experience and boost your odds of achieving big wins

  2. Running Riots tactical shooter on a tablet device is something an increasing number of local gamers have been wondering about especially anyone who travel regularly a desktop PC yet still want to stay sharp during downtime and the honest answer is that with the right approach its actually doable to pull it off on a tablet which is why guides like those at plugnplay.re are now genuinely useful for Australian gamers trying to game smarter. Similar to CS2 Valorant hasnt launched an iOS or Android release at this point which means the path forward for tablet play runs through remote play technology such as Xbox Cloud Gaming — services which deliver the desktop version straight onto any compatible device without needing the local hardware. Your internet connection will make or break how well it works since the game is particularly sensitive to ping and latency — just extra milliseconds translates to missing shots youd normally land easily on your home setup. Theres hands-on tablet gaming information at https://plugnplay.re/ which addresses these real-world connection issues helping players fine-tune the configuration ahead of playing. A Bluetooth controller is close to mandatory for a game like this on a touchscreen device — the accuracy needed for gunplay means on-screen controls falls way short in competitive or even casual level so grab a controller like a Razer Kishi before you start and things will get significantly from the first game. A full KB and mouse setup through an OTG adapter is honestly an option on many compatible tablets and gives you the closest experience to a desktop setup if youre willing to lug the peripherals. Your tablets display and screen refresh both matter more than most youd think — a 90Hz or 120Hz panel makes the game look and feel far more fluid next to a 60Hz screen so if your device has it ensure that its activated in the streaming app for maximum visual response. Ultimately tablet Valorant is a real solution for Aussie players who wont stop grinding simply because theyre away from their main setup.

  3. casino las vegas usa, bet365 poker united states and best payid casino [Gabriela] in new zealand, or united kingdom
    poker machine game download

  4. Thank you for some other informative blog. Where else may just I get that type of info written in such a perfect approach? I’ve a challenge that I’m simply now working on, and I have been at the glance out for such info.

  5. хендикап залагания

    Feel free to surf to my website: лицензирани букмейкъри българия (Una)

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>