hapi v20.0.0 is a small release with few code changes. The major version bump is due to a change in project leadership and governance. The @hapi/joi dependency has also been replaced with @hapi/validate. Finally, hapi v20 is now tested on Node 14 in Travis CI.
isInjected property has been added to the request object to indicate if the request was created via the inject() method (https://github.com/hapijs/hapi/pull/4117).Content-Type response headers whose value is null are no longer sent (https://github.com/hapijs/hapi/pull/4134).@hapi/joi module and joi-specific dependencies have moved out of the hapijs GitHub organization. joi has been replaced by @hapi/validate, a slimmed down version of joi designed specifically for hapi's internal needs only. hapi will continue to support joi for users' validation purposes (#4115, https://github.com/sideway/joi/issues/2411).hapi v20 should largely be a drop-in replacement for current hapi v19 users. If you experience issues during the upgrade process, please open an issue.
The release is out. 🎉
Congrats!
finally wait for you. @cjihrig when to update docs website?
It looks like the website is updated - https://hapi.dev/api?v=20.0.0. If something isn't right, please open an issue at https://github.com/hapijs/hapi.dev
@cjihrig many hapijs module, something like bell still use joi, i have no time to open issues one by one. please update those module.
The core modules have been migrated off of joi. Some plugins have been migrated as well, but it is not a goal to remove joi from all non-core modules.
why
hapi has historically had a policy of no external dependencies in the core project. When joi left the hapi org, we wanted to keep that policy. That policy does not (and never did) apply to plugins.
joi is still fine to use, and has more features than @hapi/validate. validate is just a slimmed down version of joi for hapi's internal purposes.
i don't like joi and validation live in core module at the same, please
Probably should update the changelog: https://hapi.dev/resources/changelog/
Issue is we burned through the build minutes but I am looking at another strategy to reduce the build time.
I was able to get around the issue with some tweaks. This link now has the latest notes.
Most helpful comment
Congrats!