[ANNOUNCEMENT] ES6 and AMD SDK distributions

As of SDK version 33.0.0, additional distributions are available. They are as follows:

  • CommonJS for node.js - This is the existing module for node.js. This module is now transpiled from ES6 to CJS format, but the resulting code is the same.
  • CommonJS for the browser - This is the existing browserify-ed version of the node.js package. This module is now transpiled from ES6 to CJS format and then browserified, but the resulting code is the same.
  • AMD for RequireJS - This is a new distribution that is transpiled from ES6 to AMD format. It is available on the CDN via https://sdk-cdn.mypurecloud.com/javascript/amd/34.0.4/purecloud-platform-client-v2.min.js
  • ES6 classes - The source ES6-compliant classes are included in the node package with the entry point jsnex:main. The source can also be obtained from the github repo. These classes can be consumed as part of a custom transpile process, or in any project that uses rollup/webpack or similar (e.g. react or ember apps).

The documentation for the JavaScript SDK has been updated to include information about all deployment options. It can be found at https://developer.mypurecloud.com/api/rest/client-libraries/javascript/.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.