Skip to content

Replace isemail with @hapi/address #1776

@hueniverse

Description

@hueniverse

Breaking changes:

Joi.string().email() options changed. The following options are no longer supported:

  • checkDNS (remains unsupported)
  • errorLevel - unsupported with no replacement. The new validation rules treat quoted-strings, comments, obsolete formats, and domain literals as errors.
  • minDomainAtoms - use minDomainSegments.
  • tldBlacklist - use tlds.deny instead.
  • tldWhitelist - use tlds.allow instead.

Checklist

  • Scan you code for any reference to email( and check if options are passed. If they are, convert them to use the new options as described above.
  • Ensure you understand that some email addresses considered valid before are no longer valid (specifically those with quoted strings "first last"@example.com and domain literals test@[127.0.0.1]).

Metadata

Metadata

Assignees

Labels

breaking changesChange that can breaking existing codedependencyUpdate module dependencyrelease notesMajor release documentation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions