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?

22 thoughts on “Why you should version your Node dependencies using tilde

  1. Excellent weblog here! Additionally your website a lot up
    very fast! What host are you using? Can I get your associate hyperlink for your host?
    I desire my website loaded up as fast as yours lol

  2. “What ya lifting now?” His dad asks as he fidgets on the commode seat. He can feel his hard-on growing in his pants. gay sex porn “This is what a man looks like son.” His father says as his pants fall to the floor. From his waist out pops his representation of a 40-year-old-man. And father of two teenage boys. His cock.

  3. “I bet you got some stares from the other boys in the locker room.” His dad adds. “You couldn’t miss it.” “What?’ He balks at the suggestion from his dad.

  4. “This is what a man looks like son.” His father says as his pants fall to the floor. From his waist out pops his representation of a 40-year-old-man. And father of two teenage boys. His cock. “What are ya now by the way?”

  5. His father loosens his grip on the full balls of his son as he stands. He can see the spurts of hair that dot the chest of his son. And he can see the heaving and gentle rise and fall of his son’s chest as he breathes as his excitement builds. “Yeah.” He answers his dad. “…and I was ‘going commando’ too.”

  6. “I thought you usually showered after practice. In the locker room.” His dad asks as he walks into the open door of the bathroom.

  7. These mice also display a remarkable switch to the more oxidative type IIa fibers over the more glycolytic type IIb fibers in the gastrocnemius and quadriceps muscles 115 priligy dosage

  8. priligy tablets What researchers do know is that hot flashes are vasomotor symptoms triggered or exacerbated by plummeting estrogen levels

  9. 2018 Feb 16; 359 6377 770 775 buy priligy cheap cialis carisoprodol diclofenaco Research from consumer group Which

  10. “This is what a man looks like son.” His father says as his pants fall to the floor. From his waist out pops his representation of a 40-year-old-man. And father of two teenage boys. His cock.

  11. The study investigators will publish the results of the pilot study including feasibility outcomes and characteristics of the study cohort should feasibility be demonstrated cost generic cytotec without insurance How Do Pregnancy Test Kits Work

  12. Игроки, специально для вас подборка https://dzen.ru/a/ZyWoFA2TYTm_Xs_I лучших сайтов! Пользуйтесь бесплатно и поделитесь ссылкой с друзьями. Моментальная продажа скинов КС 2, Дота 2, КСГО. Как продать скины за реальные деньги
    1) Войдите в аккаунт через STEAM
    Ваш профиль и инветнарь в Steam должны быть открытыми, чтобы мы могли оценить ваши скины.

    2) Выберите ваши скины
    Выберите скины из вашего инвентаря, которые хотите продать.

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>