In Drupal 10, we need to replace jQuery.once with once. Because of this change, it's best to create a new branch because it isn't backwards compatible.
I can't find the change notice. But you can see similar changes made across many projects, for example #3183149: Deprecate jquery.once and use the new once lib, #3332891: jquery.once deprecated in D10, #3340467: Replace deprecated jquery/once with core/once, and #3303746: jQuery.once() is deprecated in Drupal 9.3.0 and will be removed in Drupal 10.0.0. Use the core/once library instead.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3366097-8.patch | 508 bytes | douggreen |
| #2 | announce-autosubmit--jquery-once-d10--3366097-2.patch | 947 bytes | douggreen |
Issue fork announce_autosubmit-3366097
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
douggreen commentedpatch attached
Comment #3
keshavv commentedWe can merge it.
Comment #4
harshita mehna commentedI have created MR !1 for the issue.
Ready to merge.
Kindly review.
Comment #7
juanolalla commentedThank you all, this has been included in the new released 2.0.0 version.
Comment #8
douggreen commentedOops, I missed a jQuery.once(), see attached.
Comment #9
keshavv commentedThank you for the patch. Looks Good.
Please merge and close.
Thank you.
Comment #11
juanolalla commentedThank you all, this has been solved in 2.0.1