- Issue created by @catch
- Status changed to Postponed
10 months ago 8:24am 31 January 2024 - ๐ญ๐บHungary Gรกbor Hojtsy Hungary
Postponing until the beta becomes available. It is not yet on https://github.com/jquery/jquery/tags
- Status changed to Active
10 months ago 5:25pm 6 February 2024 - ๐ฌ๐งUnited Kingdom catch
- ๐ญ๐บHungary Gรกbor Hojtsy Hungary
Updated issue summary including update instructions from the beta post.
- ๐ฌ๐งUnited Kingdom catch
Downloaded and copied the following files over the existing equivalents. They aren't actually linked on the download page, so lucky the URLs are predictable, at least once I realised it wasn't beta1.
https://code.jquery.com/jquery-4.0.0-beta.min.js https://code.jquery.com/jquery-4.0.0-beta.js https://code.jquery.com/jquery-4.0.0-beta.min.map
Updated core.libraries.yml
Did nothing else, I might be missing an obvious step, we'll find out.
I didn't add the jquery-migrate plugin because the update instructions seem confident that projects that have already updated to 3.5.0 or higher (we're on 3.7) won't need it and we should find out whether that's true for core or not.
We'll need figure out whether we'd want to add the migrate plugin for contrib/custom or not, whether in the core library or via an extra jquery_migrate module in core or contrib.
- Status changed to Needs review
10 months ago 10:09am 7 February 2024 - ๐ฌ๐งUnited Kingdom catch
If this passes automated tests, we should tag this for manual testing and try to test some js-heavy UIs - ckeditor5 with the media library, menu or taxonomy drag and drop, views, layout builder, contextual links etc.
If those all work, then I think we should run the beta in 11.x HEAD (requires branching 10.3.x) so we've got the greatest chance of hitting any edge cases and to make it easier for contrib to start testing. We could even do that without resolving the migrate plugin question initially.
- ๐ซ๐ทFrance dqd London | N.Y.C | Paris | Hamburg | Berlin
We should maybe add a comment to not confuse this issue with ๐ฑ [meta] Replace JQuery with vanilla Javascript in core Active . I assume this issue here is to support latest jQuery version as long as jQuery is still a core dependency but we should add a note. Maybe I am mistaken here so I wait for agreement before editing.
- Status changed to Needs work
10 months ago 10:21am 7 February 2024 - ๐ฌ๐งUnited Kingdom catch
Real fails on
https://git.drupalcode.org/project/drupal/-/jobs/765398
https://git.drupalcode.org/project/drupal/-/jobs/765399
https://git.drupalcode.org/project/drupal/-/jobs/765412
e.g.
TypeError: $.isArray is not a function at states.Dependent.verifyConstraints (http://localhost/subdirectory/core/misc/states.js?v=11.0-dev:307:13)
This should give us something to work with :)
I think we should split each error, or type of error, off to its own issue, they should all be committable to 10.3, then we can just keep rebasing/rerunning here until green unless we hit something bad.
- ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
+1 to splitting issues for the issues and to committing this early to 11.x
- ๐ฌ๐งUnited Kingdom catch
Opened ๐ [jQuery 4] TypeError: $.isArray is not a function at states.Dependent.verifyConstraints Needs review which seems hopefully trivial even to my non-JavaScript brain.
Also opened ๐ [jQuery 4] jquery-form is unmaintained and not jQuery 4 compatible, fork it into core Fixed which is not going to be as trivial because it's in a library.
- First commit to issue fork.
- ๐ณ๐ฑNetherlands spokje
Rebased after ๐ [jQuery 4] TypeError: $.isArray is not a function at states.Dependent.verifyConstraints Needs review was committed.
- ๐ซ๐ทFrance nod_ Lille
We do have a whole thing for third party js deps so we don't have to copy/paste manually:
$ yarn add -D jquery@4.0.0-beta $ yarn vendor-update
I'll get the code in the right place and update the version in core.libraries.yml
- ๐ณ๐ฑNetherlands spokje
We do have a whole thing for third party js deps so we don't have to copy/paste manually:
Absolutely right and thank you @nod_
(Weirdly at least for me, this knowledge is somehow only popping up in my brain when doing the "upgrade JS dependencies"-issues just before a new major/minor release.)We should have done this straight away, but at least the MR does it now.
- Status changed to Postponed
10 months ago 10:22pm 9 February 2024 - ๐ฌ๐งUnited Kingdom catch
Combining ๐ [jQuery 4] position.js uses deprecated function $.isWindow() Needs review and ๐ [jQuery 4] jquery-form is unmaintained and not jQuery 4 compatible, fork it into core Fixed with the update from here, all tests are green: https://git.drupalcode.org/project/drupal/-/pipelines/91662
- ๐ฌ๐งUnited Kingdom catch
๐ [jQuery 4] jquery-form is unmaintained and not jQuery 4 compatible, fork it into core Fixed gives us a green test run for functional javascript, but it looks like there's still some nightwatch failures too, haven't looked those at all yet.
- ๐ฌ๐งUnited Kingdom catch
๐ Removal :tabbable usage in dialog.js Fixed might be the nightwatch failure.
- ๐ฌ๐งUnited Kingdom catch
- ๐ฌ๐งUnited Kingdom catch
Rebased the original branch here but getting unexplained CSS linting errors. So I redid the jQuery update steps posted above (not my original manual ones) in a new branch just in case it was a problem with the rebase.
- Status changed to Needs review
7 months ago 4:34pm 17 April 2024 - ๐ฌ๐งUnited Kingdom catch
The new MR is passing, not sure what the difference is since the diff is the same.
I had to remove the dialog :tabbable shim integration test, the deprecation message is no longer fired, presumably this is because we updated dialog in the blocking issue and now with jQuery 4 that code isn't executed. Maybe someone else understands that test better than me and I've got it wrong, but also we've now unblocked ๐ Deprecate jquery.tabbable.shim Active so should just go ahead there. There's still coverage, just not via dialog any more.
- ๐ฌ๐งUnited Kingdom catch
Looking at the performance test failures, but also it looks like ๐ Nightwatch tests fail with "unsupported pseudo: tabbable" after jQuery 4 update Postponed is still a problem so unpostponed that one.
- ๐ท๐ธSerbia finnsky
@catch i think you can remove
core/tests/Drupal/Nightwatch/Tests/tabbableShimTest.js
at all.
it tests old tabbable jquery, - ๐ฌ๐งUnited Kingdom catch
@finnsky we still have:
tabbable.jquery.shim: version: VERSION js: misc/jquery.tabbable.shim.js: {} dependencies: - core/drupal - core/tabbable - core/jquery
in core - isn't it the test coverage for that?
๐ Deprecate jquery.tabbable.shim Active has been open for a long time, but was blocked on ๐ Removal :tabbable usage in dialog.js Fixed .
I personally think to enable jQuery 4 testing for contrib, we should indeed remove the nightwatch coverage and sort out anything else later - it could mean going ahead and deprecating the tabbable shim in 10.3.0 for removal in 11.x and removing it from 11.x anyway. But would be good to get thoughts from FEFMs whether that's an acceptable approach.
I might do that to get a green MR here since the diff is pretty small.
- ๐ฌ๐งUnited Kingdom catch
MR up on ๐ Deprecate jquery.tabbable.shim Active .
- ๐ซ๐ทFrance nod_ Lille
this should use the vendor-upgrade script to pull jQuery 4
- ๐ฌ๐งUnited Kingdom catch
Re #33 yeah I didn't the first time because I didn't know it existed, but now I do (and it's very nice).
- ๐ฌ๐งUnited Kingdom catch
๐ Deprecate jquery.tabbable.shim Active is RTBC and tests are green here (with those changes applied).
- Status changed to Needs work
7 months ago 9:47pm 17 April 2024 The Needs Review Queue Bot โ tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- Status changed to Needs review
7 months ago 9:57pm 17 April 2024 - Status changed to RTBC
7 months ago 4:13pm 18 April 2024 - ๐บ๐ธUnited States smustgrave
@nod_ asked in the #needs-review-queue-initative channel.
So seems that all child issues for this have been merged already into 11.x
Applied the MR and tried to do as suggested and go to heavy JS pages
On a standard install of 11.x for all test
1. Created a basic page
2. Tested all the buttons of the Full HTML formatter
3. Tested uploading an imageEnabled Media Library
1. Enabled the media button
2. Verified I could embed media just fineDrag n drop
1. Went to the block layout to test this
2. Reordered some default blocks to different regions without issueEnabled layout builder
1. Enabled for article content type
2. Moved around blocks
3. Added custom blocks
no issuesFor 11.x believe this is good to go.
- Status changed to Needs work
7 months ago 4:17pm 18 April 2024 - ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
Gonna needs work now that ๐ Set budgets rather than exact numbers of asset size assertions Downport landed...
- Status changed to RTBC
7 months ago 5:34pm 18 April 2024 - ๐ฌ๐งUnited Kingdom catch
Rebase looks good, thanks for lowering the budgets!
- Status changed to Fixed
7 months ago 7:21pm 18 April 2024 Automatically closed - issue fixed for 2 weeks with no activity.