Summary
hapi v14.0.0 is a small release with a single breaking change upgrading joi to version 9.x. Because most users specify their validation rules as plain objects (as opposed to object manually wrapped in Joi.object()), existing validation rules might break. In addition, because of an apparent bug in npm, the wrong version of joi may be installed at different levels of the dependency tree.
- Upgrade time: low - no time to a couple of hours for most users
- Complexity: low - potentially requires wrapping a few rules in
Joi.object()
- Risk: low - low risk of side effects and no changes to keep track of overall
- Dependencies: low- applies only to route validation rules
Breaking Changes
- Requires upgrading route validation rules to use joi v9.
New Features
None.
Bug fixes
None.
Migration Checklist
- Upgrade your dependencies to use joi 9.x
- Test your route validation rules to ensure they still comply with the joi breaking changes
- If you identify issues and don't have the time to resolve them with joi v9, wrap your existing rules with
Joi.object() using the previous version of joi that worked
Summary
hapi v14.0.0 is a small release with a single breaking change upgrading joi to version 9.x. Because most users specify their validation rules as plain objects (as opposed to object manually wrapped in
Joi.object()), existing validation rules might break. In addition, because of an apparent bug in npm, the wrong version of joi may be installed at different levels of the dependency tree.Joi.object()Breaking Changes
New Features
None.
Bug fixes
None.
Migration Checklist
Joi.object()using the previous version of joi that worked