-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
feat: use @hapi/hapi in the hapi package #472
Conversation
|
Hm seems like this fails to test on node@10 because
One could work around this by doing a |
Many thanks for the contributions!
Yes I think that would only hide it here. Ultimately, we might then have to change the compatibility as a result and consider this a breaking change. What is your feeling towards that and the usage of node 12 in the Hapi ecosystem? |
It seems like node >= 12 was introduced in hapi@19 in January. I don't really like that they dropped node < 12 with node@10 being a lts version still in maintenance mode until 2021.
I think having a breaking change for the |
Ok. Agreed. Do you want to make the needed changes for the breaking change on this pr and add the respective changeset? |
Sure I'll look into it after work and update the PR. |
BREAKING CHANGE: now requires node >= 12 and newer hapi package @hapi/hapi
70c4458
to
4ab3dd1
Compare
I'm not sure if I did it correctly. I've adjusted the PR:
If I understand it correctly I don't have to adjust the changelog because Should the promster readme use |
Yes, thanks for everything. I will merge it into a base (other than master) on promster and take it from there. |
Will be published as |
Thanks for this great library
Summary
This updates the hapi package to use the newer
@hapi/hapi
types which were introduced in 18.2.0Description
This only adjusts some typescript imports to make it work when using newer hapi versions.
Note:
@hapi/boom
is added as dev dependency because@types/hapi__boom
says to use@hapi/boom
as it ships the correct type definitions:https://www.npmjs.com/package/@types/hapi__boom
Technical debt & future
This might be a breaking change as users with old hapi might have incompatible type definitions when trying to register this plugin over the old hapi types.