v1.0.0
Breaking Changes
- Drop support for bundled ESM/UMD; code is only distributed as Svelte files
- Remove
IntersectionObserverPropsorEntryTypeScript interfaces fromIntersectionObserver.svelte.d.ts
Use the Svelte ComponentProps utility to extract component props.
import IntersectionObserver from "svelte-intersection-observer";
import type { ComponentProps } from "svelte";
type Props = ComponentProps<IntersectionObserver>;Fixes
elementandrootprop types should benull | HTMLElementto support TypeScript strict mode- Add
exportsfield topackage.json