How to Update NPM Dependencies

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 27

  • @DimitriNicolas
    @DimitriNicolas 5 лет назад +6

    Great video, there is also the "updtr" cli tool that update each outdated dependency one by one and run an "npm test" to control each dependency update.

    • @abnormi101
      @abnormi101 5 лет назад +1

      Thxs Dimitri! This tool is indeed really helpful. Gave it a quick try and it works like charm 👍

  • @cunningham.s_law
    @cunningham.s_law 5 лет назад +7

    I use npm-check -u for interactive updates

  • @peterm.souzajr.2112
    @peterm.souzajr.2112 5 лет назад +4

    these pro-tip videos are really helpful

  • @yuriinadilnyi3029
    @yuriinadilnyi3029 3 года назад +2

    It helped me to avoid a lot of troubles i got before! thx u!

  • @noob_player_in_the_field
    @noob_player_in_the_field 4 года назад +3

    npm WARN deprecated core-js@2.6.11: core-js@

  • @adarshgupta9272
    @adarshgupta9272 4 года назад +1

    Amazing video bro it helped me a lot even after spending 30 mins on net I didn't got clarity like your video

  • @devilmanscott
    @devilmanscott 5 лет назад +4

    Why not use yarn upgrade-interactive --latest which also shows you if the an update will be breaking or not.

    • @bawad
      @bawad  5 лет назад +1

      I like that one too, but it behaves a little weird when using it inside a yarn workspace. But for regular projects it has worked great for me

    • @devilmanscott
      @devilmanscott 5 лет назад +1

      @@bawad It's actually worked quite well for me in work spaces, but work spaces are still relatively new and might need more development time.

  • @techstacker5361
    @techstacker5361 5 лет назад +3

    Very useful! Thanks, Ben 👍👍👍

  • @thogufree
    @thogufree 2 года назад

    I am missing a bit of info on regular upates due to security vulnerabiliteis etc and how best to deal with updating in case of version conflicts in required dependencies, peer dependencies etc. Any thoughts on that?

  • @joelmatthias
    @joelmatthias Год назад +1

    This is a little confusing. Semantic versioning states that a change in the major version indicates a breaking change. But then you state that the minor change of type-graphql indicates a breaking change. Is that because the major version number is less than 1. It seems bad that the rules are different for a package with a major version of 0!

    • @StiekemeHenk
      @StiekemeHenk Год назад

      Some people don't follow Semantic Versioning, some try to but fail doing it properly.
      It sucks but it is what it is. This is why you should always check the notes for breaking changes. There's no real standard but Semantic Versioning seems to be the most accepted and used.
      Some devs might reserve big v.#.0.0 for big changes or redesigns because it sounds fancy or marketing reasons. "React 2.0 is out!" gets some attention as if it's an all new "React 2".

  • @codebro1785
    @codebro1785 5 лет назад +6

    Really useful stuff. Typescript went from 3.2.2 -> 3.3.3333 does that mean they fixed 3331 bugs? :D Just kidding but I still wonder why they chose to increment by such a large number...

  • @dailymeow3283
    @dailymeow3283 3 года назад

    Hey Ben, i try to create a react project, i found 86 vulnerabilities 4 of them are high ReDoS, and npm audit fix, couldn't fix any... what do you do in such case

  • @jackpitts5561
    @jackpitts5561 7 месяцев назад

    I wasn't allowed to download ncu onto my macbook bc it said "rejected by your operating system, likely you do not have permissions"

  • @ProgrammingWithOsku
    @ProgrammingWithOsku 2 года назад

    Ben Awad Habebi you are the best

  • @wrod7
    @wrod7 5 лет назад

    i use version lens vs code extension to show me out of date dependencies

    • @bawad
      @bawad  5 лет назад +1

      that looks sweet, I'm going to give it a try thanks!

  • @omri9325
    @omri9325 5 лет назад +3

    yarn upgrade-interactive --latest

  • @gijovarghese7548
    @gijovarghese7548 5 лет назад

    volume is little low

    • @bawad
      @bawad  5 лет назад

      noted, thanks