Skip to content
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.

Move to Node 8 / npm 5, update packages and cleanup #215

Merged
merged 12 commits into from
Jun 9, 2017

Conversation

dennari
Copy link
Contributor

@dennari dennari commented Jun 7, 2017

Use util.promisify from Node 8 and remove the self-coded implementation
Delete obsolete Route53Updater
Remove obsolete aws-sdk typings and promisifications
Compile to es2017 to take advantage of Node 8's native async/await support
Include package-lock.json with the upgrade to npm 5

TODO

@dennari dennari mentioned this pull request Jun 8, 2017
2 tasks
Copy link
Member

@vsaarinen vsaarinen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job on the cleanup. 👍

package.json Outdated
"aws-sdk": "^2.45.0",
"bluebird": "^3.5.0",
"boom": "^4.3.1",
"auth0-js": "^8.7.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this used somewhere? Same thing for its @types package

package.json Outdated
"yamljs": "^0.2.10"
},
"devDependencies": {
"@types/auth0-js": "^8.6.0",
"@types/bluebird": "^3.5.5",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this used anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not directly, but knex's typings depend on this

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since @types/knex depends on it, we don't need to add it to our dependencies.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I thought it was missing from the @types/knex's package.json, but apparently when I ran npm rm @types/bluebird I should've run npm install afterwards. Removed now.

if (existing === null) {
throw Boom.badGateway();
}
const mappedExisting = (existing as any).map((item: any) => ({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that the reason you can't do existing.map() is that the Promise.all call above is incorrect. Shouldn't it be:

const [ expected, existing ] = await Promise.all([
  this.getProjectDeploymentActivity(projectId),
  this.activityModule.getProjectActivity(projectId),
]);

?

dennari and others added 10 commits June 9, 2017 17:09
Use util.promisify from Node
Delete obsolete Route53Updater
Remove obsolete aws-sdk typings and promisifications
Compile to es2017 to take advantage of Node 8's native async/await support
Include package-lock.json with the upgrade to npm 5
Upgrade circle to Node 8 as well
@vsaarinen vsaarinen changed the base branch from integrationtests-authorization to master June 9, 2017 14:10
@vsaarinen
Copy link
Member

👍

@vsaarinen vsaarinen merged commit 681c71f into master Jun 9, 2017
@vsaarinen vsaarinen deleted the update-packages-node branch June 9, 2017 14:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants