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
rest-hapi v2.0.0 is a major version update that focuses on updating dependencies to improve security. The primary dependency updates include hapi v18->v19, joi v14->v17, and mongoose v4->v5.
Breaking Changes
All of the breaking changes in this release are related to dependency updates. Please see the links above for updates.
Migration Checklist
Node version
Make sure your node version is v12.14.1 or newer, as required by hapi v19. Node v12 is the current LTS and the recommended version of node.
joi Schema Compiler
Hapi v19 requires that you register the joi module used via server.validator. By default rest-hapi registers joi v17 as the schema compiler to validate generated routes.
Summary
rest-hapi v2.0.0 is a major version update that focuses on updating dependencies to improve security. The primary dependency updates include hapi v18->v19, joi v14->v17, and mongoose v4->v5.
Breaking Changes
All of the breaking changes in this release are related to dependency updates. Please see the links above for updates.
Migration Checklist
Node version
Make sure your node version is v12.14.1 or newer, as required by hapi v19. Node v12 is the current LTS and the recommended version of node.
joi Schema Compiler
Hapi v19 requires that you register the joi module used via
server.validator
. By default rest-hapi registers joi v17 as the schema compiler to validate generated routes.For custom routes with validation such as:
you will need to update the syntax to either wrap your schema with
Joi.object()
:or use the rest-hapi joi module available through
RestHapi.joi
:See also the rest-hapi docs.
The text was updated successfully, but these errors were encountered: