Update JavaScript dependencies for Drupal 11.0.0

Created on 1 August 2024, 4 months ago
Updated 24 August 2024, 3 months ago

Problem/Motivation

Update minor and patch releases of JavaScript dependencies for 11.0.0

- Major release are handled in separate issues (and might not be eligible to update for an update anyway, unsure about the policy on this between an RC and full release?).
- Both jquery and jquery-ui have their own issue already for getting to a stable release: πŸ“Œ Update to a stable version of jQuery 4 Active and πŸ“Œ Update to jQuery UI 1.14.0 Fixed
- Nightwatch update lives here: πŸ“Œ Update Nightwatch to 3.x Fixed
- eslint update is here: πŸ“Œ [PP-upstream] Support eslint 9 Postponed
-

Bah, we can't update stylelint because of stylelint-formatter-gitlab: https://gitlab.com/leon0399/stylelint-formatter-gitlab/-/issues/3

@longwave in #3439522-16: Update JavaScript dependencies for Drupal 10.3/11.0 β†’

Steps to reproduce

$ yarn upgrade-interactive

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

11.0 πŸ”₯

Component
JavascriptΒ  β†’

Last updated 2 days ago

Created by

πŸ‡³πŸ‡±Netherlands spokje

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

Merge Requests

Comments & Activities

  • Issue created by @spokje
  • πŸ‡³πŸ‡±Netherlands spokje

    -

    Bah, we can't update stylelint because of stylelint-formatter-gitlab: https://gitlab.com/leon0399/stylelint-formatter-gitlab/-/issues/3

    @longwave in #3439522-16: Update JavaScript dependencies for Drupal 10.3/11.0 β†’

    I think we need an issue to decide if stylelint-formatter-gitlab should be considered abandoned and look for alternatives.

    I found a JS alternative here: #3460114-7: Update JavaScript dependencies for Drupal 11.0-rc β†’ , but there should/might be easier ways.

    Anyway, doesn't seem right we don't update a dependency "simply" because the reporting can't handle the update.

  • πŸ‡³πŸ‡±Netherlands spokje
  • πŸ‡³πŸ‡±Netherlands spokje
  • πŸ‡³πŸ‡±Netherlands spokje
  • Merge request !9020up js dependencies β†’ (Closed) created by spokje
  • Pipeline finished with Success
    4 months ago
    #240368
  • πŸ‡³πŸ‡±Netherlands spokje

    Great stuff...

    Seems that floating-ui was never updated in our core/assets/vendor when using yarn vendor-update, because it has no entry in core/scripts/js/vendor-update.js const ASSET_LIST...

  • Pipeline finished with Success
    4 months ago
    Total: 560s
    #240385
  • Pipeline finished with Success
    4 months ago
    Total: 445s
    #240407
  • πŸ‡³πŸ‡±Netherlands spokje

    Should have fixed the above, but me thinks we need another follow-up to create a test that makes sure all our JS-assets are actually updated when doing a yarn vendor-update.

  • Pipeline finished with Canceled
    4 months ago
    Total: 67s
    #240442
  • πŸ‡³πŸ‡±Netherlands spokje

    Although prettier was updated, a $ yarn prettier shows no changes.

  • Pipeline finished with Success
    4 months ago
    Total: 435s
    #240445
  • First commit to issue fork.
  • πŸ‡«πŸ‡·France nod_ Lille

    fixed up the floating ui declaration, no need to mess with the processing :)

  • πŸ‡³πŸ‡±Netherlands spokje

    Thanks @_nod

  • πŸ‡³πŸ‡±Netherlands spokje

    Since we're using a new version of cspell, also did a $ yarn spellcheck:make-dict.

  • Pipeline finished with Success
    4 months ago
    Total: 620s
    #240680
  • Issue was unassigned.
  • Status changed to Needs review 4 months ago
  • πŸ‡³πŸ‡±Netherlands spokje
  • πŸ‡ΊπŸ‡ΈUnited States xjm

    I imagine this will probably conflict with πŸ“Œ Update Nightwatch to 3.x Fixed . I'm not sure what to do about that issue, but it should take precedence since a major version upgrade of Nightwatch is a significant thing for core maintenance (and will likely slip to D12 otherwise).

  • πŸ‡ΊπŸ‡ΈUnited States xjm
  • πŸ‡ΊπŸ‡ΈUnited States xjm

    Discussed with @longwave and we might do the Nightwatch 3 update in 11.1, which would mean this could still go in today before 11.0.0 (should it be RTBCed).

  • Status changed to RTBC 4 months ago
  • πŸ‡«πŸ‡·France nod_ Lille

    floating ui is used by navigation and the update didn't break anything.
    underscore just updated the license data, no code changes.
    build/lint scripts didn't change

    • xjm β†’ committed 067dd631 on 11.x
      Issue #3465166 by Spokje, nod_: Update JavaScript dependencies for...
    • xjm β†’ committed d0da23b5 on 11.0.x
      Issue #3465166 by Spokje, nod_: Update JavaScript dependencies for...
  • πŸ‡ΊπŸ‡ΈUnited States xjm

    I checked the following to ensure there were no diffs from the MR:

    cd core
    yarn install
    yarn spellcheck:make-dict
    yarn run build
    yarn prettier
    

    ...And of course CSS and JS linting happen in my pre-commit hook.

    When I cherry-picked it to 11.0.x and repeated the above, there was one additional misspelling:

    [ayrton:core | Thu 16:27:41] $ git diff
    diff --git a/core/misc/cspell/dictionary.txt b/core/misc/cspell/dictionary.txt
    index 79e14b2a06..232320fd08 100644
    --- a/core/misc/cspell/dictionary.txt
    +++ b/core/misc/cspell/dictionary.txt
    @@ -710,6 +710,7 @@ untabbable
     upcasted
     upcasting
     updateprogress
    +uploaders
     uploadprogress
     upscaling
     urandom

    This is found in:
    core/modules/update/src/Form/UpdateManagerInstall.php: $test_authorize = \Drupal::state()->get('test_uploaders_via_prompt', FALSE);
    ...which was deleted in πŸ“Œ Remove adding an extension via a URL Fixed , so I amended the 11.0.x cherry-pick to add it back to the dictionary. Probably a problem with the previous commit rather than new versions of dependencies here, but I amended the commit anyway so that the linting tests don't fail on 11.0.x:

    [ayrton:maintainer | Thu 16:36:12] $ cd core
    [ayrton:core | Thu 16:36:15] $ yarn spellcheck:make-dict
    [ayrton:core | Thu 16:36:30] $ cd ..
    [ayrton:maintainer | Thu 16:38:00] $ git diff
    diff --git a/core/misc/cspell/dictionary.txt b/core/misc/cspell/dictionary.txt
    index 79e14b2a06..232320fd08 100644
    --- a/core/misc/cspell/dictionary.txt
    +++ b/core/misc/cspell/dictionary.txt
    @@ -710,6 +710,7 @@ untabbable
     upcasted
     upcasting
     updateprogress
    +uploaders
     uploadprogress
     upscaling
     urandom
    [ayrton:maintainer | Thu 16:38:01] $ git add core/misc/cspell/dictionary.txt
    [ayrton:maintainer | Thu 16:38:30] $ git commit --amend -m 'Issue #3465166 by Spokje, nod_: Update JavaScript dependencies for Drupal 11.0.0'
    

    Then confirmed re-running the dictionary build did not result in additional changes.

    Thanks!

  • Status changed to Fixed 4 months ago
  • πŸ‡ΊπŸ‡ΈUnited States xjm

    Do we still need that followup about stylelint-formatter-gitlab?

  • πŸ‡³πŸ‡±Netherlands spokje

    Do we still need that followup about stylelint-formatter-gitlab?

    Opened πŸ“Œ stylelint-formatter-gitlab prevents updating stylelint Active

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

Production build 0.71.5 2024