-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
breaking changesChange that can breaking existing codeChange that can breaking existing coderelease notesMajor release documentationMajor release documentation
Milestone
Description
Summary
This major version aligns with the new baseline the hapi.js organization set for node.js.
And I think it is important to reiterate that the previous versions are NOT dead, I will still accept PRs on those, or backport bug fixes and new features if people deem it important. The v12 branch is made for that.
- Upgrade time: low to none
- Complexity: low
- Risk: low
⚠️ Breaking changes
Use node.js v8 as baseline
Joi is now using several new javascript features that are now supported by the new V8. Otherwise nothing has changed internally.
Some functions now use default parameters instead of the classic || javascript check, namely:
date.timestamp()string.ip()string.base64()string.normalize()
Do make sure that you are not calling those with falsy values instead of undefined, this would cause a change of behavior.
✨ New features
None.
👥 Contributors
The contributors to this release are : myself.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
breaking changesChange that can breaking existing codeChange that can breaking existing coderelease notesMajor release documentationMajor release documentation