镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Remove obsolete, lying "engines" field from package.json - #717

Merged
ExplodingCabbage merged 1 commit into
masterfrom
remove-engines
Oct 14, 2026
Merged

ExplodingCabbage merged 1 commit into
masterfrom
remove-engines

Conversation

@ExplodingCabbage

@ExplodingCabbage ExplodingCabbage commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

This has been wrong since AT LEAST back when we started using Intl.Segmenter in diffWords, since Segmenter support was only added to Node in v16. Honestly I just never noticed this field in package.json since I took over maintainership or thought about whether it was correct until a Copilot review in #710 made reference to it.

It'd be nice to replace it with a CORRECT constraint instead of just eliminating it, but annoyingly that's nontrivial. I can't just try running the test suite in difference versions of Node to see which ones it passes on because the dev packages needed to RUN THE TEST SUITE require at least Node v22 (which I suspect is a much later version than is truly needed just to support jsdiff itself).

In the absence of knowing what the truth is, or how to find out, simply deleting the false claim and saying nothing is surely better than the status quo.

(Note also that in the README we only claim to support the latest LTS version of Node; this vastly stronger claim was inconsistent with that.)

This has been wrong since AT LEAST back when we started using Intl.Segmenter in diffWords, since Segmenter support was only added to Node in v16. Honestly I just never noticed this field in package.json since I took over maintainership or thought about whether it was correct until a Copilot review in #710 made reference to it.

It'd be nice to replace it with a CORRECT constraint instead of just eliminating it, but annoyingly that's nontrivial. I can't just try running the test suite in difference versions of Node to see which ones it passes on because the dev packages needed to RUN THE TEST SUITE require at least Node v22 (which I suspect is a much later version than is truly needed just to support jsdiff itself).

In the absence of knowing what the truth is, or how to find out, simply deleting the false claim and saying nothing is surely better than the status quo.
@ExplodingCabbage
ExplodingCabbage merged commit b448ab3 into master Oct 14, 2026
@ExplodingCabbage
ExplodingCabbage deleted the remove-engines branch October 14, 2026 17:05
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.

1 participant