BerkinAKKAYA / svelte-image-gallery

A Masonry-Like Image Container for Svelte
https://madewithsvelte.com/svelte-image-gallery
52 stars 13 forks source link

feat: Removed deprecated events #15

Closed Relepega closed 1 month ago

Relepega commented 5 months ago

This addresses the deprecation of the DOMNodeInserted and DOMNodeRemoved. This also add types to variables.

Deprecated events: https://w3c.github.io/uievents/#legacy-event-types

Error: [Deprecation] Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.

lritter79 commented 3 months ago

Bumping to get this merged

pernydev commented 1 month ago

LGTM!