Provide support for jQuery UI Datepicker 2.0

Created on 29 August 2023, about 1 year ago

Problem/Motivation

Better Exposed Filters requires jQuery UI Datepicker 2.0 to be compatible with Drupal 10 (BEF 6.x), so without this compatibility you cannot install Jquery UI Date Range Picker on Drupal 10.

Steps to reproduce

Try to install this module on Drupal 10 and you will have this error :

$ composer require 'drupal/daterangepicker:^1.0@alpha'
Info from https://repo.packagist.org: #StandWithUkraine
./composer.json has been updated
Running composer update drupal/daterangepicker
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires drupal/daterangepicker ^1.0@alpha -> satisfiable by drupal/daterangepicker[1.0.0-alpha0].
    - drupal/daterangepicker 1.0.0-alpha0 requires drupal/jquery_ui_datepicker ^1.4 -> found drupal/jquery_ui_datepicker[1.4.0] but the package is fixed to 2.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Proposed resolution

Update composer.json to allow the ^2.0 branch.

Remaining tasks

Test if nothing is broken.

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇫🇷France tostinni

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

Comments & Activities

  • Issue created by @tostinni
  • @tostinni opened merge request.
  • Status changed to Needs review about 1 year ago
  • 🇫🇷France tostinni

    Adding MR for this code.

    For those interesting to test it you need to change your composer.json repositories section like this:

        "repositories": [
          {
              "type": "git",
              "url": "https://git.drupalcode.org/issue/daterangepicker-3383923.git"
          },
          {
              "type": "composer",
              "url": "https://packages.drupal.org/8",
              "exclude": ["drupal/daterangepicker"]
          }
        ],
    

    And then launch composer require drupal/daterangepicker:dev-3383923-jquery-ui-datepicker-2.0

Production build 0.71.5 2024