svelte-intersection-observer
Advanced tools
Comparing version 0.9.0 to 0.9.1
@@ -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 @@ |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46447
207