Skip to content

Releases: Vibrant-Colors/node-vibrant

v4.0.0

26 Dec 14:54
Compare
Choose a tag to compare

The first stable release in 4 years!

This is a huge release with a ton of internal stability improvements, bug fixes, and more.

There's even a docs site now: https://vibrant.dev

The codebase has never been in as good as a place as it is today; even in the early 3.15 days.

Breaking Changes

  • You now must import from node-vibrant/browser, node-vibrant/node, or node-vibrant/worker to get the correct environment-specific implementation
  • Vibrant class is now a named export
  • Node 18+ is now required
  • ES5 support is dropped
  • Vibrant.getPalette no longer accepts a name or callback API
    • Please migrate to the promise-based API to replace the callback API
    • Please let us know if you were using the name API: https://github.com/Vibrant-Colors/node-vibrant/issues
      • It was unclear how this was used in practice. We can reconsider adding it back if there's usecases I wasn't aware of
  • Vibrant.getPalettes no longer accepts a names or callback API
    • Please migrate to the promise-based API to replace the callback API
    • Please let us know if you were using the names API: https://github.com/Vibrant-Colors/node-vibrant/issues
      • It was unclear how this was used in practice. We can reconsider adding it back if there's usecases I wasn't aware of
  • Builder.getSwatches alias was removed in favor of calling Builder.getPalette
  • Removed the deprecated Builder.getHex API, use the Builder.hex property instead
  • Removed the deprecated Builder.getPopulation API, use the Builder.population property instead
  • Removed the deprecated Builder.getHsl API, use the Builder.hsl property instead
  • Removed the deprecated Builder.getRgb API, use the Builder.rgb property instead
  • Workers are imported differently using the ?worker import fix alias

3.0.0-alpha.2

28 Feb 13:19
Compare
Choose a tag to compare
3.0.0-alpha.2 Pre-release
Pre-release

3.0.0-alpha.1

27 Feb 21:18
Compare
Choose a tag to compare
3.0.0-alpha.1 Pre-release
Pre-release
  • Rewritten in TypeScript #26
  • Support Promise-based API #27
  • Bug fixes #36 #37 #38