In order to upgrade your version of BidJS and its modules, you will need to make changes to several places within your code. Please note that BidJS and its Modules will upgrade separately and may therefore have a different version number and indeed need updated and different times. This guide will show you where to enter the new version numbers throughout your code.
***Please note that this guide only applies to BidJS version 2.0 and above due to code structure changes. Please also note that as of BidJS V2.1 and Modules V1.6 minor version upgrades will no longer be required. See our Version Information document for further details.
- Within the <head>, update the version number in the staticBase inside the following 4 lines:
<script defer src="MY_STATIC_URL/VERSION/js/bid-dependencies.min.js"></script> <script defer src="MY_STATIC_URL/VERSION/prettyphoto/jquery.prettyPhoto.min.js"></script> <script defer src="MY_STATIC_URL/VERSION/js/hbs-bid.min.js"></script> <script defer src="MY_STATIC_URL/VERSION/js/bid.min.js"></script>
- WIthin the <head>, update the version number in the config as follows:
staticBase: 'MY_STATIC_URL/VERSION', // e.g. //demo.eu-west-2.bidjs.com/static/2.0
- Within the <body>, update the version number in the staticBase inside the following 3 lines:
<noscript id="deferred-styles"> <link href="MY_STATIC_URL/VERSION/prettyphoto/jquery.prettyPhoto.min.css" rel="stylesheet" type="text/css"> <link href="MY_STATIC_URL/VERSION/css/bid.min.css" rel="stylesheet" type="text/css"> </noscript>
***Please note there will be slight variations in code for the Minimal code versions. Please see the BidJS V2.0+ documentation for more information.
- Within the <head>, update the staticVersion number, as follows:
staticVersion: 'MY_STATIC_VERSION', // e.g. 1.3
<script src="https://static.bidjs.com/MY_STATIC_VERSION/bootstrap3/js/bidjs-modules.chunk.js"> </script>
If you have correctly updated the versions in these places, you will have successfully upgraded you BidJS and/or Modules version.