Releases: lokesh/color-thief
Releases · lokesh/color-thief
v2.6.0
What's Changed
- deps: switch get-pixels for ndarray-pixels in #263
Original PR by @briandonahue #254
Full Changelog: v2.5.0...v2.6.0
v2.5.0
What's Changed
- src: refactor
color-thief-node.js
by @VoltrexKeyva in #209 - build: remove unused node-minify deps by @lokesh in #235
- feat: Pass mimetype when input is Buffer by @lokesh in #236
- build: file-type dep downgrade by @lokesh in #237
- dep: upgrade quantize to 1.4.0 by @lokesh in #262
- dev -> master by @lokesh in #234
New Contributors
- @VoltrexKeyva made their first contribution in #209
Full Changelog: v2.4.0...v2.5.0
v2.4.0
v2.3.2
v2.3.1
- #191 fix: quality option validation. Thanks to @aaron-hanson Issue
- chore: Fix npm script command syntax. Thanks again to @aaron-hanson
- tests: Add test for CORS
- docs: Move contributing info inline in README. Add proj structure and more info around testing.
v2.3.0
- feat: Node support. Use color-thief-node.js file in dist folder
- test: Added simple tests for node env with Mocha and Chai to go alongside the Cypress browser tests
- build: Discontinue outputting sourcemaps
Example node usage:
const { resolve } = require('path');
const ColorThief = require('colorthief');
const img = resolve(process.cwd(), 'night.jpg');
ColorThief.getColor(img)
.then((color) => {
console.log(color);
})
v2.2.0
v2.2.1
- fix: Remove node version requirement
- refactor: Create sep repo for quantize lib and import
- refactor: Use a shared core lib
- test: Enable other palette count tests post-quantize func updates
- test: Remove bad test case, colorcount(1)
- wip: node support. see
src/color-thief-node.js
v2.1.0
Highlights
- Add Cypress for browser testing
- Removes
grunt
andbower
Changelog
- chore: Remove Grunt. Use npm tasks. PR #145
- chore: Discontinue Bower support. PR #146
- chore: Add eslint. PR #151
- test: Add Cypress for browser testing PR #146
- test: Add browsertests: getColor on black, red, and multi-color image. PR #146
- refactor: Don't append canvas tag to DOM #150
- docs: Strip included example page to essentials. PR #146
- style: tabs to spaces. PR #146
- feat: Add demo page. PR #158
MIT License plus MMCQ fixes
- [Fix] Remove left-over references to Creative Commons License. MIT all-around.
- [Fix] MMCQ lib issues #16 by @nobodypb
- [Fix] Incorrect bower.json main property path. #37 by @chellem, @joscha, @dkushner
- [Fix] Quality less than 1 causes infinite loop #33 by @nteike
- [Fix] MMCQ.quantize(...) can return false or undefined thus breaking the application #55 by @mhahmadi
- [Remove] Drop version number from bower.json #70 by @kkirsche