Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svelte-intersection-observer

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-intersection-observer - npm Package Versions

2

1.0.0

Diff

Changelog

Source

1.0.0 - 2024-01-01

Breaking Changes

  • Remove IntersectionObserverProps or Entry TypeScript interfaces from IntersectionObserver.svelte.d.ts
  • Drop support for bundled ESM/UMD; code is only distributed as Svelte files

Fixes

  • element and root prop types should be null | HTMLElement to support TypeScript strict mode
  • Add exports field to package.json
metonym
published 0.10.2 •

Changelog

Source

0.10.2 - 2024-01-01

Fixes

  • Add exports field to package.json
metonym
published 0.10.1 •

Changelog

Source

0.10.1 - 2023-07-20

Fixes

  • Fix threshold prop type to be number | number[]
metonym
published 0.10.0 •

Changelog

Source

0.10.0 - 2021-12-29

Features

  • Mark observer for garbage collection after disconnecting

Documentation

  • Make prop descriptions consistent with docs

Refactoring

  • Omit redundant null from element and root types as HTMLElement is already nullable
metonym
published 0.9.2 •

Changelog

Source

0.9.2 - 2021-11-26

Documentation

  • Add let: directive example
  • Update component prop descriptions
  • Use Svelte syntax highlighting for on:observe, on:intersect examples
metonym
published 0.9.1 •

Changelog

Source

0.9.1 - 2021-10-25

Documentation

  • Update the "Once" example to include the "svelte-intersection-observer" import
  • Rename example svite to vite

Refactoring

  • Inline entry prop typedef
  • Remove @event, @slot artifacts used by sveld to generate initial TypeScript definitions
metonym
published 0.9.0 •

Changelog

Source

0.9.0 - 2021-10-05

  • Improve TypeScript definitions for dispatched events
    • on:observe: event.detail.isIntersecting is a boolean
    • on:intersect: event.detail.isIntersecting can only be true
metonym
published 0.8.0 •

Changelog

Source

0.8.0 - 2021-09-02

  • Use .svelte.d.ts extension for component TypeScript definition
metonym
published 0.7.1 •

Changelog

Source

0.7.1 - 2021-07-05

Documentation

  • Add description for basic usage
  • Add on:observe example
  • Explain difference between on:observe and on:intersect
  • Document IntersectionObserverEntry interface
  • Re-order prop table so that once and intersecting are more prominent
metonym
published 0.7.0 •

Changelog

Source

0.7.0 - 2021-04-23

Features

  • Re-initialize observer if rootMargin changes
2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc