Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Update NowNew to Visual Studio Code? Get it now.
Update Now

Update Now

Andy Gongea

|
368 installs
| (1) | Free
Update your Package.json dependencies to their latest version in no time.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Update Now - Update your dependencies

Update Now is a powerful Visual Studio Code extension that manages your dependency updates in an effective and efficient way. It provides multiple update actions for the dependencies specified in your package.json file, making it an essential tool for modern software development.

update-now-vscode-extensions-update-dependencies This extension and the content on this page were written together with ChatGPT. Prompts by Andy Gongea😁

Features

  1. ❇️ Patch Update: Shows the latest patch updates for your dependencies. Patch updates generally include bug fixes and are fully backward compatible.
  2. ✴️ Minor Update: Reveals the latest minor updates for your dependencies. Minor updates typically introduce new features but are designed to be backward compatible.
  3. 🛑 Major Update: Displays the latest major updates for your dependencies. Major updates can make changes that are not backward compatible and hence may require additional modifications in your project.

To reduce the complexity of the UI and reduce the cognitive load, range updates were removed from the statistics.

Importance of Updating Dependencies

update-now-dependency-tooltip-vscode-extension

Updating dependencies to their latest version is crucial in software development for several reasons:

  1. 🐞 Bug Fixes: Updates usually include fixes for bugs found in previous versions, leading to more stable and reliable software.
  2. 🏃‍♀️ Performance Improvements: New versions of dependencies can include optimizations that improve performance, making your software faster and more efficient.
  3. 🆕 New Features: Updates may introduce new features, enabling your software to do more and stay competitive.
  4. 🔒 Security: Updates often include patches for security vulnerabilities. Keeping dependencies updated ensures your software remains secure against known issues.

It is essential that after every update, developers rigorously test their code to ensure the updates have not caused any regressions or issues. Proper testing allows developers to take advantage of the benefits of updates while minimizing any potential risks.

Installation

You can install this extension from the Visual Studio Code Marketplace. Search for "Update Now".

Usage

Open your package.json file within Visual Studio Code. Update Now will identify the dependencies and display update actions in the form of code lenses.

How do I update a dependency?

Each dependency can be updated individually, depending on your project's needs and requirements.

  1. Open package.json file
  2. Scroll down to the dependencies list
  3. Click on the Codelens (annotation on top of the package name)
  4. Run npm install.

How do I update all outdated dependencies?

There is a global update command and action to update all dependencies simultaneously.

  1. The command can be executed by searching for it in the Command Pallete:
  • 🚀 Update now: Update all dependencies.
  1. The second option is the code lens that is at the top of each package.json file:
  • Update now: 25 available updates (❇️ 5 x patch, ✴️ 10 x minor, 🛑 5 x major)
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2023 Microsoft