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
Update JavaScript dependencies loaded using Yarn prior to 9.3.0:
Minor
Package | Current | Wanted | Latest | URL |
---|---|---|---|---|
@babel/core | 7.14.2 | 7.15.8 | 7.15.8 | https://babel.dev/docs/en/next/babel-core |
@babel/preset-env | 7.14.2 | 7.15.8 | 7.15.8 | https://babel.dev/docs/en/next/babel-preset-env |
@babel/register | 7.13.16 | 7.15.3 | 7.15.3 | https://babel.dev/docs/en/next/babel-register |
@popperjs/core | 2.9.2 | 2.10.2 | 2.10.2 | https://github.com/popperjs/popper-core#readme |
eslint-plugin-import | 2.23.2 | 2.25.2 | 2.25.2 | https://github.com/import-js/eslint-plugin-import |
eslint-plugin-react | 7.23.2 | 7.26.1 | 7.26.1 | https://github.com/yannickcr/eslint-plugin-react |
glob | 7.1.7 | 7.2.0 | 7.2.0 | https://github.com/isaacs/node-glob#readme |
nightwatch | 1.6.4 | 1.7.11 | 1.7.11 | http://nightwatchjs.org |
prettier | 2.3.0 | 2.4.1 | 2.4.1 | https://prettier.io |
sortablejs | 1.13.0 | 1.14.0 | 1.14.0 | https://github.com/SortableJS/Sortable#readme |
terser | 5.7.0 | 5.9.0 | 5.9.0 | https://terser.org |
Patch
Package | Current | Wanted | Latest | URL |
---|---|---|---|---|
chalk | 4.1.1 | 4.1.2 | 4.1.2 | https://github.com/chalk/chalk#readme |
chokidar | 3.5.1 | 3.5.2 | 3.5.2 | https://github.com/paulmillr/chokidar |
eslint-plugin-yml | 0.10.0 | 0.10.1 | 0.10.1 | https://ota-meshi.github.io/eslint-plugin-yml/ |
js-cookie | 3.0.0-rc.0 | 3.0.0-rc.0 | 3.0.1 | https://github.com/js-cookie/js-cookie#readme |
tabbable | 5.2.0 | 5.2.1 | 5.2.1 | https://github.com/focus-trap/tabbable#readme |
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3246141
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
Comment #3
lauriiiComment #4
alexpottThis looks good. I've run the same update locally and got the same changes. I've scan reviewed the minified JS changes and there's things like:
becomes
Comment #5
catchBuild's failing on an Olivero test:
Comment #7
longwavePushed a fix.
I couldn't get the "link text" locator to work any more, so I used the ID instead as in the click test. I also added assertions that the element wasn't visible before moving.
The docs do say that "if an element is provided but no offset, the mouse will be moved to the center of the element", but this appears to no longer be true in the latest Nightwatch: https://nightwatchjs.org/api/moveToElement.html
Comment #8
longwaveActually, I guess "link text" isn't supposed to work on the button element, because it's a button and not a link.
Comment #9
alexpottThe test fixes look good to me.
Comment #10
init90Comment #12
catchCommitted b78a933 and pushed to 9.3.x. Thanks!