You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Upgrade time: low - none to a couple of hours for most users
Complexity: low - requires following the list of changes to verifying their impact
Risk: low - small number of changes with simple ways to retain previous behavior in most cases
Dependencies: low - existing plugins will work as-is
The @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 (Replace joi with validate #4115, Leaving @hapi and making new plans joi#2411).
All core modules are now tested on Node 14, in addition to Node 12. This is in preparation for Node 14 entering Long Term Support (LTS) in October.
Migration Checklist
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.
Summary
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/joidependency has also been replaced with@hapi/validate. Finally, hapi v20 is now tested on Node 14 in Travis CI.Breaking Changes
New Features
isInjectedproperty has been added to therequestobject to indicate if the request was created via theinject()method (ImplementisInjectedread-only request property to indicate request… #4117).Bug fixes
Content-Typeresponse headers whose value isnullare no longer sent (headers: avoid sending null content-type #4134).Other Notable Changes
@hapi/joimodule andjoi-specific dependencies have moved out of the hapijs GitHub organization.joihas been replaced by@hapi/validate, a slimmed down version ofjoidesigned specifically forhapi's internal needs only.hapiwill continue to supportjoifor users' validation purposes (Replace joi with validate #4115, Leaving @hapi and making new plans joi#2411).Migration Checklist
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.