@@ -5,90 +5,102 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
8
+ ## [ 1.0.0] ( https://github.com/metonym/svelte-intersection-observer/releases/tag/v1.0.0 ) - 2024-01-01
9
+
10
+ ** Breaking Changes**
11
+
12
+ - Remove ` IntersectionObserverProps ` or ` Entry ` TypeScript interfaces from ` IntersectionObserver.svelte.d.ts `
13
+ - Drop support for bundled ESM/UMD; code is only distributed as Svelte files
14
+
15
+ ** Fixes**
16
+
17
+ - ` element ` and ` root ` prop types should be ` null | HTMLElement ` to support TypeScript strict mode
18
+ - Add ` exports ` field to ` package.json `
19
+
8
20
## [ 0.10.2] ( https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.10.2 ) - 2024-01-01
9
21
10
22
** Fixes**
11
23
12
- - add ` exports ` field to ` package.json `
24
+ - Add ` exports ` field to ` package.json `
13
25
14
26
## [ 0.10.1] ( https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.10.1 ) - 2023-07-20
15
27
16
28
** Fixes**
17
29
18
- - fix ` threshold ` prop type to be ` number | number[] `
30
+ - Fix ` threshold ` prop type to be ` number | number[] `
19
31
20
32
## [ 0.10.0] ( https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.10.0 ) - 2021-12-29
21
33
22
34
** Features**
23
35
24
- - mark ` observer ` for garbage collection after disconnecting
36
+ - Mark ` observer ` for garbage collection after disconnecting
25
37
26
38
** Documentation**
27
39
28
- - make prop descriptions consistent with docs
40
+ - Make prop descriptions consistent with docs
29
41
30
42
** Refactoring**
31
43
32
- - omit redundant ` null ` from ` element ` and ` root ` types as ` HTMLElement ` is already nullable
44
+ - Omit redundant ` null ` from ` element ` and ` root ` types as ` HTMLElement ` is already nullable
33
45
34
46
## [ 0.9.2] ( https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.9.2 ) - 2021-11-26
35
47
36
48
** Documentation**
37
49
38
- - add ` let: ` directive example
39
- - update component prop descriptions
40
- - use Svelte syntax highlighting for ` on:observe ` , ` on:intersect ` examples
50
+ - Add ` let: ` directive example
51
+ - Update component prop descriptions
52
+ - Use Svelte syntax highlighting for ` on:observe ` , ` on:intersect ` examples
41
53
42
54
## [ 0.9.1] ( https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.9.1 ) - 2021-10-25
43
55
44
56
** Documentation**
45
57
46
- - update the "Once" example to include the ` "svelte-intersection-observer" ` import
47
- - rename example ` svite ` to ` vite `
58
+ - Update the "Once" example to include the ` "svelte-intersection-observer" ` import
59
+ - Rename example ` svite ` to ` vite `
48
60
49
61
** Refactoring**
50
62
51
- - inline ` entry ` prop typedef
52
- - remove ` @event ` , ` @slot ` artifacts used by sveld to generate initial TypeScript definitions
63
+ - Inline ` entry ` prop typedef
64
+ - Remove ` @event ` , ` @slot ` artifacts used by sveld to generate initial TypeScript definitions
53
65
54
66
## [ 0.9.0] ( https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.9.0 ) - 2021-10-05
55
67
56
- - improve TypeScript definitions for dispatched events
68
+ - Improve TypeScript definitions for dispatched events
57
69
- ` on:observe ` : ` event.detail.isIntersecting ` is a ` boolean `
58
70
- ` on:intersect ` : ` event.detail.isIntersecting ` can only be ` true `
59
71
60
72
## [ 0.8.0] ( https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.8.0 ) - 2021-09-02
61
73
62
- - use ` .svelte.d.ts ` extension for component TypeScript definition
74
+ - Use ` .svelte.d.ts ` extension for component TypeScript definition
63
75
64
76
## [ 0.7.1] ( https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.7.1 ) - 2021-07-05
65
77
66
78
** Documentation**
67
79
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
80
+ - Add description for basic usage
81
+ - Add ` on:observe ` example
82
+ - Explain difference between ` on:observe ` and ` on:intersect `
83
+ - Document ` IntersectionObserverEntry ` interface
84
+ - Re -order prop table so that ` once ` and ` intersecting ` are more prominent
73
85
74
86
## [ 0.7.0] ( https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.7.0 ) - 2021-04-23
75
87
76
88
** Features**
77
89
78
- - re -initialize observer if ` rootMargin ` changes
90
+ - Re -initialize observer if ` rootMargin ` changes
79
91
80
92
## [ 0.6.1] ( https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.6.1 ) - 2021-04-03
81
93
82
94
** Fixes**
83
95
84
- - move intersection observer instantiation to ` onMount ` to work in hydration use cases
96
+ - Move intersection observer instantiation to ` onMount ` to work in hydration use cases
85
97
86
98
## [ 0.6.0] ( https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.6.0 ) - 2021-02-24
87
99
88
100
** Features**
89
101
90
- - export ` observer ` prop (type ` IntersectionObserver ` )
91
- - dispatch "intersect" event if the observed element ` isIntersecting ` the viewport
102
+ - Export ` observer ` prop (type ` IntersectionObserver ` )
103
+ - Dispatch "intersect" event if the observed element ` isIntersecting ` the viewport
92
104
93
105
## [ 0.5.0] ( https://github.com/metonym/svelte-intersection-observer/releases/tag/v0.5.0 ) - 2021-01-20
94
106
0 commit comments