kpdecker / jsdiff

A javascript text differencing implementation.
BSD 3-Clause "New" or "Revised" License
7.75k stars 491 forks source link

Migrate to DABH's fork of colors #469

Closed ExplodingCabbage closed 6 months ago

ExplodingCabbage commented 6 months ago

Resolves https://github.com/kpdecker/jsdiff/issues/337

As I understand it, the original maintainer of the colors package, Marak, previously sabotaged it for a laundry list of political/ideological reasons, involving Aaron Schwartz, the Ukraine war, and big corporations using his code. npm removed the malicious version against the old maintainer's will, but one still has to wonder if he might one day sabotage his packages again. Anything by him is kinda suspect, now.

Someone else called DABH took over maintainership after the sabotage. Let's point at the npm package he controls, just to be sure that bumping our dev dependencies in future won't install malware.

The (tiny, trivial) example script that uses colors still seems to work after this:

image