Breaking Changes
- Drop support for bundled ESM/UMD; code is only distributed as Svelte files
- Remove
IntersectionObserverProps
orEntry
TypeScript 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
element
androot
prop types should benull | HTMLElement
to support TypeScript strict mode- Add
exports
field topackage.json