Skip to content

Commit

Permalink
stop requring promise
Browse files Browse the repository at this point in the history
Since Node 0.12, Promise has been built-in and available as a global.

For a while, we used a Promise library because `Promise.race` was not
available.  It is available now.
  • Loading branch information
djmitche committed Apr 13, 2019
1 parent 13104aa commit b660571
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion clients/client/src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ let crypto = require('crypto');
let slugid = require('slugid');
let http = require('http');
let https = require('https');
let Promise = require('promise');
let querystring = require('querystring');
let tcUrl = require('taskcluster-lib-urls');

Expand Down
1 change: 0 additions & 1 deletion libraries/api/test/noncemanager_test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const API = require('../src/api');
const assert = require('assert');
const Promise = require('promise');
const debug = require('debug')('base:test:nonceManager');
const testing = require('taskcluster-lib-testing');

Expand Down
1 change: 0 additions & 1 deletion libraries/app/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ let _ = require('lodash');
let debug = require('debug')('base:app');
let assert = require('assert');
let morganDebug = require('morgan-debug');
let Promise = require('promise');
let http = require('http');
let sslify = require('express-sslify');
let hsts = require('hsts');
Expand Down
1 change: 0 additions & 1 deletion libraries/testing/test/fakeauth_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const MonitorManager = require('taskcluster-lib-monitor');
const App = require('taskcluster-lib-app');
const assert = require('assert');
const taskcluster = require('taskcluster-client');
const Promise = require('promise');
const path = require('path');
const libUrls = require('taskcluster-lib-urls');
const testing = require('taskcluster-lib-testing');
Expand Down
1 change: 0 additions & 1 deletion libraries/validate/src/publish.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const _ = require('lodash');
const assert = require('assert');
const debug = require('debug')('taskcluster-lib-validate');
const Promise = require('promise');
const fs = require('fs');
const path = require('path');
const mkdirp = require('mkdirp');
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"nodemailer": "^6.0.0",
"passport": "^0.4.0",
"passport-github": "^1.1.0",
"promise": "^8.0.1",
"promisepipe": "^3.0.0",
"quick-lru": "^4.0.0",
"ramda": "^0.26.0",
Expand Down
1 change: 0 additions & 1 deletion services/hooks/src/data.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const Entity = require('azure-entities');
const Promise = require('promise');
const _ = require('lodash');

/** Entity for tracking hooks and associated state **/
Expand Down
1 change: 0 additions & 1 deletion services/hooks/src/scheduler.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const events = require('events');
const Entity = require('azure-entities');
const data = require('./data');
const debug = require('debug')('hooks:scheduler');
const Promise = require('promise');
const taskcluster = require('taskcluster-client');
const nextDate = require('./nextdate');
const taskcreator = require('./taskcreator');
Expand Down

0 comments on commit b660571

Please sign in to comment.