Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

values.js

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

values.js - npm Package Versions

2

2.1.1

Diff

Changelog

Source

[2.1.1] - #24 - 2022-03-30

Fixed

  • types: values.rgb
noeldelgado
published 2.1.0 •

Changelog

Source

[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
noeldelgado
published 2.0.0 •

Changelog

Source

[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
noeldelgado
published 2.0.0-beta.2 •

noeldelgado
published 2.0.0-beta.1 •

noeldelgado
published 2.0.0-beta.0 •

noeldelgado
published 1.1.1 •

Changelog

Source

[1.1.1] - #6 - 2020-04-16

Fixed

  • shade is not defined
noeldelgado
published 1.1.0 •

Changelog

Source

[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
noeldelgado
published 1.0.3 •

Changelog

Source

[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
noeldelgado
published 1.0.2 •

Changelog

Source

[1.0.2] - 2015-03-12

Fixed

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

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc