stimulus-flatpickr icon indicating copy to clipboard operation
stimulus-flatpickr copied to clipboard

Upgrade Stimulus dependency to @hotwired/stimulus

Open duyanton opened this issue 3 years ago • 6 comments

Stimulus has changed their package to @hotwired/stimulus instead of stimulus. Newer project which uses latest Stimulus version will not be able to trigger stimulus-flatpickr controller due to missing global Stimulus instance.

This PR update the dependency and its references.

All tests have passed ✅

duyanton avatar Dec 17 '21 04:12 duyanton

Using this fork while the waiting continues.

miko-morphosis avatar Jan 11 '22 07:01 miko-morphosis

actually the published 3.0 version on npm already is compatible with hotwired. I realized I forgot to merge the Stimulsu 3 branch to master and released to official (non beta version)

https://www.npmjs.com/package/stimulus-flatpickr/v/3.0.0-0

Will do this promptly

adrienpoly avatar Jan 11 '22 16:01 adrienpoly

Oh I didn't aware of that branch. Seems like v3.0 is not published on NPM yet, running yarn add stimulus-flatpickr will pick up v1.4.0 though.

Please proceed, thank you 🙏 .

duyanton avatar Jan 12 '22 01:01 duyanton

yarn add stimulus-flatpickr@beta should pick 3.0 will try to publish the official 3.0 today

adrienpoly avatar Jan 12 '22 11:01 adrienpoly

3.0.0-0 seems to be working fine, are there any updates on when this might get published?

apphancer avatar Nov 11 '22 11:11 apphancer

3.0.0-0 is working great. Did a bin/importmap pin stimulus-flatpickr@beta.

minimul avatar Jan 16 '23 18:01 minimul