Skip to content

Updating dependencies#173

Closed
vinicius0026 wants to merge 7 commits intohapijs:masterfrom
vinicius0026:master
Closed

Updating dependencies#173
vinicius0026 wants to merge 7 commits intohapijs:masterfrom
vinicius0026:master

Conversation

@vinicius0026
Copy link
Copy Markdown

As previously stated in #172, this is the first step to provide support to hapi v17.

All dependencies have been upgraded to latest version, except for hapi, that was upgraded to v16.

Tests were fixed to adhere to new syntax as per lab@15, but no changes were made to the actual code.

Support for node < 8 was dropped, since async await syntax is used in tests.

This is not intended to be released, but serves as an intermediary step since this is my first contribution to hapi ecosystem.

All comments are welcome.

Copy link
Copy Markdown
Contributor

@Marsup Marsup left a comment

Choose a reason for hiding this comment

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

I stopped reviewing when I saw travis actually tested against hapi v16. I can resume later :)

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

Choose a reason for hiding this comment

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

You're missing "9" and "node". See hapi for that one.

@@ -0,0 +1,2125 @@
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We don't use package locks, just add it to the .gitignore.

"joi": "13.x.x"
},
"peerDependencies": {
"hapi": ">=11.x.x"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You'll probably want to bump that.

const describe = lab.describe;
const it = lab.it;
const expect = Code.expect;
const { describe, it } = exports.lab = Lab.script();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You can also get the expect in this destructuring.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Wouldn't it then get expect from lab instead of getting it from Code?

return reply(request.params.user);
}
request.cookieAuth.set({ user: request.params.user });
return reply(request.params.user);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

reply is not a v17 thing anymore, I'm surprised it would work.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

He said it's not intended to be released

handler: function (request, reply) {
server.route({
method: 'GET', path: '/login/{user}',
config: {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

config is now options if I'm not mistaken.

@Marsup
Copy link
Copy Markdown
Contributor

Marsup commented Nov 7, 2017

Sorry, conf reviews are the worst, I didn't see your 2 steps thing, you can disregard some of the comments :p

@vinicius0026
Copy link
Copy Markdown
Author

@Marsup No problem! I'll ignore the package-lock file and fix travis conf anyway.

(as per the lock file, I just committed it because it exists in hapi repo - as npm-shrinkwrap.json file - but I'll remove it)

As soon as this lands I'll start working on the actual update to support hapi v17.

@mrlannigan
Copy link
Copy Markdown
Contributor

@vinicius0026 Just so happens I worked on this today. ;) Welcome all comments on this #174.

@vinicius0026
Copy link
Copy Markdown
Author

vinicius0026 commented Nov 7, 2017

@mrlannigan It's unfortunate that we both worked on the same thing at the same time. But since your PR is a complete update to hapi v17 (as mine is still a WIP), I'll gladly close this once yours lands.

@mrlannigan
Copy link
Copy Markdown
Contributor

mrlannigan commented Nov 7, 2017

@vinicius0026 Yea, my apologies for not posting it.

@lock
Copy link
Copy Markdown

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants