All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.1.1 - 2026-01-19
Fixes
- Re-publish to include types
1.1.0 - 2026-01-19
Features
- Add
MultipleIntersectionObservercomponent
1.0.0 - 2024-01-01
Breaking Changes
- Remove
IntersectionObserverPropsorEntryTypeScript interfaces fromIntersectionObserver.svelte.d.ts - Drop support for bundled ESM/UMD; code is only distributed as Svelte files
Fixes
elementandrootprop types should benull | HTMLElementto support TypeScript strict mode- Add
exportsfield topackage.json
0.10.2 - 2024-01-01
Fixes
- Add
exportsfield topackage.json
0.10.1 - 2023-07-20
Fixes
- Fix
thresholdprop type to benumber | number[]
0.10.0 - 2021-12-29
Features
- Mark
observerfor garbage collection after disconnecting
Documentation
- Make prop descriptions consistent with docs
Refactoring
- Omit redundant
nullfromelementandroottypes asHTMLElementis already nullable
0.9.2 - 2021-11-26
Documentation
- Add
let:directive example - Update component prop descriptions
- Use Svelte syntax highlighting for
on:observe,on:intersectexamples
0.9.1 - 2021-10-25
Documentation
- Update the "Once" example to include the
"svelte-intersection-observer"import - Rename example
svitetovite
Refactoring
- Inline
entryprop typedef - Remove
@event,@slotartifacts used by sveld to generate initial TypeScript definitions
0.9.0 - 2021-10-05
- Improve TypeScript definitions for dispatched events
on:observe:event.detail.isIntersectingis abooleanon:intersect:event.detail.isIntersectingcan only betrue
0.8.0 - 2021-09-02
- Use
.svelte.d.tsextension for component TypeScript definition
0.7.1 - 2021-07-05
Documentation
- Add description for basic usage
- Add
on:observeexample - Explain difference between
on:observeandon:intersect - Document
IntersectionObserverEntryinterface - Re-order prop table so that
onceandintersectingare more prominent
0.7.0 - 2021-04-23
Features
- Re-initialize observer if
rootMarginchanges
0.6.1 - 2021-04-03
Fixes
- Move intersection observer instantiation to
onMountto work in hydration use cases
0.6.0 - 2021-02-24
Features
- Export
observerprop (typeIntersectionObserver) - Dispatch "intersect" event if the observed element
isIntersectingthe viewport
0.5.0 - 2021-01-20
Features
- Add support for Server-Side Rendering (SSR)
0.4.0 - 2020-12-20
Features
- Export
intersectingprop
Fixes
- Remove observer from module context to allow multiple component instantiations
- Fix prop type for
entry
0.3.0 - 2020-11-23
- Export
entryas a reactive prop
0.2.0 - 2020-11-18
- Add TypeScript definitions
0.1.1 - 2020-04-05
- Only
disconnectobserver inonDestroylifecycle method
0.1.0 - 2020-04-05
- Initial release