jQuery 4.0 Support

Created on 7 February 2024, about 1 year ago
Updated 17 December 2024, 4 months ago
Feature request
Status

Active

Version

4.0

Component

Code

Created by

🇨🇦Canada RobLoach Earth

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

Comments & Activities

  • Issue created by @RobLoach
  • 🇬🇧United Kingdom mcdruid 🇬🇧🇪🇺

    Interesting.. thanks for filing this.

    The idea would be that jQuery Update now supports bringing in any version of jQuery (and associated libraries) via custom paths.

    However, looks like there are quite a lot of changes in this major version, including lots of deprecated APIs being removed.

    So seems pretty likely that some BC/shim code would be necessary.

    Sadly there's no automated JS testing in D7 so it'd be a manual effort to figure out what would break.

    I personally am not going to be able to devote much/any time to this, but patches welcome.

    The beta release notes linked to in the IS mention that:

    The jQuery Migrate plugin will also be ready to assist.

    So if we're lucky there won't be anything specific to do for D7 - sites would just need to pull in an appropriate release of jQuery Migrate, which jQuery Update can do - but we'll have to see how that turns out.

    There is of course the option of just sticking with jQuery 3 on D7 sites.

    Drupal maintainers have been discussing what the jQuery 4 release will mean for jQuery 3 EOL with the jQuery maintainers for some time in:

    https://github.com/jquery/jquery/discussions/5001

    ...and it sounds like jQuery 3 is likely be supported beyond the EOL of D7.

  • First commit to issue fork.
  • 🇪🇪Estonia ram4nd Tallinn

    ram4nd changed the visibility of the branch 3419849-jquery-4.0-support to hidden.

Production build 0.71.5 2024