Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 |
Comments
Comment #2
longwaveNot 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
Comment #3
longwaveAlso guess that #3123751: [META] Update yarn dependencies should probably be closed as outdated now.
Comment #4
longwaveI 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/191Comment #5
longwaveSimilarly
eslint-config-airbnb
is not ready for ESLint 8 yet: https://github.com/airbnb/javascript/issues/2478Comment #6
longwaveI 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.
Comment #7
longwaveOpened #3246211: Update to Stylelint 14
Comment #9
nod_Need to update the IS with latest versions
Comment #10
xjmFollowing #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.
Comment #11
xjmThis is unpostponed now that the previous issue is in 9.4.x. Thanks!
Comment #12
longwaveComment #13
longwaveI only included top level packages, e.g.
eslint
but noteslint-config-airbnb
etc, as they will all go together anyway.Comment #14
longwaveComment #15
nod_Comment #17
longwaveWe didn't quite complete everything here (PostCSS 8 at least), should we repurpose this for 9.5 or open a new issue?
Comment #18
lauriii9.4.0 has been shipped. We should open new issue for Drupal 9.5.0 and 10.0.0.