Problem/Motivation

PHPUnit reports deprecation errors:

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

The "access_check.node.revision" service is deprecated. You should use the 'access_check.entity' service instead. See https://www.drupal.org/node/3161210

NodeRevisionAccessCheck is deprecated in drupal:9.3.0 and will be removed before drupal:10.0.0. Use "_entity_access" requirement with relevant operation instead. See https://www.drupal.org/node/3161210

Checking the module's code shows that those are caused by paragraphs and diff module test dependencies.

Proposed resolution

  • Expect deprecation in related test cases

Remaining tasks

  • Rewrite tests to expect the mentioned deprecation

User interface changes

n/a

API changes

n/a

Data model changes

n/a

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

hctom created an issue. See original summary.

hctom’s picture

Issue summary: View changes
hctom’s picture

Title: The core/jquery.once asset library is deprecated » Check/fix deprecation notices
Issue summary: View changes
hctom’s picture

Issue summary: View changes
hctom’s picture

  • hctom committed 3898aa3 on 2.x
    Issue #3281813 by hctom: Check/fix deprecation notices
    
hctom’s picture

Status: Active » Fixed
hctom’s picture

Status: Fixed » Closed (fixed)