dependabot[bot] opened a new pull request, #51: URL: https://github.com/apache/echarts-theme-builder/pull/51
Removes [file-type](https://github.com/sindresorhus/file-type). It's no longer used after updating ancestor dependency [colorthief](https://github.com/lokesh/color-thief). These dependencies need to be updated together. Removes `file-type` Updates `colorthief` from 2.6.0 to 2.7.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/lokesh/color-thief/releases">colorthief's releases</a>.</em></p> <blockquote> <h2>v.2.7.0</h2> <p>New features:</p> <ul> <li>Configurable pixel filtering — New options: ignoreWhite, whiteThreshold, alphaThreshold, and minSaturation let callers control which pixels are<br /> included in color extraction</li> <li>Options object API — getColor and getPalette now accept an options object (e.g., { colorCount: 5, quality: 10, ignoreWhite: false }) in addition to the existing positional arguments</li> <li>New browser input types — getPalette/getColor now accept HTMLCanvasElement, ImageData, and ImageBitmap in addition to HTMLImageElement</li> <li>TypeScript type definitions — Added .d.ts files for both browser (color-thief.d.ts) and Node (color-thief-node.d.ts)</li> </ul> <p>Bug fixes & robustness:</p> <ul> <li>Fallback color for edge cases — New computeFallbackColor() averages all pixels when the quantizer can't produce a palette (e.g., solid-color or<br /> all-white images), preventing null returns</li> <li>Progressive filter relaxation — If filtering removes all pixels, filters are progressively relaxed (first allowing white, then transparent) before falling back</li> <li>Fixed variable scope leak — i in getImageData changed from implicit global to let</li> <li>Input validation — Browser version now throws descriptive errors for unloaded images, missing sources, and CORS-tainted canvases</li> <li>Null-safe palette access — All call sites now check palette for null before accessing palette[0]</li> </ul> <p>Chores & tooling:</p> <ul> <li>Removed file-type dependency from Node version (unused)</li> <li>Removed dist/ from git tracking (kept in npm package via .npmignore)</li> <li>Added GitHub Actions CI workflow</li> <li>Replaced CanvasImage class with a simpler getPixelData() function</li> <li>Updated README to reflect current project setup</li> <li>Version bump to 2.7.0 across package.json and source files</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/lokesh/color-thief/commit/b3f8420f0555623ab1710de7af7db685b2706419"><code>b3f8420</code></a> chore: bump version to 2.7.0</li> <li><a href="https://github.com/lokesh/color-thief/commit/36d055ac41d5c8857d69100e4515aaff48c3a055"><code>36d055a</code></a> docs: update README to reflect current project setup</li> <li><a href="https://github.com/lokesh/color-thief/commit/a302f130ee04b226eddadfd844d5b230bd6a5d70"><code>a302f13</code></a> Merge branch 'master' into dev</li> <li><a href="https://github.com/lokesh/color-thief/commit/8fc8c1e8531641e3ea64c34a9dcfd9f20cfaed73"><code>8fc8c1e</code></a> chore: remove dist from git tracking, keep in npm package</li> <li><a href="https://github.com/lokesh/color-thief/commit/5c9f6aea296810d376cf5413255cdf02e1d05cc4"><code>5c9f6ae</code></a> chore: remove dist from git tracking, keep in npm package</li> <li><a href="https://github.com/lokesh/color-thief/commit/0647b252c7578b051a951f33a9f009bea2bf5f5f"><code>0647b25</code></a> Merge pull request <a href="https://redirect.github.com/lokesh/color-thief/issues/276">#276</a> from lokesh/dev</li> <li><a href="https://github.com/lokesh/color-thief/commit/33650a28426eb18c25c6590436f1b138ec9e5073"><code>33650a2</code></a> chore: remove lint step from CI workflow</li> <li><a href="https://github.com/lokesh/color-thief/commit/20176ea0abe2d0443af3be92df2351d2f294a9bb"><code>20176ea</code></a> chore: remove eslint and related dependencies</li> <li><a href="https://github.com/lokesh/color-thief/commit/a51c1c3a6fde83f42e4dd4b693f90292289791dd"><code>a51c1c3</code></a> feat: add configurable filtering, new input types, TypeScript defs, and dev t...</li> <li><a href="https://github.com/lokesh/color-thief/commit/ee8d29e330805122c8a739877c55a671bd70efd7"><code>ee8d29e</code></a> refactor: enhance color extraction logic and update tests</li> <li>Additional commits viewable in <a href="https://github.com/lokesh/color-thief/compare/v2.6.0...v2.7.0">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/apache/echarts-theme-builder/network/alerts). </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
