Skip to content

build(deps): drop deprecated @types/color-convert, fix typecheck#1132

Open
matthewhanson wants to merge 2 commits into
mainfrom
chore/fix-color-convert-types
Open

build(deps): drop deprecated @types/color-convert, fix typecheck#1132
matthewhanson wants to merge 2 commits into
mainfrom
chore/fix-color-convert-types

Conversation

@matthewhanson

Copy link
Copy Markdown
Member

Summary

Replaces dependabot #1124, which failed typecheck.

@types/color-convert@3.0.1 is a deprecated stub — its own deprecation notice says "color-convert provides its own type definitions, so you do not need this installed." Because every @types/* package is auto-included via typeRoots, the empty stub produced TS2688: Cannot find type definition file for 'color-convert'.

color-convert is not imported by stac-server source (it's only a pinned transitive), so its types aren't needed at all. This removes @types/color-convert and takes the color-convert pin bump.

Verification

typecheck ✓, lint ✓ (full CI on this PR).

Closes #1124

🤖 Generated with Claude Code

@types/color-convert@3.x is now a deprecated stub ("color-convert
provides its own type definitions, so you do not need this installed"),
which broke typecheck with `TS2688: Cannot find type definition file
for 'color-convert'`. Remove the obsolete @types package and take the
color-convert pin bump.

Replaces #1124.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates npm dependencies to resolve a TypeScript typecheck failure caused by a deprecated stub @types/color-convert package being auto-included via typeRoots.

Changes:

  • Remove deprecated @types/color-convert from devDependencies (and lockfile) to prevent TS2688 failures.
  • Adjust the color-convert dependency constraint and update package-lock.json accordingly.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
package.json Removes @types/color-convert and updates the color-convert constraint.
package-lock.json Removes @types/color-convert entries and updates the top-level dependency constraint.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
Comment on lines 58 to 62
"ansi-styles": "<6.2.4 || >6.2.2",
"chalk": "<5.6.3 || >5.6.1",
"color-convert": "<3.1.1 || >3.1.1",
"color-convert": "<3.1.4 || >3.1.1",
"color-name": "<2.0.1 || >2.0.1",
"color-string": "<2.1.1 || >2.1.1",
Per review: `<3.1.4 || >3.1.1` matches every version (including 3.1.1),
defeating the pin. Restore `<3.1.1 || >3.1.1`, which excludes exactly the
bad release, consistent with the other single-version exclusion pins.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@matthewhanson

Copy link
Copy Markdown
Member Author

Addressed Copilot's review: restored the pin to <3.1.1 || >3.1.1. The suggested-by-dependabot <3.1.4 || >3.1.1 was indeed a tautology (matches every version, including 3.1.1), defeating the exclusion — good catch. (2443ae6)

@matthewhanson matthewhanson mentioned this pull request Jun 20, 2026
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants