Skip to content

13.0.0 Release Notes #1328

@Marsup

Description

@Marsup

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.

Metadata

Metadata

Assignees

Labels

breaking changesChange that can breaking existing coderelease notesMajor release documentation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions