Releases: Vibrant-Colors/node-vibrant
Releases Β· Vibrant-Colors/node-vibrant
v4.0.2
What's Changed
- Add paste image functionality to website demo by @SelfMadeSystem in #171
- fix: dependency tree of installed
node-vibrantshould no longer include Vite by @crutchcorn in #173
New Contributors
- @SelfMadeSystem made their first contribution in #171
Full Changelog: v4.0.1...v4.0.2
v4.0.1
What's Changed
- fix: node 10 resolution should now work by @crutchcorn in #170
Full Changelog: v4.0.0...v4.0.1
v4.0.0
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, ornode-vibrant/workerto get the correct environment-specific implementation Vibrantclass is now a named export- Node 18+ is now required
- ES5 support is dropped
Vibrant.getPaletteno longer accepts anameorcallbackAPI- Please migrate to the promise-based API to replace the
callbackAPI - Please let us know if you were using the
nameAPI: 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
- Please migrate to the promise-based API to replace the
Vibrant.getPalettesno longer accepts anamesorcallbackAPI- Please migrate to the promise-based API to replace the
callbackAPI - Please let us know if you were using the
namesAPI: 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
- Please migrate to the promise-based API to replace the
Builder.getSwatchesalias was removed in favor of callingBuilder.getPalette- Removed the deprecated
Builder.getHexAPI, use theBuilder.hexproperty instead - Removed the deprecated
Builder.getPopulationAPI, use theBuilder.populationproperty instead - Removed the deprecated
Builder.getHslAPI, use theBuilder.hslproperty instead - Removed the deprecated
Builder.getRgbAPI, use theBuilder.rgbproperty instead - Workers are imported differently using the
?workerimport fix alias
