Releases: Tolga1452/toolbox.js
Releases · Tolga1452/toolbox.js
v2.0.1
v2.0.0
BREAKING CHANGES
RGB
type is nowRgb
.convertToRGB
function 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.
Rgb
and the newHsl
types might confict because they are similar. convertToHex
,convertToRgb
, andconvertToDecimal
functions now support HSL color codes. Added a newfromHsl
parameter for HSL color conversions.- Added
convertToHsl
function: Converts the given color code to an HSL color code. - Added
isDecimal
,isRgb
,isHex
, andisHsl
functions to make the color type checking easier. We do not recommend usingisRgb
andisHsl
together since the types are similar and might conflict. - Added
colorBrightness
function: Returns the brightness of the given color. - Added
isLightColor
function: Checks whether the given color is a light color. - Added
lightenHslColor
andlightenColor
functions: Makes the given color lighter. - Added
darkenHslColor
anddarkenColor
functions: 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
factorial
function: Returns the factorial of the given number. - Added
binomialCoefficient
function: Returns the binomial coefficient of the given numbers. - Added
binomialDistributionProbability
function: 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