Upgrade Node.js SDK

Catalyst constantly endeavours to provide you with the latest, most relevant, and secure SDK packages to ensure you code your applications with as much ease as possible.

This means that from time to time, Catalyst will upgrade its SDK packages to provide you with the best coding support. We strongly urge you to keep track of the latest developments in Catalyst SDKs from our Release Notes section and upgrade your SDK packages to the latest versions. We will also be posting our bug fixes, should any arise, in our Release Notes.

Note: If an immediate upgrade is required due to deprecation reasons, we will ensure you are notified on time via email to perform the necessary upgrades. Generally, it is highly recommended that you always upgrade your SDK to the latest version.

Steps to Upgrade Your SDK

There are two methods you can use to upgrade your Node.js SDK:

  1. Using the npm update command.
  2. Using the npm install command.

Using npm update Command

  1. Launch your terminal and navigate to the Node.js function’s source directory. For example, consider you have an application named “Pets Conglomerate” in the directory /Users/user/apps/petsConglomerate. In this application, you have a function named “dogs_spotted”. You need to navigate to the function’s source directory, which would appear like this: /Users/user/apps/petsConglomerate/functions/dogs_spotted

  2. Execute the following command

copy
$
npm update zcatalyst-sdk-node

This will perform the required update, and the latest version of zcatalyst-sdk-node can be used.

Note: You need to apply the same steps for every Node.js function present in your project.

Using npm install command

Note: The npm install command can be used to both install a new package and update an existing package.
  1. Launch your terminal and navigate to the Node.js function’s source directory. For example, consider you have an application named “Pets Conglomerate” in the directory /Users/user/apps/petsConglomerate. In this application, you have a function named “dogs_spotted”. You need to navigate to the function’s source directory, which would appear like this: /Users/user/apps/petsConglomerate/functions/dogs_spotted

  2. Execute the following command

copy
$
npm install —save zcatalyst-sdk-node@latest

Note:

  • The @latest tag is optional. However, we do recommend that you include it while performing the install.

  • You need to apply the same steps for every Node.js function present in your project.

Install a Specific Package

To install a specific SDK version’s package:

  1. Launch your terminal and navigate to the Node.js functions source directory.
  2. Execute the following command with your required SDK version
copy
$
npm install —save zcatalyst-sdk-node@2.5.1


Note: It is always recommended that you install the latest and more stable version of the SDK rather than a specific version.

Last Updated 2024-07-15 12:38:15 +0530 +0530