Skip to content

Commit 9b7649a

Browse files
committed
refactor: separate CJS and ES bundles to reduce bundle size
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. ``` const Workfront = require('workfront-api') const api = new Workfront.NodeApi({/*...*/}) ```
1 parent 92ebf7a commit 9b7649a

51 files changed

Lines changed: 7740 additions & 449 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/node/always-use-get.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
var Workfront = require('./../../');
2222
var util = require('util');
2323

24-
var instance = new Workfront.Api({
24+
var instance = new Workfront.NodeApi({
2525
url: 'http://localhost:8080',
2626
version: 'internal',
2727
alwaysUseGet: true

examples/node/call-acknowledge-action.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var Workfront = require('./../../');
2222
var ApiConstants = require('workfront-api-constants');
2323
var util = require('util');
2424

25-
var instance = new Workfront.Api({
25+
var instance = new Workfront.NodeApi({
2626
url: 'http://localhost:8080',
2727
version: 'internal'
2828
});

examples/node/call-assignUserToken-action-for-given-user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var Workfront = require('./../../');
2323
var ApiConstants = require('workfront-api-constants');
2424
var util = require('util');
2525

26-
var instance = new Workfront.Api({
26+
var instance = new Workfront.NodeApi({
2727
url: 'http://localhost:8080',
2828
version: '7.0'
2929
});

examples/node/create-and-remove-template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
var Workfront = require('./../../');
2323
var util = require('util');
2424

25-
var instance = new Workfront.Api({
25+
var instance = new Workfront.NodeApi({
2626
url: 'http://localhost:8080',
2727
version: '7.0'
2828
});

examples/node/create-edit-delete-group-pc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var Workfront = require('./../../');
2424
var util = require('util');
2525

26-
var instance = new Workfront.Api({
26+
var instance = new Workfront.NodeApi({
2727
url: 'http://localhost:8080',
2828
version: '5.0'
2929
});

examples/node/create-edit-delete-group.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
var Workfront = require('./../../');
2323
var util = require('util');
2424

25-
var instance = new Workfront.Api({
25+
var instance = new Workfront.NodeApi({
2626
url: 'http://localhost:8080',
2727
version: '7.0'
2828
});

examples/node/create-new-project-and-share.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
var Workfront = require('./../../');
2323
var util = require('util');
2424

25-
var instance = new Workfront.Api({
25+
var instance = new Workfront.NodeApi({
2626
url: 'http://localhost:8080',
2727
version: '5.0'
2828
});

examples/node/create-new-project.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
var Workfront = require('./../../');
2323
var util = require('util');
2424

25-
var instance = new Workfront.Api({
25+
var instance = new Workfront.NodeApi({
2626
url: 'http://localhost:8080',
2727
version: '5.0'
2828
});

examples/node/create-project-copy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
var Workfront = require('./../../');
2323
var util = require('util');
2424

25-
var instance = new Workfront.Api({
25+
var instance = new Workfront.NodeApi({
2626
url: 'http://localhost:8080',
2727
version: '5.0'
2828
});

examples/node/delete-projects-by-name.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var Workfront = require('./../../');
2323
var ApiConstants = require('workfront-api-constants');
2424
var util = require('util');
2525

26-
var instance = new Workfront.Api({
26+
var instance = new Workfront.NodeApi({
2727
url: 'http://localhost:8080',
2828
version: '7.0'
2929
});

0 commit comments

Comments
 (0)