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

20.0.0 Release Notes #4138

Closed
cjihrig opened this issue Aug 10, 2020 · 12 comments
Closed

20.0.0 Release Notes #4138

cjihrig opened this issue Aug 10, 2020 · 12 comments
Labels
breaking changes Change that can breaking existing code release notes Major release documentation
Milestone

Comments

@cjihrig
Copy link
Contributor

cjihrig commented Aug 10, 2020

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/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

Breaking Changes

New Features

Bug fixes

Other Notable Changes

  • 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.

@cjihrig cjihrig added breaking changes Change that can breaking existing code release notes Major release documentation labels Aug 10, 2020
@cjihrig
Copy link
Contributor Author

cjihrig commented Aug 11, 2020

The release is out. 🎉

@cjihrig cjihrig closed this as completed Aug 11, 2020
@hueniverse
Copy link
Contributor

Congrats!

@anlexN
Copy link

anlexN commented Aug 12, 2020

finally wait for you. @cjihrig when to update docs website?

@cjihrig
Copy link
Contributor Author

cjihrig commented Aug 12, 2020

It looks like the website is updated - https://hapi.dev/api?v=20.0.0. If something isn't right, please open an issue at https://github.com/hapijs/hapi.dev

@anlexN
Copy link

anlexN commented Aug 13, 2020

@cjihrig many hapijs module, something like bell still use joi, i have no time to open issues one by one. please update those module.

@cjihrig
Copy link
Contributor Author

cjihrig commented Aug 13, 2020

The core modules have been migrated off of joi. Some plugins have been migrated as well, but it is not a goal to remove joi from all non-core modules.

@anlexN
Copy link

anlexN commented Aug 13, 2020

why

@cjihrig
Copy link
Contributor Author

cjihrig commented Aug 13, 2020

hapi has historically had a policy of no external dependencies in the core project. When joi left the hapi org, we wanted to keep that policy. That policy does not (and never did) apply to plugins.

joi is still fine to use, and has more features than @hapi/validate. validate is just a slimmed down version of joi for hapi's internal purposes.

@anlexN
Copy link

anlexN commented Aug 13, 2020

i don't like joi and validation live in core module at the same, please

@danielb2
Copy link
Contributor

Probably should update the changelog: https://hapi.dev/resources/changelog/

@lloydbenson
Copy link
Contributor

Issue is we burned through the build minutes but I am looking at another strategy to reduce the build time.

@lloydbenson
Copy link
Contributor

I was able to get around the issue with some tweaks. This link now has the latest notes.

ehavet pushed a commit to ehavet/falco that referenced this issue Feb 25, 2022
ehavet pushed a commit to ehavet/falco that referenced this issue Feb 25, 2022
ehavet pushed a commit to ehavet/falco that referenced this issue Feb 25, 2022
…master'

[TECH] Upgrade HapiJS (19.1.1 to 20.0.2) and dependencies

Upgraded dependencies :
 - hapijs from 19.1.1 to 20.0.2 - Release note hapijs/hapi#4138
 - Replace @hapi/joi dependency to joi 17.3.0 - cf hapijs/hapi#4138
 - @hapi/vision from 6.0.0 to 6.0.1
 - @hapi/inert from 6.0.1 to 6.0.3
 - hapi-swagger from 12.1.3 to 14.0.0 - Release Note 13.0.0 : hapi-swagger/hapi-swagger#660; Release Note 14.0.0 : hapi-swagger/hapi-swagger#680
 - @types/hapi__hapi from 19.0.2 to 20.0.2

Ticket #109

See merge request appenin/falco-api!132
@devinivy devinivy added this to the 20.0.0 milestone Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking changes Change that can breaking existing code release notes Major release documentation
Projects
None yet
Development

No branches or pull requests

6 participants