Problem/Motivation

After #3246141: Update JavaScript dependencies prior to 9.3.0, let's update all JavaScript dev dependencies to latest major releases.

Major

Package Current Latest Issue
chalk 4.1.2 5.0.0 #3266274: Remove chalk as a dependency
chromedriver 87.0.7 98.0.1 #3258114: Upgrade Chromedriver
ckeditor5 31.1.0 32.0.0 #3261600: Update to CKEditor5 v32.0.0
eslint 7.26.0 8.9.0 #3265618: Update to eslint 8
jsdom 18.1.1 19.0.0 #3265664: Update jsdom to latest major release
nightwatch 1.7.13 2.0.7 #3265617: Update Nightwatch to 2.x
postcss 7.0.39 8.4.6 #3261163: Update to PostCSS 8
shepherd.js 8.3.1 9.0.0 #3265619: Update Shepherd.js to 9.x
stylelint-config-standard 23.0.0 25.0.0

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

lauriii created an issue. See original summary.

longwave’s picture

Not sure if we should do this all in one go or convert this to a meta to do it package-by-package?

#3226052: Update to cspell 5 exists already to upgrade to CSpell 5

longwave’s picture

Also guess that #3123751: [META] Update yarn dependencies should probably be closed as outdated now.

longwave’s picture

I don't think we can upgrade PostCSS yet because postcss-preset-env is not yet compatible with PostCSS 8: https://github.com/csstools/postcss-preset-env/issues/191

longwave’s picture

Similarly eslint-config-airbnb is not ready for ESLint 8 yet: https://github.com/airbnb/javascript/issues/2478

longwave’s picture

I tried upgrading Stylelint and related packages locally, but there are a lot of new rules that we either need to fix or ignore, so I think it's worth spinning off a new issue to discuss that.

longwave’s picture

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

nod_’s picture

Title: Update JavaScript dev dependencies to lates major releases before 9.3.0 » Update JavaScript dev dependencies to lates major releases before 9.4.0
Status: Active » Needs work

Need to update the IS with latest versions

xjm’s picture

Status: Needs work » Postponed

Following #3262573: Update our yarn dev dependencies to the extent allowed by current constraints, @lauriii suggested that we should handle some dependency updates individually, particularly where there are security issues. He will file issues for them. Let's postpone this on those individual updates, and address what's left over after.

xjm’s picture

Status: Postponed » Needs work

This is unpostponed now that the previous issue is in 9.4.x. Thanks!

longwave’s picture

Title: Update JavaScript dev dependencies to lates major releases before 9.4.0 » Update JavaScript dev dependencies to latest major releases before 9.4.0
Issue tags: +Needs issue summary update
longwave’s picture

Title: Update JavaScript dev dependencies to latest major releases before 9.4.0 » [meta] Update JavaScript dev dependencies to latest major releases before 9.4.0
Category: Task » Plan
Issue summary: View changes
Status: Needs work » Active
Issue tags: -Needs issue summary update

I only included top level packages, e.g. eslint but not eslint-config-airbnb etc, as they will all go together anyway.

longwave’s picture

Issue summary: View changes
nod_’s picture

Issue summary: View changes

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

longwave’s picture

We didn't quite complete everything here (PostCSS 8 at least), should we repurpose this for 9.5 or open a new issue?

lauriii’s picture

Status: Active » Fixed

9.4.0 has been shipped. We should open new issue for Drupal 9.5.0 and 10.0.0.

Status: Fixed » Closed (fixed)

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