How new version of NPM package "colors" broke millions of installs

This page summarizes the projects mentioned and recommended in the original post on /r/node

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • colors.js

    get colors in your node.js console

  • I started with the first most obvious `colors` (https://www.npmjs.com/package/colors). It was recently updated from 1.4.0 to 1.4.2, but there is catch. The code for 1.4.2 is not published on official github page. There no tag or release with 1.4.2 (https://github.com/Marak/colors.js). So I installed and saved both version and did a diff on them, and here is the difference:

  • nest-cli

    CLI tool for Nest applications 🍹

  • We ran into this last night with the @nestjs/cli. The code itself doesn't depend on colors, but cli-table3, which we had a pinned version of did depend on colors, and didn't have the dependency pinned. So when 1.4.2 was released, introducing the bug, we go flooded with reports that nest new and nest help started failing all of a sudden. Fortunately, cli-table3 had a patch to downgrade the colors dependency, and are looking at removing it altogether, but the cascading effect was quite annoying to deal with.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • berry

    📦🐈 Active development trunk for Yarn ⚒

  • Depends on your package manager then. pnpm and yarn both support the resolutions property in the package.json so you can do

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • How to resize images for Open Graph and Twitter using sharp

    4 projects | dev.to | 8 May 2024
  • Node package managers (npm, yarn, pnpm) - All you need to know

    3 projects | dev.to | 2 May 2024
  • Guide to ChatGPT API Implementation for Developers

    6 projects | dev.to | 7 Dec 2023
  • Consuming Loki logs with Grafana API and Node.js

    2 projects | dev.to | 25 Oct 2023
  • Yarn 4.0

    10 projects | news.ycombinator.com | 23 Oct 2023