svelte-intersection-observer 0.10.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +102 -40
- package/package.json +23 -43
- package/src/IntersectionObserver.svelte +10 -7
- package/src/IntersectionObserver.svelte.d.ts +79 -0
- package/src/MultipleIntersectionObserver.svelte +137 -0
- package/src/MultipleIntersectionObserver.svelte.d.ts +82 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -3
- package/CHANGELOG.md +0 -124
- package/lib/index.js +0 -720
- package/lib/index.mjs +0 -712
- package/types/IntersectionObserver.svelte.d.ts +0 -84
- package/types/index.d.ts +0 -1
package/CHANGELOG.md
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [0.10.2](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.10.2) - 2023-07-20
|
|
9
|
-
|
|
10
|
-
**Fixes**
|
|
11
|
-
|
|
12
|
-
- add `exports` field to `package.json`
|
|
13
|
-
|
|
14
|
-
## [0.10.1](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.10.1) - 2023-07-20
|
|
15
|
-
|
|
16
|
-
**Fixes**
|
|
17
|
-
|
|
18
|
-
- fix `threshold` prop type to be `number | number[]`
|
|
19
|
-
|
|
20
|
-
## [0.10.0](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.10.0) - 2021-12-29
|
|
21
|
-
|
|
22
|
-
**Features**
|
|
23
|
-
|
|
24
|
-
- mark `observer` for garbage collection after disconnecting
|
|
25
|
-
|
|
26
|
-
**Documentation**
|
|
27
|
-
|
|
28
|
-
- make prop descriptions consistent with docs
|
|
29
|
-
|
|
30
|
-
**Refactoring**
|
|
31
|
-
|
|
32
|
-
- omit redundant `null` from `element` and `root` types as `HTMLElement` is already nullable
|
|
33
|
-
|
|
34
|
-
## [0.9.2](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.9.2) - 2021-11-26
|
|
35
|
-
|
|
36
|
-
**Documentation**
|
|
37
|
-
|
|
38
|
-
- add `let:` directive example
|
|
39
|
-
- update component prop descriptions
|
|
40
|
-
- use Svelte syntax highlighting for `on:observe`, `on:intersect` examples
|
|
41
|
-
|
|
42
|
-
## [0.9.1](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.9.1) - 2021-10-25
|
|
43
|
-
|
|
44
|
-
**Documentation**
|
|
45
|
-
|
|
46
|
-
- update the "Once" example to include the `"svelte-intersection-observer"` import
|
|
47
|
-
- rename example `svite` to `vite`
|
|
48
|
-
|
|
49
|
-
**Refactoring**
|
|
50
|
-
|
|
51
|
-
- inline `entry` prop typedef
|
|
52
|
-
- remove `@event`, `@slot` artifacts used by sveld to generate initial TypeScript definitions
|
|
53
|
-
|
|
54
|
-
## [0.9.0](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.9.0) - 2021-10-05
|
|
55
|
-
|
|
56
|
-
- improve TypeScript definitions for dispatched events
|
|
57
|
-
- `on:observe`: `event.detail.isIntersecting` is a `boolean`
|
|
58
|
-
- `on:intersect`: `event.detail.isIntersecting` can only be `true`
|
|
59
|
-
|
|
60
|
-
## [0.8.0](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.8.0) - 2021-09-02
|
|
61
|
-
|
|
62
|
-
- use `.svelte.d.ts` extension for component TypeScript definition
|
|
63
|
-
|
|
64
|
-
## [0.7.1](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.7.1) - 2021-07-05
|
|
65
|
-
|
|
66
|
-
**Documentation**
|
|
67
|
-
|
|
68
|
-
- add description for basic usage
|
|
69
|
-
- add `on:observe` example
|
|
70
|
-
- explain difference between `on:observe` and `on:intersect`
|
|
71
|
-
- document `IntersectionObserverEntry` interface
|
|
72
|
-
- re-order prop table so that `once` and `intersecting` are more prominent
|
|
73
|
-
|
|
74
|
-
## [0.7.0](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.7.0) - 2021-04-23
|
|
75
|
-
|
|
76
|
-
**Features**
|
|
77
|
-
|
|
78
|
-
- re-initialize observer if `rootMargin` changes
|
|
79
|
-
|
|
80
|
-
## [0.6.1](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.6.1) - 2021-04-03
|
|
81
|
-
|
|
82
|
-
**Fixes**
|
|
83
|
-
|
|
84
|
-
- move intersection observer instantiation to `onMount` to work in hydration use cases
|
|
85
|
-
|
|
86
|
-
## [0.6.0](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.6.0) - 2021-02-24
|
|
87
|
-
|
|
88
|
-
**Features**
|
|
89
|
-
|
|
90
|
-
- export `observer` prop (type `IntersectionObserver`)
|
|
91
|
-
- dispatch "intersect" event if the observed element `isIntersecting` the viewport
|
|
92
|
-
|
|
93
|
-
## [0.5.0](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.5.0) - 2021-01-20
|
|
94
|
-
|
|
95
|
-
**Features**
|
|
96
|
-
|
|
97
|
-
- Add support for Server-Side Rendering (SSR)
|
|
98
|
-
|
|
99
|
-
## [0.4.0](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.4.0) - 2020-12-20
|
|
100
|
-
|
|
101
|
-
**Features**
|
|
102
|
-
|
|
103
|
-
- Export `intersecting` prop
|
|
104
|
-
|
|
105
|
-
**Fixes**
|
|
106
|
-
|
|
107
|
-
- Remove observer from module context to allow multiple component instantiations
|
|
108
|
-
- Fix prop type for `entry`
|
|
109
|
-
|
|
110
|
-
## [0.3.0](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.3.0) - 2020-11-23
|
|
111
|
-
|
|
112
|
-
- Export `entry` as a reactive prop
|
|
113
|
-
|
|
114
|
-
## [0.2.0](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.2.0) - 2020-11-18
|
|
115
|
-
|
|
116
|
-
- Add TypeScript definitions
|
|
117
|
-
|
|
118
|
-
## [0.1.1](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.1.1) - 2020-04-05
|
|
119
|
-
|
|
120
|
-
- Only `disconnect` observer in `onDestroy` lifecycle method
|
|
121
|
-
|
|
122
|
-
## [0.1.0](https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.1.0) - 2020-04-05
|
|
123
|
-
|
|
124
|
-
- Initial release
|