v10.0.0
Update to new major versions of hapi dependencies.
Summary of relevant changes
@hapi/joi v16
- Changes in
allow()
andvalid()
No longer accepts array arguments. Must pass each value as a separate argument.
See hapijs/joi#2037 - Change error in sync
validate()
result toundefined
instead ofnull
when there is no error
See hapijs/joi#2036
See hapijs/joi#2037
@hapi/hapi v19
- No joi schema compiler is loaded by default and must be explicitly loaded using
server.validator()
See hapijs/hapi#4017
See https://hapi.dev/api/?v=19.1.0#-servervalidatorvalidator
@hapi/boom v8
- Change
new Boom()
tonew Boom.Boom()
See hapijs/boom#253