Skip to content

Update hapijs/joi to 10.1.0 from 10.0.1 #3416

@hueniverse

Description

@hueniverse

joi 10.0.0 changed the way non boolean strings are matched against a boolean requirement. Specifically, it stopped casting anything into a boolean. This change was incorrect because literal strings of 'true' and 'false' should still be converted when not using strict mode. This change was properly documented in the hapi v16 release notes but after further review we decided that this was a mistake and joi reverted the behavior. I decided that while this is technically a breaking change because literal true/false strings will now match boolean schema, it is the expected behavior. I've marked this issue as a breaking change but it is attached to a minor release version.

Metadata

Metadata

Assignees

Labels

breaking changesChange that can breaking existing codedependencyUpdate module dependency

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions