Skip to content

Upgrading lint-staged 12 to 13

Breaking12.5.0 → 13.3.0Breaking1Security1Platform1New1Changed8Fixed13Other2

BreakingUpgrade verdict

1 breaking change and a platform requirement change and a security fix.

  • You must use a newer Node.js version to run lint-staged.
  • lint-staged no longer runs on Node.js 12; you need a newer Node.js version.
  • Updates a bundled library called yaml to a safer version that fixes a known security problem.
3 items need code or config changes

Node.js requirement changed in 13.3.0: ^12.20.0 || ^14.13.1 || >=16.0.0 → ^16.14.0 || >=18.0.0.

Adds chalk 5.3.0.

Drops cli-truncate, colorette, normalize-path, object-inspect, supports-color.

Installs 52 packages in all (was 82).

Also installs eventemitter3.

No longer installs aggregate-error, astral-regex, clean-stack, color-convert, color-name, indent-string, p-map, rxjs, through, tslib.

Moves ansi-escapes 4.3.2 → 5.0.0, ansi-regex 5.0.1, 6.5.0 → 6.5.0, ansi-styles 4.3.0, 6.2.3 → 6.2.3, cli-cursor 3.1.0 → 4.0.0, cli-truncate 2.1.0, 3.1.0 → 3.1.0, commander 9.5.0 → 11.0.0, debug 4.4.3 → 4.3.4, emoji-regex 8.0.0, 9.2.2 → 9.2.2, execa 5.1.1 → 7.2.0, human-signals 2.1.0 → 4.3.1, is-fullwidth-code-point 3.0.0, 4.0.0 → 4.0.0, is-stream 2.0.1 → 3.0.0, lilconfig 2.0.5 → 2.1.0, listr2 4.0.5 → 6.6.1, log-update 4.0.0 → 5.0.1 and 15 more. Your build may pick other versions.

Breaking1
lint-staged no longer supports Node.js 12, which is EOL since 30 April 2022.
lint-staged
Security1
Updates the yaml dependency to 2.2.2 to address security advisory GHSA-f9xv-q969-pqx4.
yaml
Platform1
Removes support for Node.js 12, which is EOL since 30 April 2022.