pqina / svelte-filepond

🔌 A handy FilePond adapter component for Svelte
MIT License
252 stars 10 forks source link

Svelte 5 Warning: `accessors` option has been deprecated #24

Open forna opened 6 months ago

forna commented 6 months ago

Now Svelte 5 is officially in Release Candidate stage.

svelte@5.0.0-next.115 produces the following warning: svelte-filepond/src/Component.svelte:1:16 e 'accessors' option has been deprecated. It will have no effect in runes mode

Beware the line in Component.svelte: <svelte:options accessors /> cannot simply be deleted, removing it will cause the component to stop working and produce errors like: getfiles is not a function

More info: https://svelte-5-preview.vercel.app/docs/breaking-changes#breaking-changes-in-runes-mode https://github.com/sveltejs/svelte/issues/9827

ZaxyxaZ commented 5 days ago

I have tested in Svelte4 compatibility mode and svelte-filepond does function as expected. But will need to get ported to Svelte5 eventually so that folks can use in native SvelteKit 5.