Skip to content

Latest commit

 

History

History
158 lines (135 loc) · 6.22 KB

CHANGELOG.md

File metadata and controls

158 lines (135 loc) · 6.22 KB

Changelog

2.1.1 - #24 - 2022-03-30

Fixed

  • types: values.rgb

2.1.0 - #21 - 2022-03-23

Added

  • TS type definitions

Changed

  • README: replace david-dm.org with libraries.io
  • upgrade and pin dependencies:
    • mix-css-color 0.2.0
    • parse-css-color 0.2.0
    • parse-color 1.3.0

2.0.0 - #7 - 2020-05-23

Added

  • alpha support
    • #RRGGBBAA
    • RGB CSS Color Module Level 4
    • HSL CSS Color Module Level 4 (number, deg, rad & turn)
    • alpha property to hold a value within 0 and 1
  • pre-defined color keywords support
  • transparent - Shorthand for transparent black, rgba(0,0,0,0)
  • default value #000 for when undefined, null or <empty> is passed to the constructor
  • editorconfig
  • .eslintrc
  • lighthouse-ci action for gh-pages

Changed

  • refactor code
  • throw error if input is not a CSS string recognized by parse-css-color
  • rgb property now returns an array in the form of [r, g, b] instead of { r: number, g: number, b: number }
  • hex is now a getter (access backward-compatible)
    • if alpha is less than 1 it returns 8 digits now #RRGGBBAA otherwise 6 #RRGGBB
  • hexString method return value could include alpha
    • if alpha is less than 1 it returns 8 digits now #RRGGBBAA otherwise 6 #RRGGBB
  • isTint, isShade and isBaseColor properties replaced by new type field
    • type="tint"
    • type="shade"
    • type="base"
  • percentage property is now weight and, it is included on every instance instead of just for tints and shades
  • setColor return null if color is not accepted

Removed

  • bower distribution
  • properties
    • hsl
    • isTint, isShade, isBaseColor
  • methods
    • hslString
  • static utils functions

1.1.1 - #6 - 2020-04-16

Fixed

  • shade is not defined

1.1.0 - #5 - 2020-03-10

Added

  • ✨ new properties to the Array result of vallues.all() 5f204a2
    • isTint: true for tints
    • isShade: true for shades
    • isBaseColor: true for the original input color
  • Added Changelog (this)

Changed

  • updated README f226453
    • added params signature for methods
    • added hexString, rgbString and hslString missing methods
  • updated tests for new properties

1.0.3 - 2015-10-20

Added

  • npm and bower version badges a7f04f5

Fixed

  • #3, {tint,shade} === 0 returning default of 50% 8d83fa0
  • jshint errors 3f54dc6

1.0.2 - 2015-03-12

Fixed

  • CommonJS on linux: Require() is case sensitive on linux, so the example only worked on OSX. #1

1.0.1 - 2015-03-08

Changed

  • white list distributed files on NPM fc2ece8

Fixed

  • revert / return duplicated tints and shades, using an object to filter was messing the results ordering 79294f8

1.0.0 - 2015-03-08

Changed

  • refactor 55bc6e6
    • fixed tints and shades output actually mixing with white and black
  • renamed methods
    • getTints => tints
    • getShades => shades
    • getAll => all

Added

  • methods
    • tint
    • shade
    • getBrightness
    • hexString
    • rgbString
    • hslString

Removed

  • methods
    • setStep
    • lighteness
  • minified dist version

0.1.5 - 2014-09-16

Fixed

  • ignore case to isRGB and isHSL Util methods 17cf7d5

0.1.4 - 2014-09-16

  • 0.1.4 287ba66
    • add / hsl validaton support
    • update / rgb validation
    • add / tests

0.1.3 - 2014-09-06

0.1.2 - 2014-07-12

Added

  • bower support

Fixed

  • NPM main file

0.1.1 - 2014-07-02

  • initial release