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

colortranslator

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colortranslator - npm Package Versions

234

4.1.0

Diff

Changelog

Source

[4.1.0] - 2023-11-27

  • Improve getBlendXXX methods overloads to make it possible to omit optional parameters
  • Improve getMixXXX methods overloads to make it possible to omit optional parameters
  • Improve getHarmony method overloads to make it possible to omit optional parameters
  • Improve types for Mix and Harmony making it possible to send also strings
  • Make optional the shades and tints parameters of the getShades and getTints methods respectively
  • Fix a bug in the getBlendXXX and toXXX methods which were ignoring the decimals sent and always using MAX_DECIMALS
  • Fix CIELabObject not being exported with the library
elchininet
published 4.0.0 •

Changelog

Source

[4.0.0] - 2023-11-26

  • [BREAKING CHANGE]: Properties of the HEX, HEXA, RGB, RGBA, HSL, HSLA, CMYK and CMYKA objects are now capitalized letters to make them more consistent with the rest of the properties and to add support for Lab colors with alpha (L a b A)
  • Added support for CIE L*a*b colors conversion
elchininet
published 3.0.2 •

Changelog

Source

[3.0.2] - 2023-08-02

  • Specify types for the ESM bundle
  • Provide types specifically for the ESM bundle
elchininet
published 3.0.1 •

Changelog

Source

[3.0.1] - 2023-07-20

  • Avoid double rounding in CSS blending static methods
elchininet
published 3.0.0 •

Changelog

Source

[3.0.0] - 2023-07-18

  • [BREAKING CHANGE]: Complete refactoring of the library, now the default CSS output is in CSS Level 4, if one wants CSS Level 3 it should be required through a configuration parameter. The new API can be consulted in the README.
elchininet
published 2.0.0 •

Changelog

Source

[2.0.0] - 2023-05-18

  • [BREAKING CHANGE]: Complete refactoring of the library, if no specified all colors will be calculated with 6 decimals in its values
  • Implemented a way to control de decimals for the color conversion
elchininet
published 1.10.2 •

Changelog

Source

[1.10.2] - 2023-01-17

  • Fixed rounded values of hexadecimal colors
elchininet
published 1.10.1 •

Changelog

Source

[1.10.1] - 2023-01-10

  • Fixed RYB to RGB conversion (thanks to @jagracar)
elchininet
published 1.10.0 •

Changelog

Source

[1.10.0] - 2023-01-05

  • Support for CSS Colors 4 inputs
elchininet
published 1.9.4 •

Changelog

Source

[1.9.4] - 2023-01-02

  • Fixed a bug that didn‘t allow leading zeros
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