Skip to content

Releases: projectwallace/color-sorter

v8.0.0

Choose a tag to compare

@bartveneman bartveneman released this 20 Apr 18:53

breaking

  • remove sort()
  • rename sortFn() to sort_fn()
  • rework the sorting algorithm to first make groups of similar colors and then sort within the group
  • unknown colors are now converted to 100% opacity black, instead of 0% opacity black

new

  • add color_group(converted_color) to get a human-readable name for the color, like 'red', 'orange', 'blue' etc.
  • support a lot more color spaces
  • add API docs to README.md

perf

  • reuse a single collator for sorting strings

What's Changed

Full Changelog: v7.0.2...v8.0.0

v7.0.2

Choose a tag to compare

@bartveneman bartveneman released this 10 Mar 21:17

What's Changed

  • chore: Add Dependabot configuration for npm and GitHub Actions by @bartveneman in #110
  • fix: Change bundleName from 'formatCss' to 'colorSorter' by @bartveneman in #111
  • fix missing type exports, format dependabot, update tsdown by @bartveneman in #113

Full Changelog: v7.0.1...v7.0.2

v7.0.1

Choose a tag to compare

@bartveneman bartveneman released this 08 Mar 19:34

What's Changed

Full Changelog: v7.0.0...v7.0.1

7.0.0

Choose a tag to compare

@bartveneman bartveneman released this 12 Apr 18:26

Breaking

What's Changed

Full Changelog: v6.2.0...v7.0.0

7.0.0-alpha.0

7.0.0-alpha.0 Pre-release
Pre-release

Choose a tag to compare

@bartveneman bartveneman released this 12 Apr 18:22
v7.0.0-alpha.0

publint

6.2.0

Choose a tag to compare

@bartveneman bartveneman released this 01 Mar 20:05

What's Changed

  • Bump vite from 6.0.7 to 6.0.11 by @dependabot in #86
  • Bump undici from 5.28.4 to 5.28.5 by @dependabot in #87
  • feat: add compare(a, b) function in #91
  • fix: do not bundle colorjs.io into dist in #92

Full Changelog: v6.1.2...v6.2.0

6.1.2

Choose a tag to compare

@bartveneman bartveneman released this 08 Jan 13:07

What's Changed

Full Changelog: v6.1.1...v6.1.2

6.1.1

Choose a tag to compare

@bartveneman bartveneman released this 08 Jan 10:39

What's Changed

Full Changelog: v6.1.0...v6.1.1

6.1.0

Choose a tag to compare

@bartveneman bartveneman released this 28 Jul 13:12

Support more color spaces

Because we swapped out colord for colorjs.io we now support a wider range of color gamuts! Now you can also sort oklch() and friends 😄

What's Changed

Full Changelog: v6.0.2...v6.1.0

6.1.0-next.1

6.1.0-next.1 Pre-release
Pre-release

Choose a tag to compare

@bartveneman bartveneman released this 28 Jul 11:41

fix version