-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Update to Hapi 17 #687
Update to Hapi 17 #687
Conversation
Note: TS typings for Hapi 17 are not available yet, so the types packages have been temporarily removed
@EgoAleSum: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/ |
Regarding the travis CI errors... For Node 4 and 6, it is expected that CI fails, because Hapi 17 uses async/await and requires Node 8+. For Node 8+: on my machine, it works 3 times out of 4; the other times, I get weird behavior like in the CI case above. I am not sure what's causing it, but it's likely an issue with the tests themselves as they hang on something async. I tried looking into it, but not sure how to fix them. |
This might make tests more predictable and make them fail less randomly
Hello, your exemple for register plugin on hapi is broken. This exemple is right : await server.register(graphqlHapi, {
path: '/graphql',
options: {
graphqlOptions: {
schema: myGraphQLSchema,
},
route: {
cors: true
}
}
}); Thanks for your contribution. |
@orblazer Uhm, are you sure about that? There's no such thing as |
Ok, I finally figured it out! The issues were with the Adonis test unit. It took many hours of literally going through the Adonis' source code, but some methods that were supposed to be async were called synchronously. After I made the tests async (to support Hapi, which is all async), issues with Adonis came out. I'm not sure why it was fine before, but essentially there were situations where the Adonis server was not started or closed properly. It should be all good now. I've also made sure that the Hapi package is tested only on Node 8.9+ (minimum version for Hapi 17). All tests pass now, yay! |
Thanks a lot for working on this! |
@EgoAleSum Ops i have paste a wrong exemple. I have create a issue here : #689 |
@martijnwalraven thanks for merging this, do you have any timeline for the next release? (note the change is not backwards-compatible as you can imagine :) ) |
@EgoAleSum Yes, we should probably release these changes as 1.3.0. I was hoping we could get #679 in as well, but if that takes too long we should release without it. |
Published as 1.3.0, thanks! |
Note that TypeScript typings for Hapi 17 are not available yet (see #636), so the types packages have been temporarily removed for Hapi and Boom.
Tests are passing, and linter is happy too.
This should close #636 and #685