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 Compare versions

Comparing version 0.9.0 to 0.9.1

12

CHANGELOG.md

@@ -8,2 +8,14 @@ # Changelog

## [0.9.1](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.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
## [0.9.0](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.9.0) - 2021-10-05

@@ -10,0 +22,0 @@

2

lib/index.js

@@ -337,3 +337,3 @@ (function (global, factory) {

/* src/IntersectionObserver.svelte generated by Svelte v3.43.0 */
/* src/IntersectionObserver.svelte generated by Svelte v3.44.0 */

@@ -340,0 +340,0 @@ const get_default_slot_changes = dirty => ({

{
"name": "svelte-intersection-observer",
"version": "0.9.0",
"version": "0.9.1",
"license": "MIT",

@@ -22,5 +22,5 @@ "description": "Detect if an element is in the viewport using the Intersection Observer API",

"prettier-plugin-svelte": "^2.4.0",
"svelte": "^3.43.0",
"svelte-check": "^2.2.6",
"svelte-readme": "^3.3.1"
"svelte": "^3.44.0",
"svelte-check": "^2.2.7",
"svelte-readme": "^3.4.1"
},

@@ -27,0 +27,0 @@ "repository": {

@@ -58,3 +58,5 @@ # svelte-intersection-observer

<script>
let element2;
import IntersectionObserver from "svelte-intersection-observer";
let elementOnce;
let intersectOnce;

@@ -67,4 +69,8 @@ </script>

<IntersectionObserver once element={element2} bind:intersecting={intersectOnce}>
<div bind:this={element2}>Hello world</div>
<IntersectionObserver
once
element={elementOnce}
bind:intersecting={intersectOnce}
>
<div bind:this={elementOnce}>Hello world</div>
</IntersectionObserver>

@@ -181,3 +187,3 @@ ```

- [examples/sveltekit](examples/sveltekit)
- [examples/svite](examples/svite)
- [examples/vite](examples/vite)
- [examples/sapper](examples/sapper)

@@ -184,0 +190,0 @@ - [examples/snowpack](examples/snowpack)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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