Drupal 9 and 10 compatible release?

Created on 6 July 2023, over 1 year ago

Problem/Motivation

There is currently no version of this module that is compatible with both Drupal 9 and Drupal 10, which complicates the update process for sites. A best practice is to have at least a branch that is compatible with the last minor version of one major version (e.g. 9.5) and the first (few) minor version of the next major (e.g. 10.0).

The PHP version requirement situation makes things a little more complicated, but I'd expect that to be harder to circumvent. Ideally, though, 4.0 would also work with PHP 7.4.

Proposed resolution

Either:

  • make 4.0 compatible with Drupal 10 in addition to D9

or

  • document on the project page why this is not possible, e.g. with a link to a (this?) issue

Remaining tasks

TBD

User interface changes

None?

API changes

None?

Data model changes

None?

Feature request
Status

Closed: works as designed

Version

4.0

Component

Code

Created by

🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

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

Comments & Activities

  • Issue created by @eelkeblok
  • 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱
  • Status changed to Closed: works as designed over 1 year ago
  • 🇦🇺Australia dpi Perth, Australia

    Version 4 is quite a departure from previous versions, hence the major version.

    4.0 supports D9, 4.1 supports D10 and later.

    Since its the same major version, they are compatible with each other API/config wise, except for deprecations, etc.

    Steps:

    - While on D9, Update your constraints to support ^4. Get your D9 project working with 4.0 first.
    - When you do your Drupal 10 update, simply add auditfiles to the update list, as in `composer update drupal/core drupal/auditfiles -W ...etc`. Depending on the command used you may just get the upgrade without explicitly specifying auditfiles.

    Actually, I just realised the situation is even worse because 4.0 does not support PHP 8.

    This is incorrect.

  • 🇦🇺Australia dpi Perth, Australia

    The project page also already summarises most of this.

  • 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

    Yes, the PHP version was a mistake, I corrected that.

    OK. This is a shame. The project page doesn't document why it is not possible to have a release that is compatible with D9 and D10 at the same time. I already have three modules in this project that need to be updated at the same time as Drupal itself. The other two seem to have a hard technical restriction why it is impossible to have a release that is compatible to both D9 and D10.

  • 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱

    Made a wrong edit concerning PHP versions, I failed to realise the quoted PHP versions are minimal versions.

Production build 0.71.5 2024