Skip to content
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

Closed
wants to merge 9 commits into from
Closed

Conversation

ChristianMurphy
Copy link

@ChristianMurphy ChristianMurphy commented Nov 10, 2017

TODO:

  • leverage async and await
  • leverage destructured assignment
  • Update linter to allow async arrow functions
  • Identify remaining gaps

resolves #330

@@ -1,21 +1,15 @@
language: node_js

node_js:
- "4"
- "6"
Copy link
Contributor

Choose a reason for hiding this comment

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

Also add "9".

Copy link
Author

@ChristianMurphy ChristianMurphy Nov 10, 2017

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 });
Copy link
Contributor

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.

Copy link
Author

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",
Copy link
Contributor

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.

Copy link
Author

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');
Copy link
Contributor

Choose a reason for hiding this comment

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

Might as well use consts and other ES6 features wherever possible now.

Copy link
Author

@ChristianMurphy ChristianMurphy Nov 10, 2017

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.

@ldesplat ldesplat added breaking changes Change that can breaking existing code dependency Update module dependency feature New functionality or improvement labels Nov 19, 2017
@ldesplat ldesplat added this to the 9.0.0 milestone Nov 19, 2017
@ldesplat
Copy link
Contributor

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.

@ldesplat ldesplat mentioned this pull request Nov 19, 2017
@ChristianMurphy
Copy link
Author

Closing, in favor of #334

@lock
Copy link

lock bot commented Jan 9, 2020

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.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking changes Change that can breaking existing code dependency Update module dependency feature New functionality or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hapi v17 support
3 participants