You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Configuration changes
* Add .js extension to all imports
* Fix rollup config
* Fix mistake
* Switch from Jest to Vitest for ESM compatibility
* tweak
* Bump version to 3.3.0
Copy file name to clipboardExpand all lines: CHANGELOG.md
+18-26
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,9 @@
1
+
## 3.3.0
2
+
3
+
### Features
4
+
5
+
- The library is now compatible with TypeScript's `"moduleResolution": "nodenext"` compiler option. (#187)
6
+
1
7
## 3.2.1
2
8
3
9
### Bug Fixes
@@ -12,8 +18,7 @@
12
18
13
19
### Features
14
20
15
-
- The skeleton animation no longer plays for users who have enabled the
16
-
`prefers-reduced-motion` accessibility setting.
21
+
- The skeleton animation no longer plays for users who have enabled the `prefers-reduced-motion` accessibility setting.
17
22
18
23
### Thanks!
19
24
@@ -23,8 +28,7 @@
23
28
24
29
### Chores
25
30
26
-
- Add the `'use client'` directive to make the library compatible with React
27
-
Server Components and Next.js 13. (#162)
31
+
- Add the `'use client'` directive to make the library compatible with React Server Components and Next.js 13. (#162)
28
32
29
33
### Thanks!
30
34
@@ -34,8 +38,7 @@
34
38
35
39
### Features
36
40
37
-
- If `count` is set to a decimal number like 3.5, the component will display 3
38
-
full-width skeletons followed by 1 half-width skeleton. (#136)
41
+
- If `count` is set to a decimal number like 3.5, the component will display 3 full-width skeletons followed by 1 half-width skeleton. (#136)
39
42
40
43
## 3.0.3
41
44
@@ -53,10 +56,7 @@
53
56
54
57
- Fix explicitly setting a `Skeleton` prop to undefined, like `<Skeleton highlightColor={undefined}>`, blocking style options from the `SkeletonTheme`
55
58
(#128)
56
-
- If you were relying on this behavior to block values from the
57
-
`SkeletonTheme`, you can render a nested `SkeletonTheme` to override a
58
-
theme defined higher up in the component tree, OR explicitly set one or
59
-
more `Skeleton` props back to their default values e.g. `<Skeleton baseColor="#ebebeb" />`
59
+
- If you were relying on this behavior to block values from the `SkeletonTheme`, you can render a nested `SkeletonTheme` to override a theme defined higher up in the component tree, OR explicitly set one or more `Skeleton` props back to their default values e.g. `<Skeleton baseColor="#ebebeb" />`
60
60
61
61
## 3.0.1
62
62
@@ -81,21 +81,17 @@
81
81
### Breaking Changes
82
82
83
83
- Drop Emotion dependency, add CSS file that must be imported
84
-
- Dropping Emotion avoids conflicts when multiple Emotion versions are used
85
-
on one page and reduces bundle size
84
+
- Dropping Emotion avoids conflicts when multiple Emotion versions are used on one page and reduces bundle size
86
85
- Reimplement `SkeletonTheme` using React context
87
-
- The old `SkeletonTheme` rendered a `<div>` which was undesirable in many
88
-
cases. The new `SkeletonTheme` does not render any DOM elements.
89
-
- The old `SkeletonTheme` did not work if the `Skeleton` was rendered in a
90
-
portal. The new `SkeletonTheme` does work in this case.
86
+
- The old `SkeletonTheme` rendered a `<div>` which was undesirable in many cases. The new `SkeletonTheme` does not render any DOM elements.
87
+
- The old `SkeletonTheme` did not work if the `Skeleton` was rendered in a portal. The new `SkeletonTheme` does work in this case.
91
88
-`SkeletonTheme`: rename the `color` prop to `baseColor`
92
89
- Convert to TypeScript
93
90
- Publish code as ES2018 to reduce bundle size
94
91
- Require React >= 16.8.0
95
92
- Drop Internet Explorer support
96
93
97
-
If you need to support Internet Explorer or use an old version of React, please
98
-
continue to use `react-loading-skeleton` v2.
94
+
If you need to support Internet Explorer or use an old version of React, please continue to use `react-loading-skeleton` v2.
99
95
100
96
### Features
101
97
@@ -111,15 +107,11 @@ continue to use `react-loading-skeleton` v2.
111
107
### Other Changes
112
108
113
109
- Optimize animation performance:
114
-
- The old animation animated the `background-position` property which made
115
-
the browser repaint the gradient on every frame.
116
-
- The new animation animates the `transform` of a pseudoelement. This
117
-
avoids repaints and results in an observable decrease in CPU usage.
118
-
- No longer require `width` and `height` to be set for the `circle` prop to
119
-
work
110
+
- The old animation animated the `background-position` property which made the browser repaint the gradient on every frame.
111
+
- The new animation animates the `transform` of a pseudoelement. This avoids repaints and results in an observable decrease in CPU usage.
112
+
- No longer require `width` and `height` to be set for the `circle` prop to work
120
113
- Change the default `duration` from 1.2 s to 1.5 s
121
-
- Make the default `Skeleton` base color a _tiny_ bit darker so that the
122
-
animation is more visible
114
+
- Make the default `Skeleton` base color a _tiny_ bit darker so that the animation is more visible
0 commit comments