donmccurdy / donmccurdy/ndarray-pixels

Make Sharp an optional peer dependency

Open Beginner friendly
#296 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
33
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Currently the 'sharp' model is a direct dependency, but I believe it can/should be moved to optional peer dependencies. The module is only required when using ndarray-pixels in Node.js, and requires platform-specific binaries that can make life complicated, especially if another version of sharp is required by another dependency. If not a peer dependency then perhaps the version range could be loosened.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by checking the package manifest and the Node.js image-loading entry point to see how sharp is declared and loaded. Confirm that the dependency arrangement supports another sharp version and that browser usage remains unaffected; validate the result with the repository's existing checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
developer-experience
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.