Releases: Tolga1452/toolbox.js
Releases · Tolga1452/toolbox.js
v2.0.1
v2.0.0
BREAKING CHANGES
RGBtype is nowRgb.convertToRGBfunction is nowconvertToRgb.
What's Changed
- Bump braces from 3.0.2 to 3.0.3 by @dependabot in #2
- Improved typings and added full typing support for TypeScript.
Rgband the newHsltypes might confict because they are similar. convertToHex,convertToRgb, andconvertToDecimalfunctions now support HSL color codes. Added a newfromHslparameter for HSL color conversions.- Added
convertToHslfunction: Converts the given color code to an HSL color code. - Added
isDecimal,isRgb,isHex, andisHslfunctions to make the color type checking easier. We do not recommend usingisRgbandisHsltogether since the types are similar and might conflict. - Added
colorBrightnessfunction: Returns the brightness of the given color. - Added
isLightColorfunction: Checks whether the given color is a light color. - Added
lightenHslColorandlightenColorfunctions: Makes the given color lighter. - Added
darkenHslColoranddarkenColorfunctions: Makes the given color darker. - Improved documentation.
- Fixed some bugs.
Full Changelog: v1.2.0...v2.0.0
v1.2.0
What's Changed
- Bump @babel/traverse from 7.21.4 to 7.23.2 by @dependabot in #1
- Added
factorialfunction: Returns the factorial of the given number. - Added
binomialCoefficientfunction: Returns the binomial coefficient of the given numbers. - Added
binomialDistributionProbabilityfunction: Returns the probability of the binomial distribution.
New Contributors
- @dependabot made their first contribution in #1
Full Changelog: v1.1.0...v2.0.0
v1.1.0
- Added
chunk()function: Turns the given array into groups of the given size.
Full Changelog: v1.0.1...v1.1.0
v1.0.1
v1.0.0
First publish! 🥳🎉
Full Changelog: https://github.com/Tolga1452/toolbox.js/commits/v1.0.0