#58083 closed enhancement (fixed)
Update jQuery v3.6.4 to v3.7.0
Reported by: | mgol | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | External Libraries | Keywords: | has-patch add-to-field-guide has-dev-note |
Focuses: | ui, javascript | Cc: |
Description
Hey! The jQuery team is preparing for a release of jQuery 3.7.0. While formally not a breaking update, there are major changes in that version that incur some risk. Before we release, I'm trying to verify the changes are not breaking important projects.
What we'll release as 3.7.0 should be very similar to what you can currently find at https://releases.jquery.com/git/jquery-3.x-git.js.
Do you have some tests you could invoke on that pre-release version?
Summary of the most risky changes:
- removal of Sizzle in favor of inlining the selector engine code within jQuery with a lot of removals of workarounds for legacy browsers - we have tests but there's always risk we removed too much
- implementing the focus jQuery event in IE via focusin and blur via focusout - this is because focusin & focusout native handlers are executed synchronously in IE while focus & blur are async; in other browsers, all 4 are sync
I guess the second part doesn't affect you since you don't support IE anymore?
Attachments (3)
Change History (20)
This ticket was mentioned in Slack in #core by mgol. View the logs.
18 months ago
#3
@
18 months ago
- Component changed from General to External Libraries
- Milestone changed from Awaiting Review to 6.3
#5
follow-up:
↓ 6
@
18 months ago
- Keywords has-patch removed
- Summary changed from Run tests with jQuery 3.x-git in preparation for jQuery 3.7.0 to Run tests with jQuery 3.x-git in preparation for jQuery 3.7.0 and update to jQuery 3.7
The patch is just a testing one, removing the label until 3.7 is actually released. Also, the npm pre-release doesn't include a built copy of jQuery nor does it include the build tools so to test I cloned https://github.com/jquery/jquery.git into node_modules/jquery and built the 3.x-stable branch.
I've done the following the testing:
- qUnit tests in both firefox and jQuery
- Manual testing of the following pages
- post list page
- Taxonomy page
- Media Library
- Menus
- Customizer
- Shiny Updates for Plugins
- Site Health
- Profile editing
Overall, 3.7 looks good. Once it's released, I'm going to use this ticket to update jQuery.
@mgol Overall, I see no issue with 3.7. No objection here with your team releasing the update. Thank you for reaching out.
#6
in reply to:
↑ 5
@
17 months ago
- Keywords needs-patch added
Replying to jorbin:
@mgol Overall, I see no issue with 3.7. No objection here with your team releasing the update. Thank you for reaching out.
I share this sentiment. Thanks again for the courtesy ping. I think if anything, it's more likely we'll expose some outdated code that should be updated in WordPress. But where we are still a while out from our next release (tentatively scheduled for late August), there's plenty of time to uncover and fix any issues.
Adding needs-patch
for when the new version is bundled and published.
#7
@
16 months ago
jQuery 3.7.0 has been released: https://blog.jquery.com/2023/05/11/jquery-3-7-0-released-staying-in-order/
#8
@
16 months ago
- Summary changed from Run tests with jQuery 3.x-git in preparation for jQuery 3.7.0 and update to jQuery 3.7 to Update to jQuery 3.7
A full list of changes in this release can be found on GitHub: https://github.com/jquery/jquery/compare/3.6.4...3.7.0.
For updating the jQuery version in WordPress, package.json and script-loader.php need to get the new version string.
Related: #58203, #57324, #56451, #52707, #51812, #50564, #37110.
(As jQuery 3.7 has now been released, I removed the "Run tests with jQuery 3.x-git in preparation for jQuery 3.7.0" part from the ticket's title.)
This ticket was mentioned in PR #4504 on WordPress/wordpress-develop by @hbhalodia.
16 months ago
#10
- Keywords has-patch added; needs-patch removed
- Updated
jQuery
to latest version -3.7.0
- https://blog.jquery.com/2023/05/11/jquery-3-7-0-released-staying-in-order/
Trac ticket: https://core.trac.wordpress.org/ticket/58083
@audrasjb commented on PR #4504:
16 months ago
#12
I restarted the unsuccessful tests and it looks good, now.
#13
@
16 months ago
- Keywords needs-dev-note added
Let's make it sure this upgrade is mentioned in a devnote about upstream scripts (can be the Misc Changes devnote).
#14
@
16 months ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 55860:
#16
@
14 months ago
Added to misc dev note.
draft: https://make.wordpress.org/core/?p=106236&preview=1&_ppp=2977223417
#58084 was marked as a duplicate.