It is very easy to update your node packages, using an interactive cli command.
It is very easy to update your node packages, using an interactive cli command. This is something you should check regularly for security patches and/or improvements. First of all make sure you are using YARN, click here to install.
Run these commands in the terminal at the root level of your node project:
This means after the upgrade you will have to change some client side or server side code depending on what you are working on. It means that the API code for a given library has breaking changes. Functions and methods may have changed, the API code you used to build your own code before the upgrade may no longer be available or may have change to something else.
Usually the terminal will spit out errors with links to help docs if the library was well authored.
So read carefully before proceeding
I will do this regularly to help keep my build up to date with the latest security patches, or if i want to get hold of some new feature from a package.
Means ok the API's have not changed that much, slight improvements have been made to existing API code. So the code you wrote before the update using said API will still work. No code changes required.
Ok great 🚀, now you can run the update command, it will show table with radio selects showing you what new version you are updating to. Hit the "spacebar" on the keyboard to select an option, for each option.
Output:
Screenshot:
YARN will do its thing and updated chosen packages.