Updating the JS library using Composer

Created on 10 January 2025, 3 months ago

My composer.json currently uses...

"npm-asset/select2": "^4.0"

... to manage the Select2 JS library.

But I see that for D11 compatibility,
"...I needed to explicitly install the dev version of select2 from npm..."

How od I do that, when I go the the Select2 NPM page (https://www.npmjs.com/package/select2?activeTab=versions),

I can only see a 4.1.0-rc.0

Thank you

💬 Support request
Status

Active

Version

2.0

Component

Miscellaneous

Created by

🇬🇧United Kingdom SirClickALot Somerset

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

Comments & Activities

  • Issue created by @SirClickALot
  • 🇫🇮Finland Laurie Lim Helsinki

    4.1.0-rc.0 is working well for basic usage as a reference field widget on my D11 site. You can use it by running composer require npm-asset/select2:^4.1.0-rc.0.

  • 🇬🇧United Kingdom SirClickALot Somerset

    Thanks @laurielim

    Seems to work for me too.

    I'm still a little confused as to why the documentation points us to the GitHub DEV version but maybe it just needs updating.

Production build 0.71.5 2024