Compatibility for Drupal 11

Created on 23 January 2025, 4 days ago

Problem/Motivation

The insert_view module currently supports Drupal versions 8, 9, and 10, as specified in its composer.json file:

"drupal/core": "^8.8 || ^9 || ^10"

However, this constraint causes a conflict when attempting to install the module on Drupal 11 (^11.1), preventing its use in sites running the latest Drupal version.

This issue impacts:

  • Drupal 11 site maintainers who rely on the insert_view module.
  • Projects planning to upgrade to Drupal 11 that use this module.

Steps to reproduce

  1. Create a Drupal 11 site (^11.1) using Composer:
    composer create-project drupal/recommended-project:11.x my_site
  2. Try to install the insert_view module via Composer:
    composer require drupal/insert_view
  3. Observe the following error:
    Problem 1
    - Root composer.json requires drupal/insert_view ^2.1 -> satisfiable by drupal/insert_view[2.1.0].
    - drupal/insert_view 2.1.0 requires drupal/core ^8.8 || ^9 || ^10 -> found drupal/core[11.x] but it conflicts with your root composer.json require (^11.1).
            

Proposed resolution

Update the composer.json file for the insert_view module to include support for Drupal 11. The require constraint should be modified as follows:

"drupal/core": "^8.8 || ^9 || ^10 || ^11"

This change will:

  • Allow the module to work seamlessly with Drupal 11.
  • Maintain compatibility with Drupal 8, 9, and 10 for backward support.

Additionally:

  • Perform testing to ensure the module functions correctly in a Drupal 11 environment.

Remaining tasks

  • Update the composer.json file with the revised version constraint.
  • Test the module in a Drupal 11 environment for compatibility.
  • Review and merge the change.
  • Release a new version (e.g., 2.1.1 or 2.2.0) with Drupal 11 support.

User interface changes

No user interface changes are anticipated.

API changes

No API changes are expected.

Data model changes

No changes to the data model are required.

💬 Support request
Status

Active

Version

2.1

Component

Code

Created by

🇮🇳India anandaakrishnan g a Coimbatore

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024