Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 10.0.0 #199

Merged
merged 3 commits into from
Feb 18, 2020
Merged

Release 10.0.0 #199

merged 3 commits into from
Feb 18, 2020

Conversation

romankaravia
Copy link
Contributor

Update to new major versions of hapi dependencies.

Summary of relevant changes

@hapi/joi v16

@hapi/hapi v19

@hapi/boom v8

Tests 49/50 were failing on my machine.

  ✖ 49) returns the screenshot info with correct cache-control headers without wait
  ✖ 50) returns the screenshot info with correct cache-control headers for POST request

Error for both:
   Expected 73 to equal specified value: 76.4375
Summary of relevant changes

@hapi/joi v16
- Changes in allow() and valid()
  No longer accepts array arguments. Must pass each value as a separate argument.
  See hapijs/joi#2037
- Change error in sync validate() result to undefined instead of null 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() to new Boom.Boom()
  See hapijs/boom#253
@romankaravia romankaravia merged commit 4e89d89 into master Feb 18, 2020
@romankaravia romankaravia deleted the release-10.0.0 branch February 18, 2020 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants