-
-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat]: Adding updated onemblaInit
naming for Svelte 5
#992
Conversation
Hi @S1r-Lanzelot, Thanks for your contribution 👍. I think this is a great initiative.
Good thinking. Even though it's deprecated, Have you tested the carousel with Svelte 5? Does it work? If yes, I think we can include this in your PR: Would you mind adding that to this PR? Cheers! |
Yes I am using it now but to be honest not all the features. Nevertheless, since we are only concerned about Let me bang on my use for another day and then I expand the peer dep in the PR 👍
|
@S1r-Lanzelot one thought. Should we make it lowercase for Svelte 5? Like so:
@S1r-Lanzelot thanks. The admonition with the backward compatibility is a great idea I think 👍. There are additional Methods
Events
Plugins
Thanks for your efforts! |
@davidjerleke - thanks for pointing out the additional references in the docs, I'll get these.
It's a good question, especially now that However, I vote to leave it only because of the other changes I think it would require since events are case sensitive and a change would require an update here I believe. Although to be honest the change is quite minimal with simply dispatching two events instead of one (as to not introduce a breaking change), but not sure it's worth it in the end... Let me know your thoughts, thanks. |
@S1r-Lanzelot good point 👍. Of course, that's a breaking change so we need to wait until the next major release. I've added the task to the roadmap so we don't forget about it: Left to do
|
@davidjerleke thanks for all the feedback! Let me know if it needs anymore tweaking but I think we're good to go. |
@S1r-Lanzelot one last question: Do you know if this |
No it won't unfortunately, it will still require an override in people's reference until Svelte 5 is officially released, Flowbite svelte does a similar approach and if people want to be on the bleeding edge then they can just override.
|
@S1r-Lanzelot thanks for your contributions! We're good to go then 👍. |
Sweet - thanks for the library! |
onemblaInit
naming for Svelte 5
[Feat]: Adding updated `onemblaInit` naming for Svelte 5
[Feat]: Adding updated `onemblaInit` naming for Svelte 5
@S1r-Lanzelot I just released Svelte 5 support along with the documentation changes in v8.3.0. Thanks for your efforts 🎉! |
Per the new naming conventions of event handlers: https://svelte-5-preview.vercel.app/docs/event-handlers
This is necessary due to deprecation moving forward and because
Mixing old and new syntaxes for event handling is not allowed. (mixed_event_handler_syntaxes)
sveltejs/svelte#11295leaving
on:emblaInit
because it will be backward compatible.Thanks