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?

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

  1. Top World Newspapers highlights key daily stories, timeless stories, and different voices worldwide.
    It stands as a hub that lets you get the essence of
    worldwide news in no time.

    If you follow global politics, society, sports, or trade, you’ll come across
    a streamlined set of what’s important. No clutter,
    only the heart of daily news.

    Take a look at my website; the best of Newspapers

  2. Numerous influencers step outside the app alone.
    Their impact goes toward the music industry, trends, marketing, as well as TV shows.
    Brands collaborate alongside them to advertise, followers follow their trends,
    and several are able to form professional lives in media.
    In short, acting as a TikTok star equals holding influence to influence
    styles and lifestyles in today’s online space.

    Here is my page: Valentina Of4

  3. Plenty of TikTok stars move outside the platform alone.
    Their reach flows into audio, clothing,
    marketing, as well as mass media. Brands work together with them for promotions, supporters follow their formats, and some manage
    to build long-term careers in the industry.
    In short, living as a creator means having the power to influence
    styles and culture in the current digital world.

    My website – Valentina Strauss

  4. Hello . I came across a 139 helpful site that I think you should visit. This resource is packed with a lot of useful information that you might find helpful. It has everything you could possibly need so be sure to give it a visit https://deaddesire.org/games-of-luck/how-to-select-the-best-poker-website/ Additionally remember not to neglect guys — you at all times may in this particular article discover answers for the the absolute confusing queries. We attempted to lay out all of the content using the extremely understandable method.

  5. Hello folks I came across a 139 interesting tool that I think you should take a look at. This site is packed with a lot of useful information that you might find insightful. It has everything you could possibly need so be sure to give it a visit https://tyndallconference2011.org/betting-tips/making-betting-easier-online/ Furthermore dont neglect guys that you at all times can within the piece locate solutions to address your the absolute complicated inquiries. Our team tried to explain the complete content in the very easy-to-grasp way.

  6. Эта статья предлагает живое освещение актуальной темы с множеством интересных фактов. Мы рассмотрим ключевые моменты, которые делают данную тему важной и актуальной. Подготовьтесь к насыщенному путешествию по неизвестным аспектам и узнайте больше о значимых событиях.
    Открыть полностью – https://simranivfwellness.com/10-myths-about-fertility-treatments-you-need-to-stop-believing

  7. Этот информативный текст выделяется своими захватывающими аспектами, которые делают сложные темы доступными и понятными. Мы стремимся предложить читателям глубину знаний вместе с разнообразием интересных фактов. Откройте новые горизонты и развивайте свои способности познавать мир!
    Это ещё не всё… – https://www.mevn.ai/revolutionizing-pharma-sales-training-with-ai-chatbots

  8. Кошечки — это не просто домашние питомцы а настоящие члены семьи. Если у вас в голове появилась мысль о том чтобы купить кошечку которая издает милое мяу то эта статья для вас. Мы рассмотрим как выбрать и где приобрести кошку а также что учитывать при покупке. Почему стоит купить кошку? Кошки — отличные компаньоны. Они могут радовать вас своим игривым характером а также предоставлять уют и комфорт в вашем доме. Кроме того забота о питомце формирует ответственность и доброту. Кошечка издающая мяу несомненно поднимет настроение и станет источником радости в вашей жизни. Выбор породы Перед тем как купить кошечку важно определиться с породой. Каждая порода имеет свои особенности: характер размеры уровень активности и требования к уходу. Некоторые породы такие как персидские или британские кошки славятся своим спокойным нравом тогда как сиамские или бенгальские могут быть весьма активными и игривыми. Где купить кошечку? Есть несколько мест где вы можете приобрести свою пушистую подружку. Зоомагазины предлагают широкий выбор но ценовая категория и условия содержания часто могут вызывать вопросы. Приюты и благотворительные организации — отличный вариант для тех кто хочет помочь бездомным животным. Также можно рассмотреть объявления от частных лиц однако тут важно быть внимательным к условиям при которых содержится животное. Покупка и первое время с кошкой При покупке важно учитывать не только цену но и здоровье животного. Убедитесь что у кошки есть все необходимые прививки и документы. Первое время в вашем доме будет непростым как для кошки так и для вас поэтому подготовьте все необходимое: миски лоток игрушки и место для отдыха. Дайте время вашему питомцу освоиться и не забывайте о ласке и заботе. Заключение Покупка кошечки — это ответственный шаг который приносит много радости. Позаботьтесь о выборе породы месте покупки и условиях проживания. Не забывайте что каждая кошечка заслуживает любви и ответственности со стороны хозяев. А если вы готовы дать домашнему животному заботу и ласку кошечка мяу станет вашим верным другом на долгие годы. Смотрите также: Sayty мефедрон купить Меф mozhno купить Knizhnye zakladki купить

  9. 888Starz Casino is an online gambling venue that unites a massive
    range of titles with a sleek appearance and seamless navigation.
    It features everything from timeless slots and board-style games to live
    gaming halls powered by trusted studios. The platform runs on stable system that guarantees quick performance and fair play, creating an atmosphere
    where both beginners and seasoned players can feel secure and amused.

    What really makes 888 Starz shine is its focus on convenience and
    promotions. Gamblers can make deposits and cash out using dozens of payment methods
    — including blockchain payments — and the platform offers
    regular offers, events, and a valuable membership scheme.

    The account setup is fast, and the layout works perfectly
    across all screens, so you can enjoy games
    anywhere without losing efficiency.

    Behind the fun is a reliable backbone: 888Starz
    Platform operates under an recognized license agreement, providing fair policies and control features.
    Whether you come for wagers on sports, live baccarat, or exploring fresh games, the platform delivers
    a high-quality yet exciting mood that feels global, active, and secure.

    LX240175242

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>