Problem/Motivation

We should ship 12.0.0 with some updated dependencies.

Same as #3625623: Update JavaScript dependencies for 11.5.0, we should handle eslint, postcss separately. Possibly stylelint as well.

Steps to reproduce

Proposed resolution

Update whatever we can without breaking changes.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3638970

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

godotislate created an issue. See original summary.

godotislate’s picture

Title: Update JavaScript dependencies for 12.5.0 » Update JavaScript dependencies for 12.0.0
keerthi kumar’s picture

Assigned: Unassigned » keerthi kumar

I'll be working on this

godotislate’s picture

jQuery 4.1.0 (https://github.com/jquery/jquery/releases/tag/4.1.0) has been released, so it's worth trying to see if we can add that here. Hopefully there are not BC breaks.

godotislate’s picture

Hi @keerthi kumar are you actively working on this? This issue has urgency because it's a blocker for the Drupal 12 RC, so can you advise if you have work in progress, or push your current work to an MR? Otherwise later today I will start work in this myself and put up an MR.

We also generally discourage contributors from assigning Drupal core issues to themselves, per our policy.

godotislate’s picture

Assigned: keerthi kumar » Unassigned
Priority: Normal » Critical
Status: Active » Needs review

Opened MR: https://git.drupalcode.org/project/drupal/-/merge_requests/17870.

Packages updated:

   chokidar ------------------------------------ ◯ ^5.0.0 -------                  ◉ ^6.0.0 -------
 > cspell -------------------------------------- ◯ ^10.3.3 ------ ◉ ^10.5.2 ------
   dotenv -------------------------------------- ◯ ^18.0.1 ------ ◉ ^18.0.10 -----
   eslint-plugin-jsdoc ------------------------- ◉ ^64.5.4 ------                  ◯ ^65.5.0 ------
   eslint-plugin-no-jquery --------------------- ◉ ^6.0.0 ------- ◯ ^6.0.2 -------
   eslint-plugin-prettier ---------------------- ◉ ^5.5.6 ------- ◯ ^5.5.7 -------
   eslint-plugin-yml --------------------------- ◉ ^1.19.1 ------                  ◯ ^3.10.0 ------
   eslint -------------------------------------- ◉ ^9.39.5 ------                  ◯ ^10.15.0 -----
   glob ---------------------------------------- ◯ ^13.0.6 ------ ◯ ^13.0.7 ------ ◉ ^14.0.6 ------
   globals ------------------------------------- ◯ ^17.12.0 ----- ◉ ^17.14.0 -----
   htmx.org ------------------------------------ ◯ 4.0.1 -------- ◉ 4.0.2 -------- ◯ 2.0.11 -------
   jquery -------------------------------------- ◯ ^4.0.0 ------- ◉ ^4.1.0 -------
   jsdom --------------------------------------- ◯ ^30.1.0 ------ ◯ ^30.1.3 ------ ◉ ^31.0.1 ------
   postcss-import ------------------------------ ◉ ^17.0.0 ------ ◯ ^17.0.1 ------
   postcss-preset-env -------------------------- ◯ ^11.5.3 ------ ◉ ^11.6.3 ------
   postcss ------------------------------------- ◉ ^8.5.28 ------ ◯ ^8.5.33 ------
   prettier ------------------------------------ ◯ ^3.9.8 ------- ◉ ^3.10.1 ------
   stylelint-config-standard ------------------- ◉ ^40.0.0 ------                  ◯ ^41.0.0 ------
   stylelint-order ----------------------------- ◯ ^8.1.1 ------- ◉ ^8.1.3 -------
   stylelint-prettier -------------------------- ◉ ^5.0.3 ------- ◯ ^5.1.0 -------
   stylelint ----------------------------------- ◯ ^17.15.0 ----- ◉ ^17.16.0 ----- ◯ ^18.0.0 ------
   tabbable ------------------------------------ ◯ ^6.5.0 ------- ◉ ^6.5.2 -------
   transliteration ----------------------------- ◯ ^2.6.1 ------- ◉ ^2.7.0 -------
   webpack-cli --------------------------------- ◯ ^7.2.3 ------- ◉ ^7.3.1 -------
   webpack ------------------------------------- ◯ ^5.111.1 ----- ◉ ^5.112.2 -----

The transliteration update includes a fix in the mapping of Ý to Y instead of U: https://github.com/yf-hk/transliteration/blob/main/CHANGELOG.md#270. This required an adjustment in expected value the NW test.

Updated stylelint packages to match #3625623: Update JavaScript dependencies for 11.5.0, because later versions introduce more deprecations that can be handled in a separate issue.

Bumping to critical bc this is a RC blocker.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Not sure how to best review but applied locally and nothing seems to be off that I can tell. Marking as you mentioned it's a RC blocker

fathershawn’s picture

Status: Reviewed & tested by the community » Needs review

I checked the following:

  1. Version numbers for packages listed in core.libraries.yml match package.json
  2. Checked each upgraded package at security.snyk.io

Webpack is now at 5.113.0: https://security.snyk.io/package/npm/webpack

webpack-cli has no known vulnerabilities but is flagged for security review: https://security.snyk.io/package/npm/webpack-cli

Moving back to NR while it is determined if any of these questions need resolution.

godotislate’s picture

@fathershawn Thanks for checking the package numbers and for known vulnerabilities.

It looks like the 5.113.0 webpack release happened after I did the update steps here. I don't think it's necessary to chase this, especially since it's not a security release. There's always the chance that this or some other library has another release between now and when the MR gets committed, so we can be content with best effort.

fathershawn’s picture

Status: Needs review » Reviewed & tested by the community

Then we are good to go!

godotislate’s picture

  • catch committed b6b707f4 on 12.0.x
    task: #3638970 Update JavaScript dependencies for 12.0.0
    
    By:...

  • catch committed 5776d7de on main
    task: #3638970 Update JavaScript dependencies for 12.0.0
    
    By:...
catch’s picture

Version: main » 12.0.x-dev
Status: Reviewed & tested by the community » Fixed

Committed/pushed to main and 12.0.x, thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.