Add support for 9.5 to Drupal 10 module versions - to ease migration prep

Created on 24 July 2023, over 1 year ago

Problem/Motivation

It is difficult to prepare for migration when releases only support a single Drupal version (10 as opposed to 9 || 10). I am prepping to migrate our sites to Drupal 9 from Drupal 10 and I am using Composer and the handy Upgrade Status module.

Most modules have versions that support both 9 and 10. This allows one to update a module before you cut over to Drupal 10 (and check ones status and progress with the Upgrade Status module).

I can't do that here because the versions support is singular. I'd have to wait until I start actually update the version of Drupal to 10 in Composer. Given that I have at least one other module dependent on this one, this is just going to make the upgrade process all the more messier.

Proposed resolution

Given that 9.5 is considered to be the same as 10 (or such my understanding of the Drupal upgrade process), would it be possible to at least make the 3.0+ versions support 9.5 and 10?

✨ Feature request
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States adriancotter

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

Comments & Activities

  • Issue created by @adriancotter
  • Status changed to Closed: works as designed over 1 year ago
  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    We can't sorry, there is a hard break in the API of normalizers between 9 and 10.

    Supporting both branches isn't possible.

    My suggestion would be to use the --no-update flag with composer.

    My workflow for updating to Drupal 10:

    composer why-not drupal/core ~10 -t
    

    This lists out all the things that aren't compatible.

    For each one, check if there's a new major version.

    If there is (e.g. for DER)

    composer require drupal/dynamic_entity_reference:~3 --no-update
    

    Rinse and repeat for all modules that need a major version bump.

    Finally

    composer require drupal/core-dev:~10 --dev --no-update
    composer require drupal/core:~10 -W
    

    Sub out drupal/core for drupal/core-recommended if you're using that.

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

    Thanks for explanation and suggestions @larowlan

Production build 0.71.5 2024