Problem/Motivation
A new major version of Leaflet module has been released recently with a variety of new features and backward compatibility with 2.2 branch. But when I try to upgrade:
$ composer require 'drupal/leaflet:^10.0' --no-install
./composer.json has been updated
Running composer update drupal/leaflet
Gathering patches for root package.
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires drupal/leaflet ^10.0, found drupal/leaflet[10.0.0] but these were not loaded, likely because it conflicts with another require.
Problem 2
- drupal/leaflet_layers is locked to version 1.1.1 and an update of this package was not requested.
- drupal/leaflet_layers 1.1.1 requires drupal/leaflet ^2.0 -> found drupal/leaflet[2.0.0, ..., 2.2.12] but it conflicts with your root composer.json require (^10.0).
Problem 3
- drupal/leaflet_more_maps is locked to version 2.1.2 and an update of this package was not requested.
- drupal/leaflet_more_maps 2.1.2 requires drupal/leaflet ^2.1.0 -> found drupal/leaflet[2.1.0, ..., 2.2.12] but it conflicts with your root composer.json require (^10.0).
Problem 4
- drupal/leaflet_more_markers is locked to version 1.1.1 and an update of this package was not requested.
- drupal/leaflet_more_markers 1.1.1 requires drupal/leaflet * -> found drupal/leaflet[1.0.0, ..., 1.46.0, 2.0.0, ..., 2.2.12, 10.0.0] but these were not loaded, likely because it conflicts with another require.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Steps to reproduce
Try to upgrade Leaflet to 10.0.0 with Leaflet Layers 1.1.1 installed
Proposed resolution
Make Leaflet Layers compatible with Leaflet ^10.0
Comments
Comment #2
itamair commentedPatch provided that makes this module compatible also with Leaflet ^10.0 ...
Should be committed asap in dev branch and deployed in a new release of this module.
Comment #3
itamair commentedComment #4
itamair commentedComment #5
_kom__ commentedComment #7
andeersg commentedVersion 1.1.2 is now out! Thanks for the patch :)