Closed timcosta closed 6 years ago
bump
I will make a note in the readme. But labbable will not be moving forward into the land of hapi v17. It turns out that async/await alleviates the problems that labbable solves. Here is an example of suggested testing/usage with hapi v17,
Server: https://github.com/devinivy/boilerplate-api/blob/pal/server/index.js#L6 Test: https://github.com/devinivy/boilerplate-api/blob/pal/test/index.js#L19
Overview
If you are not aware yet, Hapi v17 is making the transition from callbacks to
async
/await
, as well as deprecating some other rarely used functionality. This is a breaking change that may make your plugin no longer compatible with the Hapi API.Changelog
Draft release notes can be found here: https://github.com/hapijs/hapi/issues/3658
Target Release
The target release date for v17 is the beginning of November.
Tasks
async
/await
compatible using thev17
branch from Hapi for testingPossible dev flow for updating
npm link
within the Hapi reponpm link hapi
within your plugin repov17
of Hapi branch for testsnpm
. Please use a major version increment as this will be a breaking change and it would be terrible for it to sneak into current versions of Hapi.Notes
<8.0.0
.v16
will continue to be supported for as long as there exists a Node LTS actively being supported that is not compatible withv17
.