jquery.once is deprecated

Created on 30 November 2022, almost 2 years ago
Updated 14 March 2023, over 1 year ago

Problem/Motivation

Running upgrade_status generates this report for eme:

Entity Migrate Export,  1.0.0-alpha11
Scanned on Tue, 29/11/2022 - 06:34

FILE:
web/modules/contrib/eme/tests/modules/eme_test_module_extension_list/src/ModuleExtensionList.php

STATUS         LINE                           MESSAGE
--------------------------------------------------------------------------------
Check manually 12   Class
                    Drupal\eme_test_module_extension_list\ModuleExtensionList
                    extends @internal class
                    Drupal\Core\Extension\ModuleExtensionList.
--------------------------------------------------------------------------------

FILE: web/modules/contrib/eme/tests/src/Unit/DiscoveryPluginManagerTest.php

STATUS         LINE                           MESSAGE
--------------------------------------------------------------------------------
Check manually 45   Call to deprecated method prophesize() of class
                    PHPUnit\Framework\TestCase:
                    https://github.com/sebastianbergmann/phpunit/issues/4141
--------------------------------------------------------------------------------
Check manually 46   Call to deprecated method prophesize() of class
                    PHPUnit\Framework\TestCase:
                    https://github.com/sebastianbergmann/phpunit/issues/4141
--------------------------------------------------------------------------------
Check manually 47   Call to deprecated method prophesize() of class
                    PHPUnit\Framework\TestCase:
                    https://github.com/sebastianbergmann/phpunit/issues/4141
--------------------------------------------------------------------------------

FILE:
web/modules/contrib/eme/tests/src/Unit/Plugin/ReferenceDiscovery/EntityReference
Test.php

STATUS         LINE                           MESSAGE
--------------------------------------------------------------------------------
Check manually 29   Call to deprecated method prophesize() of class
                    PHPUnit\Framework\TestCase:
                    https://github.com/sebastianbergmann/phpunit/issues/4141
--------------------------------------------------------------------------------
Check manually 30   Call to deprecated method prophesize() of class
                    PHPUnit\Framework\TestCase:
                    https://github.com/sebastianbergmann/phpunit/issues/4141
--------------------------------------------------------------------------------
Check manually 31   Call to deprecated method prophesize() of class
                    PHPUnit\Framework\TestCase:
                    https://github.com/sebastianbergmann/phpunit/issues/4141
--------------------------------------------------------------------------------
Check manually 32   Call to deprecated method prophesize() of class
                    PHPUnit\Framework\TestCase:
                    https://github.com/sebastianbergmann/phpunit/issues/4141
--------------------------------------------------------------------------------
Check manually 33   Call to deprecated method prophesize() of class
                    PHPUnit\Framework\TestCase:
                    https://github.com/sebastianbergmann/phpunit/issues/4141
--------------------------------------------------------------------------------
Check manually 47   Call to deprecated method prophesize() of class
                    PHPUnit\Framework\TestCase:
                    https://github.com/sebastianbergmann/phpunit/issues/4141
--------------------------------------------------------------------------------

FILE: web/modules/contrib/eme/eme.libraries.yml

STATUS         LINE                           MESSAGE
--------------------------------------------------------------------------------
Check manually 0    The 'export-id' library is depending on a deprecated
                    library. The core/jquery.once asset library is deprecated in
                    Drupal 9.3.0 and will be removed in Drupal 10.0.0. Use the
                    core/once library instead. See
                    https://www.drupal.org/node/3158256
--------------------------------------------------------------------------------

Only the last reported issue seems to be relevant here: there may – or may not – be something more to do in order to support D10.

Steps to reproduce

composer show drupal/core | grep versions
# Put the version output by the previous command into the following, in place of "9.4.8":
composer require --dev drupal/core-dev:9.4.8 --update-with-all-dependencies
composer require drupal/upgrade_status
vendor/bin/drush en upgrade_status
vendor/bin/drush us-a --all >& ../upgrade-status.txt
πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia richard.walker.ardc

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024