Last modified October 22, 2018 by Shelly Wolfe

Web SDK upgrade guide

This guide provides information about how you can upgrade to the latest Swrve Web SDK. For information about the changes that have been made in each Web SDK release, see the Web SDK Release Notes.

Upgrading via NPM

If you’re upgrading via NPM, ensure you complete the following for every upgrade:

  • Update your package .json dependency @swrve/web-sdk to the latest npm i @swrve/web-sdk

Version 1.2.1

There are no code changes required to upgrade to Swrve Web SDK v1.2.1.


Version 1.2

This section provides information to enable you to upgrade to Swrve Web SDK v1.2.

“Default” no longer required

If you are using an ES5 / ES6 implementation, you no longer need to use .default in your method call. For example, instead of SwrveSDK.default.sendEvent, use SwrveSDK.sendEvent.


Version 1.1

This section provides information to enable you to upgrade to Swrve Web SDK v1.1.

Web push notifications

If you are want to send your website users push notifications, see the Push Notifications section of the Web SDK integration guide.