Allow drupal/typed_data version 2 in module dependencies

Created on 17 June 2025, 4 months ago

Problem/Motivation

The drupal/pardot module currently requires drupal/typed_data using the constraint ^1.0@beta. However, version 2.x of typed_data is now available and stable. This strict version constraint prevents the use of typed_data v2 alongside other modules that require or prefer the newer version.

Steps to reproduce

  1. Install a Drupal project that uses the drupal/pardot module.
  2. Attempt to require drupal/typed_data:^2.0.
  3. Composer will report a conflict due to incompatible version constraints.

Proposed resolution

Update the composer.json in drupal/pardot to allow both version 1.x and 2.x of typed_data by changing:

"drupal/typed_data": "^1.0@beta"

to:

"drupal/typed_data": "^1.0 || ^2.0"

This change will maintain compatibility with version 1.x while also supporting newer projects using version 2.x of the dependency.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France iheb.attia

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