npm lint-staged 17.7.0
v17.7.0

35 minutes ago

Minor Changes

  • #1879 ed45e7c - Hiding unstaged changes to partially staged files no longer enforces --unified=0 when creating the patch. This means Git will add the user's default number of surrounding lines (3) to the patch file as a context. This should improve restoring the changes when tasks add or remove lines.

  • #1875 f308530 - Improve performance by passing lists of files (e.g. when staging) to Git via stdin, instead of chunking and building multiple commands with parameters. This mostly affects Windows where the shell command maximum length is limited.

Patch Changes

  • #1879 f5589a4 - When lint-staged fails to restore unstaged changes to partially changed files and retries it with git apply --3way, the unstaged changes are no longer staged and added to the commit. This happened because --3way implies --index. Now the index state is restored to the expected version after successfully applying the unstaged patch with --3way.

Don't miss a new lint-staged release

NewReleases is sending notifications on new releases.