task: #3635730 Update Node.js to >= 24.0 and Yarn to 4.18.1

Moves the Node.js pins on 1.0.x to 24, the floor Drupal core main declares in core/package.json. Node.js 20 reached end of life on 30 April 2026.

Issue: https://www.drupal.org/i/3635730

  • package.json: engines "node": ">= 24.0" and "yarn": ">= 4.18.1", packageManager yarn@4.18.1, with the Varbase .yarnrc.yml.
  • Dependency ranges use carets, ^MAJOR.MINOR.PATCH, as Drupal core's package.json does. No major changes.
  • CI: .gitlab-ci.yml NodeSource setup_24.x, YARN_ENABLE_IMMUTABLE_INSTALLS: "false", YARN_RC_FILENAME on .composer-base (every composer job, the opt-in variants included) and on stylelint, so Drupal core's own Yarn 4.9.1 no longer reads the project .yarnrc.yml.
  • DDEV: not present.
  • Upsun: not present.
  • Lockfiles are no longer committed: yarn.lock removed and ignored in .gitignore.
  • engines.yarn was >= 1.6; .yarn/ caches are now ignored.
  • Removing yarn.lock supersedes #3625890, which committed it.
  • CI: phpstan (next major) is advisory, like the composer and phpunit jobs of its lane. It needs composer (next major), which cannot resolve against Drupal core main-dev until the dependencies allow Drupal 12, and it inherited the blocking phpstan setting.

Checked in node:24 (v24.22.2) with no lockfile present: Yarn 4.18.1 install, ESLint and the test dry run (22 scenarios) pass. MR pipeline 1034126 is green. The advisory lanes under Remaining tasks still fail, as they do on 1.0.x today.

Remaining tasks

  • composer (next major) cannot resolve drupal/ai ^1 against Drupal core main-dev; 1.0.x fails the same way today (job), so phpunit and phpstan (next major) have no build. Not caused by this change.
  • phpunit (next minor) passes every test but exits 1 on deprecations from the contrib AI modules under core 11.x-dev; 1.0.x does the same today (job).

AI-Generated: Yes

Checkpoints:

  • File an issue
  • Addition/Change/Update/Fix
  • Testing to ensure no regression
  • Automated unit testing coverage
  • Automated functional testing coverage
  • UX/UI designer responsibilities
  • Readability
  • Accessibility
  • Performance
  • Security
  • Developer Documentation
  • User Guide Documentation
  • Reviewed by human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Release notes snippet
  • Release
Edited by Rajab Natshah

Merge request reports

Loading
Loading