ipx icon indicating copy to clipboard operation
ipx copied to clipboard

No `package.json#engines#node` despite transitive minimum of `^18.17.0 || ^20.3.0 || >=21.0.0`?

Open serhalp opened this issue 8 months ago • 2 comments

Environment

N/A

Reproduction

N/A

Describe the bug

ipx@3 bumped to sharp@^0.33, which introduced a minimum node.js version of ^18.17.0 || ^20.3.0 || >=21.0.0 (example), but ipx itself has no specified minimum node.js versions

Additional context

Similarly, it seems that [email protected] dropped support for yarn v1? Does that mean ipx@3 dropped support for yarn v1? If so, this isn't documented.

(According to https://sharp.pixelplumbing.com/install/#cross-platform, it even requires npm@10 and pnpm@8?)

Logs


serhalp avatar Apr 24 '25 13:04 serhalp

Package managers still respect the recursive engines constraint of sub dependencies right? not sure how adding engines field could help (ipx can have different constraints and with current way, one can alias sharp resolution to different pkg with wider constraints, we don't need to explicitly copy same field)

Feel free to make PR to mention it in docs.

pi0 avatar Apr 24 '25 13:04 pi0

I guess that's fair.

How about just calling out the new version requirements in the v3.0.0 release notes and changelog entry? https://github.com/unjs/ipx/releases/tag/v3.0.0

serhalp avatar Apr 24 '25 13:04 serhalp