Skip to content

v6.0.0

Compare
Choose a tag to compare
@citizensas citizensas released this 08 Feb 07:56
· 2145 commits to master since this release

This version is merely reducing the bundle size for browsers.

WHAT CHANGED

We now use Rollup instead of Webpack for bundling the package. There are now three files in the dist.

  • workfront-api.cjs.js use in NodeJS environment.
  • workfront-api.es.js use in browser environment. Modules which have workfront-api dependency.
  • workfront-api.umd.js or workfront-api.umd.min.js use in browser environment by requesting the file via the <script> tag. One loaded into the browser, it creates a global variable Workfront.

BREAKING CHANGE

  • Entry points have changed. This will affect UMD consumers. Now the file name is workfront-api.umd.js and workfront-api.umd.min.js respectfully.
  • For Node users, the api class name has been changed to NodeApi. This is to prevent typing ambiguities.

i.e.

const Workfront = require('workfront-api')
const api = new Workfront.NodeApi({/*...*/})