Skip to content

Releases: Tolga1452/toolbox.js

v2.0.1

15 Feb 19:48
Compare
Choose a tag to compare

What's Changed

  • Updated main and types paths in package.json. This ensures the package works stable.

Full Changelog: v2.0.0...v2.0.1

v2.0.0

12 Aug 20:48
Compare
Choose a tag to compare

BREAKING CHANGES

  • RGB type is now Rgb.
  • convertToRGB function is now convertToRgb.

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 new Hsl types might confict because they are similar.
  • convertToHex, convertToRgb, and convertToDecimal functions now support HSL color codes. Added a new fromHsl parameter for HSL color conversions.
  • Added convertToHsl function: Converts the given color code to an HSL color code.
  • Added isDecimal, isRgb, isHex, and isHsl functions to make the color type checking easier. We do not recommend using isRgb and isHsl 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 and lightenColor functions: Makes the given color lighter.
  • Added darkenHslColor and darkenColor functions: Makes the given color darker.
  • Improved documentation.
  • Fixed some bugs.

Full Changelog: v1.2.0...v2.0.0

v1.2.0

03 Apr 19:21
Compare
Choose a tag to compare

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

Full Changelog: v1.1.0...v2.0.0

v1.1.0

18 Apr 16:30
Compare
Choose a tag to compare
  • Added chunk() function: Turns the given array into groups of the given size.

Full Changelog: v1.0.1...v1.1.0

v1.0.1

17 Apr 10:45
Compare
Choose a tag to compare

URLs fixed

v1.0.0

17 Apr 09:11
Compare
Choose a tag to compare

First publish! 🥳🎉

Full Changelog: https://github.com/Tolga1452/toolbox.js/commits/v1.0.0