Skip to content

15.0.0

Compare
Choose a tag to compare
@SamChatfield SamChatfield released this 01 Nov 13:25
· 13 commits to master since this release
cf631e6

Breaking Change

Default email validator has been made stricter to disallow leading, trailing and consecutive dots in local part of email addresses.

If this new behaviour does not meet your requirements you will need to use a regex validator or create a custom email address validator for use on the relevant fields instead.

The full new regular expression used is as follows:

/^(?!.*\.\.)[a-z0-9_%+-](?:[a-z0-9._%+-]*[a-z0-9_%+-])?@([a-z0-9]+([a-z0-9-]*[a-z0-9]+)?\.)+[a-z]{2,6}$/i

⚠️ Important Note

The example app’s package.json specifies "latest" for dependencies like govuk-frontend, hmpo-components, and hmpo-form-wizard.

If you run npm install on the v15.0.0 example app, it will pull the latest versions of these packages. This now includes govuk-frontend v5, which uses ESM (ECMAScript Modules), and updated versions of HMPO packages that expect ESM.

As a result, the v15.0.0 example app will not work out-of-the-box with the current latest dependencies.

  • To use the example app as intended with v15.0.0, you must explicitly install compatible versions (for example, govuk-frontend@4, older HMPO packages).
  • For ESM-compatible usage with govuk-frontend v5, upgrade to v15.0.1 or later and follow the updated example app and README for bundler setup.

Commits

  • Merge pull request #207 from HMPO/stricter-email-validation cabb55d
  • Make email validator stricter 59ebff2

v14.1.0...v15.0.0