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.

Command icon 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

douggreen created an issue. See original summary.

douggreen’s picture

Status: Active » Needs review
StatusFileSize
new947 bytes

patch attached

keshavv’s picture

Status: Needs review » Reviewed & tested by the community

We can merge it.

harshita mehna’s picture

I have created MR !1 for the issue.
Ready to merge.
Kindly review.

juanolalla’s picture

Status: Reviewed & tested by the community » Fixed

Thank you all, this has been included in the new released 2.0.0 version.

douggreen’s picture

Version: 1.0.1 » 2.0.x-dev
Status: Fixed » Needs review
StatusFileSize
new508 bytes

Oops, I missed a jQuery.once(), see attached.

keshavv’s picture

Status: Needs review » Reviewed & tested by the community

Thank you for the patch. Looks Good.
Please merge and close.
Thank you.

  • juanolalla committed d7ce602a on 2.0.x
    git commit -m 'Issue #3366097 later fix by douggreen, keshavv: missed a...
juanolalla’s picture

Status: Reviewed & tested by the community » Fixed

Thank you all, this has been solved in 2.0.1

Status: Fixed » Closed (fixed)

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