Legacy Dev Forum Posts

 View Only

Sign Up

[ANNOUNCEMENT] ES6 and AMD SDK distributions

  • 1.  [ANNOUNCEMENT] ES6 and AMD SDK distributions

    Posted 06-05-2025 18:02

    tim.smith | 2018-08-07 20:42:51 UTC | #1

    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/.


    tim.smith | 2018-09-07 20:42:53 UTC | #2

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


    This post was migrated from the old Developer Forum.

    ref: 3340