Skip to content
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

fix!: Remove access to the svelte/internal API which is deprecated #330

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rgon
Copy link

@rgon rgon commented Sep 17, 2024

FIXES #235

Allows Svelte 5 compatibility.

BREAKING: removes support for the destroy() method on . Alternative: wrap the calendar in an {#if notDestroyed}{/if} block.

Gonzalo Ruiz added 2 commits September 18, 2024 01:18
…ed to be public.

Allows Svelte 5 compatibility.

BREAKING: remove support for the destroy() method on <Calendar />. Alternative: wrap the calendar in an {#if notDestroyed}<Calendar />{/if} block.
}

for (var name of events) {
target.addEventListener(name, handler);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend using Svelte's on method from svelte/events for this instead. Handles a few edge cases around event delegation which may or may not be relevant in this repo (I haven't checked)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Svelte 5 support
2 participants