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

_kom__ created an issue. See original summary.

itamair’s picture

Patch 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.

itamair’s picture

Priority: Normal » Critical
itamair’s picture

Status: Needs review » Reviewed & tested by the community
_kom__’s picture

Issue summary: View changes

  • andeersg committed 3536947 on 1.1.x
    Issue #3323634 by itamair: Compatability with new Leaflet version
    
andeersg’s picture

Status: Reviewed & tested by the community » Fixed

Version 1.1.2 is now out! Thanks for the patch :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.