Problem/Motivation

Drupal 9.02
"drupal/flexslider": "^2.0"

Deprecation warning: require.woocommerce/FlexSlider is invalid, it should not contain uppercase characters. Please use woocommerce/flexslider instead. Make sure you fix this as Composer 2.0 will error.

Steps to reproduce

Add to composer.json

        {
            "type": "package",
            "package": {
                "name": "woocommerce/FlexSlider",
                "version": "2.7.2",
                "type": "drupal-library",
                "extra": {
                    "installer-name": "flexslider"
                },
                "dist": {
                    "url": "https://github.com/woocommerce/FlexSlider/zipball/master",
                    "type": "zip"
                }
            }
        }

and install

composer require woocommerce/flexslider

Using version ^2.7 for woocommerce/FlexSlider
./composer.json has been updated
Deprecation warning: require.woocommerce/FlexSlider is invalid, it should not contain uppercase characters. Please use woocommerce/flexslider instead. Make sure you fix this as Composer 2.0 will error.

Proposed resolution

better guide so all will work as expected

Changing to composer require woocommerce/flexslider

Remaining tasks

User interface changes

API changes

Data model changes

Comments

Rar9 created an issue. See original summary.

amaria’s picture

Not sure what version of the module you're using but the README was already changed to reflect the lowercase library name in both the require and the repository section. However, in the next commit I will change it from woothemes to woocommerce.

  • amaria committed e014590 on 8.x-2.x
    Issue #3162840: Change woothemes to woocommerce in composer instructions...
amaria’s picture

Status: Active » Closed (works as designed)
Rar9’s picture

Changes according to readme
but Composer 2.x still complains with d9.1

{
                "type": "package",
                "package": {
                  "name": "woocommerce/flexslider",
                  "version": "2.7.2",
                  "type": "drupal-library",
                  "source": {
                    "url": "https://github.com/woocommerce/FlexSlider.git",
                    "type": "git",
                    "reference": "2.7.2"
                  }
                }                
 },