-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Hapi 17 Support #332
Conversation
2824293
to
d2e4967
Compare
@@ -1,21 +1,15 @@ | |||
language: node_js | |||
|
|||
node_js: | |||
- "4" | |||
- "6" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also add "9".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
API.md
Outdated
var server = new Hapi.Server(); | ||
|
||
server.connection({ port: 8000 }); | ||
var server = new Hapi.Server({ port: 8000 }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hapi 17 doesn't need a new
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
package.json
Outdated
}, | ||
"scripts": { | ||
"test": "node node_modules/lab/bin/lab -t 100 -L -v", | ||
"test-cov-html": "node node_modules/lab/bin/lab -r html -o coverage.html -L" | ||
"test": "lab -t 100 -L -v", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably add back -a code
to both since lab is back to no default assertion library.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
var server = new Hapi.Server(); | ||
|
||
server.connection({ port: 8000 }); | ||
var { Server } = require('hapi'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might as well use const
s and other ES6 features wherever possible now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to const
Will be leveraging more ES6 features in the next few refactors.
I mistakenly pushed to your branch but I forced it back to what it was :) This hapi 17 upgrade is very non trivial for bell and all its tests. |
79dcee4
to
130368d
Compare
Closing, in favor of #334 |
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions. |
TODO:
async
andawait
resolves #330