How to list updateable dependencies with Bundler and Yarn

Updated . Posted . Visible to the public. Repeats.

Bundler

bundle outdated [--filter-major|--filter-minor|--filter-patch]

Example output for bundle outdated --filter-major

Image

Other examples

A useful flag is --strict as it will only list versions that are allowed by your Gemfile requirements (e.g. does not show rails update to 6 if your Gemfile has the line gem 'rails', '~>5.2').

I also experienced that doing upgrades per group (test, development) are easier to do. Thus --groups might also be helpful.

$ bundle outdated --strict --groups 

Outdated gems included in the bundle:
===== Without group =====
  * actioncable (newest 5.2.6, installed 5.2.4.6)
  * actionmailer (newest 5.2.6, installed 5.2.4.6)
  ...
===== Group "development" =====
  * binding_of_caller (newest 1.0.0, installed 0.8.0)
  * parallel_tests (newest 3.7.3, installed 2.32.0)
  * query_diet (newest 0.7.0, installed 0.6.2)
  * spring (newest 2.1.1, installed 2.1.0)
===== Groups "development, test" =====
  * awesome_print (newest 1.9.2, installed 1.8.0)
  * pry-byebug (newest 3.9.0, installed 3.7.0)
===== Group "test" =====
  * capybara (newest 3.36.0, installed 3.35.3)
  * capybara-lockstep (newest 1.1.0, installed 0.6.0)
  * capybara-screenshot (newest 1.0.26, installed 1.0.22)
  ...

Yarn

yarn outdated

Example output

Image

Michael Leimstädtner
Last edit
Daniel Straßner
Attachments
Keywords
update, upgrade, gem, libraries
License
Source code in this card is licensed under the MIT License.
Posted by Michael Leimstädtner to makandra dev (2021-02-08 07:40)