v6.0.0
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
orworkfront-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 variableWorkfront
.
BREAKING CHANGE
- Entry points have changed. This will affect UMD consumers. Now the file name is
workfront-api.umd.js
andworkfront-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({/*...*/})