Skip to content

Releases: sardinedev/colour

v2.2.1

28 Oct 14:03
0dd312f
Compare
Choose a tag to compare

Patch Changes

  • 4c803cc: Optimise bundle size by refactoring repeated code. Saved 0.02 kB

v2.1.1

19 Jul 14:32
1b8a455
Compare
Choose a tag to compare

Patch Changes

v2.1.0

10 Jul 09:18
723672f
Compare
Choose a tag to compare

Minor Changes

  • d3ed0f8: feat: Adds a build compatible with unpkg CDN
  • 2726662: feat: Adds convertHextoNamedCSSColour
    feat: Adds convertNamedCSSColourtoRGB
    feat: Adds convertCSSRGBtoRGB
    feat: Adds convertRGBtoCSSRGB
    feat: Adds convertRGBtoNamedCSSColour
    feat: Adds findNearestColour
    feat: Adds findNearestCSSRGBColour
    feat: Adds findNearestHexColour
    feat: Adds findNearestNamedCSSColour
    feat: Adds findNearestRGBColour

v2.0.2

11 Aug 12:43
e29155d
Compare
Choose a tag to compare

Patch Changes

  • adfe49a: fix: Reverts default export to CJS

    Some widely used tools like Jest still don't support ESM yet.
    This reverts the package to CJS, so node based tools can use it without any issues and we rely on modern bundlers to pick the ESM version when possible.

v2.0.1

12 Jul 12:40
b097962
Compare
Choose a tag to compare

Patch Changes

  • e4aa71e: fix: Correctly sets package.json exports for ESM projects
  • c1c02f0: fix: improves treeshaking for named CSS colours

v2.0.0

19 May 15:26
7cc1b3a
Compare
Choose a tag to compare

Major Changes

  • f0ff977: chore: Sets Node 16 as minimum version
  • 2db684b: chore: Adds @tsconfig/node16

Minor Changes

  • b7147f9: chore: Adds compatibility with TypeScript's "moduleResolution": "bundler" compiler option

v1.6.1

19 Sep 16:27
9d00208
Compare
Choose a tag to compare

Patch Changes

  • b45cbfc: fix: convertCSSRGBtoRGB now returns the alpha channel as undefined instead of NaN if no alpha is present in CSS RGB function

v1.6.0

30 Aug 13:18
f6e9691
Compare
Choose a tag to compare

Minor Changes

  • 732f0ee: feat: Add convertNamedCSSColourtoHex
  • 97eb272: feat: Add convertRGBtoHex
  • 9dfb34f: feat: Add isDarkColour
  • b35132a: feat: Add isCSSNamedDarkColour
  • b35132a: feat: Add isCSSRGBColour
  • b35132a: feat: Add isCSSRGBDarkColour
  • b35132a: feat: Add isHexColour
  • f16c7cf: feat: Add convertCSSRGBtoHex
  • b35132a: feat: Increase coverage of different CSS RGB formats

v1.5.0

19 Aug 17:19
577b9db
Compare
Choose a tag to compare

Minor Changes

v1.4.0

19 Aug 12:14
14c97b2
Compare
Choose a tag to compare

Minor Changes

  • 748504c: feat: Add pickHexColorContrast function