Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@metonym metonym released this 01 Jan 22:58
· 19 commits to master since this release

Breaking Changes

  • Drop support for bundled ESM/UMD; code is only distributed as Svelte files
  • Remove IntersectionObserverProps or Entry TypeScript interfaces from IntersectionObserver.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 and root prop types should be null | HTMLElement to support TypeScript strict mode
  • Add exports field to package.json