Releases: davidhu2000/react-spinners
v0.15.0
What's Changed
- Bump micromatch from 4.0.5 to 4.0.8 by @dependabot in #607
- Update peer dependencies to support React 19 by @mobeigi in #612
New Contributors
Full Changelog: 0.14.1...v0.15.0
0.14.1
What's Changed
- Revert "fix: multiple hash loader with different color renders as the same color" by @davidhu2000 in #605
Full Changelog: 0.14.0...0.14.1
0.14.0
What's Changed
- feat: color prop can accept rgb colors by @Roman178 in #586
- fix: multiple hash loader with different color renders as the same color by @davidhu2000 in #602
- fix: moon loader wobble by @davidhu2000 in #603
New Contributors
Full Changelog: v0.13.8...0.14.0
v0.13.8
What's Changed
- Bump decode-uri-component from 0.2.0 to 0.2.2 by @dependabot in #555
- chore: update devDependencies to latest versions by @davidhu2000 in #556
- Bump json5 from 1.0.1 to 1.0.2 by @dependabot in #559
- Remove Animation Fill Mode by @Lucien950 in #558
- docs: fix radius prop type in storybook to be number instead of object by @davidhu2000 in #561
New Contributors
- @Lucien950 made their first contribution in #558
Full Changelog: v0.13.7...v0.13.8
0.13.7
What's Changed
fix: PacmanLoader container height/width to adjust with size prop
0.13.0
Major Changes
Feature: Removed @emotion/react
as a dependency and rewrote all components as functional components. This library now has ZERO dependencies.
This resulted in a huge component size reduction. As compared between 0.12.0 and 0.13.0
Feature: Add support for custom props such as aria-label
Feature: Updated RiseLoader
rise amount to be the same as size
prop instead of hard coded 30px
Breaking Change: css
prop is renamed to cssOverride
to avoid conflicts with css-in-js libraries
Storybook is introduced to better demo the components. The demo site is simplified to only allow color changes.
Minor Changes
- replaced enzyme with react testing library
- bugfix: add
display: inherit
to the default styles to fix the rendering issue - bugfix: GridLoader's rendering issue
0.12.0
Simplify API by removing unit props
The component API has been simplified. The length prop can now accept number or string.
Major Changes
- all unit props are deprecated, including
sizeUnit
,heightUnit
,widthUnit
, andradiusUnit
. Thesize
,height
,width
, andradius
props now acceptsnumber
andstring
.- If value is number, default to
px
- If value is string with valid css unit, return the input value
- If value is string with invalid css unit, output warning console log and default to
px
- If value is number, default to
margin
prop now works the same way as other length props. Can acceptnumber
andstring
Minor Changes
css
prop default is now""
. No functionality change here.- fix margin prop functionality on
FadeLoader
andRotateLoader
so it actually expands the spacing between the elements. - update the README
color
prop section to include a list of available color words accepted. - clean up README formatting using the prettier plugin
- add
yarn
installation instruction to the README.
Rewrite Package in TypeScript
The entire package has been rewritten in TypeScript. The package will now support individual loader imports with types.
Major changes:
- Add support for types for individual loader imports
- Add support for using the basic color name as props instead of only color hashes
- Reduced total package size from around 850kb to 135gb
- Fix
main
key value inpackage.json
to point to the correctindex.js
- Removed
prop-types
andrecompose
from dependencies - Added tests to get to 100% code coverage
Minor changes:
- Update
PacmanLoader
css top property to respectsizeUnit
prop. - Update README to include
radius
andradiusUnit
. - Add missing
transform
key to theRiseLoader
animation. - Setup
tslint
andprettier
to enforce code consistency. - Add missing
"
to.babelrc
in README.
Emotion upgrade and optimizations
- Update emotion package to emotion 10, this includes a breaking change with replacing
className
prop withcss
prop to match convention of the Emotion package. - update package.json to include wider range of version for recompose
- update how
onlyUpdateForKeys
is imported fromrecompose
. Reduced import cost from 26kb to 19kb.