Pin to egulias/email-validator v4

Created on 2 May 2023, over 1 year ago
Updated 20 May 2023, over 1 year ago

Problem/Motivation

egulias/email-validator v3 goes out of support end of 2023. We have previously updated from v2 to v3 in a minor release, and it was relatively (although not 100% smooth).

After πŸ“Œ Allow egulias/email-validator v4 Fixed we allow sites to update to version 4. Opening this issue to discuss if we should pin to it so that sites install it/update to it by default.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

10.1 ✨

Component
BaseΒ  β†’

Last updated about 6 hours ago

Created by

πŸ‡¬πŸ‡§United Kingdom catch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @catch
  • πŸ‡¬πŸ‡§United Kingdom catch
  • πŸ‡¬πŸ‡§United Kingdom longwave UK

    The breaking changes in v4 appear to be:

    -    "php": ">=7.2",
    -    "doctrine/lexer": "^1.2|^2",
    -    "symfony/polyfill-intl-idn": "^1.15"
    +    "php": ">=8.1",
    +    "doctrine/lexer": "^2.0 || ^3.0",
    +    "symfony/polyfill-intl-idn": "^1.26"
    

    We already have the same minimum PHP requirement and we are already pinned to symfony/polyfill-intl-idn 1.27.

    The only difficult part is dropping support for doctrine/lexer 1. However, we are already pinned to to doctrine/lexer 2.1.0 in core-recommended, and we currently cannot go to v3 unless we also upgrade doctrine/annotations - which also involves a major version bump from 1 to 2.

    $ composer why doctrine/lexer
    doctrine/annotations    1.14.3 requires  doctrine/lexer (^1 || ^2) 
    egulias/email-validator 3.2.5  requires  doctrine/lexer (^1.2|^2)  
    symfony/validator       v6.2.8 conflicts doctrine/lexer (<1.1)     
    

    To summarise I don't see a problem with this, and it may be better to start making moves to do this now, in case our hand is forced in the future by a security update of any of egulias/email-validator, doctrine/annotations or doctrine/lexer.

  • πŸ‡¬πŸ‡§United Kingdom catch

    Yep agreed with #3. If we don't update, we could be forced to either update or fork by PHP 8.3+ support or a security release. PHP 8.3 support is OK since we can add that only in a minor release, but doing so for a security update means any disruption would happen at the worst time. it's possible of course that there's no security release until after 10.x is EOL but that still leaves PHP version support.

  • Status changed to Needs review over 1 year ago
  • last update over 1 year ago
    29,388 pass
  • πŸ‡¬πŸ‡§United Kingdom longwave UK
  • πŸ‡¬πŸ‡§United Kingdom longwave UK

    Marking as critical given #4.

  • Status changed to RTBC over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Marking this but should it go into 10.2 or D11?

  • πŸ‡¬πŸ‡§United Kingdom longwave UK

    In my opinion, this is still eligible for 10.1; the risk of breakage is low and the risk of future security issues is higher and will be more difficult to resolve.

  • πŸ‡¬πŸ‡§United Kingdom catch

    Yes I'm +1 to #8 too, especially since we're only pinning, not increasing the constraint.

    • catch β†’ committed 6b745965 on 10.1.x
      Issue #3357585 by longwave, catch: Pin to egulias/email-validator v4
      
      (...
    • catch β†’ committed 889a6c48 on 11.x
      Issue #3357585 by longwave, catch: Pin to egulias/email-validator v4
      
  • Status changed to Fixed over 1 year ago
  • πŸ‡¬πŸ‡§United Kingdom catch

    Let's do this. If there are any issues it's easy for modules/sites to downgrade.

    Committed/pushed to 11.x and cherry-picked to 10.1.x, thanks!

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024