hiqdev / asset-packagist

Asset Packagist
https://asset-packagist.org
BSD 3-Clause "New" or "Revised" License
247 stars 24 forks source link

Search page shows newer version than detail page #163

Open holtkamp opened 10 months ago

holtkamp commented 10 months ago

Might be related to https://github.com/hiqdev/asset-packagist/issues/156

When searching on https://asset-packagist.org for datatables.net-buttons-bs on "any" platform, the URL becomes https://asset-packagist.org/package/search?query=datatables.net-buttons-bs&platform=bower%2Cnpm which shows:

Screenshot 2023-11-02 at 12 39 41

As we can see for both NPM and Bower the most recent version is 2.4.2.

When visiting the detail pages, we can see the following versions:

A few weeks ago the Bower variant was still also at 2.4.2...

And when trying to install one of them, for NPM 2.3.6 is installed and for Bower version 2.3.5 is installed:

NPM

{
    "require": {
        "npm-asset/datatables.net-buttons-bs": "^2.0"
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ]
}

Bower:

{
    "require": {
        "bower-asset/datatables.net-buttons-bs": "^2.0"
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ]
}

What could be the cause of this difference in used versions?

When trying to force composer to download ^2.4, the following errors are generated:

NPM

    - Root composer.json requires npm-asset/datatables.net-buttons-bs ^2.4 -> satisfiable by npm-asset/datatables.net-buttons-bs[2.4.0, 2.4.1, 2.4.2].
    - npm-asset/datatables.net-buttons-bs[2.4.0, 2.4.1, 2.4.2] require npm-asset/datatables.net-buttons >=2.3.6 -> found npm-asset/datatables.net-buttons[dev-master, 1.0.3, 1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.7.0, 1.7.1, 2.0.0, 2.0.1, 2.0.2, 2.1.0, 2.1.1, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5] but it does not match the constraint.

Bower:

Problem 1
    - Root composer.json requires bower-asset/datatables.net-buttons-bs ^2.4, found bower-asset/datatables.net-buttons-bs[dev-master, 1.0.3, 1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.4.2, 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.7.0, 1.7.1, 2.0.0, 2.0.1, 2.0.2, 2.1.0, 2.1.1, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5] but it does not match the constraint.
SilverFire commented 10 months ago

Hi. Thanks for a report, I will check it out next week

FlorentTorregrosa commented 9 months ago

Hi,

I have the same problem for:

On Bower I obtain error on search page.

Sorry, there was an error while fetching repositories

So I guess the problem is from Bower than asset-packagist?

The problem is that not all bower packages have the NPM equivalent.

holtkamp commented 9 months ago

@FlorentTorregrosa thanks for the additional information!

On Bower I obtain error on search page.

Yeah, that error has been there for months. Strange thing: "this" error we describe now, seems to be something of the last weeks... Maybe Bower's API has also shut down by now?

acoesgarantem commented 9 months ago

Hi there,

I have the same issue here, on asset-packagist.org is listing bower-asset/jquery 3.7.1 as last version.

But when we check the download page it's only available 3.6.4. It's breaking my Yii update. Can you check it please?

https://asset-packagist.org/package/bower-asset/jquery

Thanks.

r-simlinger commented 8 months ago

Is there any update on this issue?

PlDevrie commented 1 month ago

I had a related issue on this page: https://asset-packagist.org/package/bower-asset/bootstrap

today newest version is v5.3.3 yesterday it was v5.3.0-alpha1

I noticed it after a composer update, which downgraded 5.3.3 to 5.2.3, because 5.3.3 didn't seem to exist anymore.