Skip to content

chore(deps): update dependency lint-staged to v16.4.0 - #599

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/lint-staged-16.x
Open

chore(deps): update dependency lint-staged to v16.4.0#599
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/lint-staged-16.x

Conversation

@renovate

@renovaterenovateBot commented Sep 6, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

PackageChangeAgeConfidence
lint-staged16.1.516.4.0ageconfidence

Release Notes

lint-staged/lint-staged (lint-staged)

v16.4.0

Compare Source

Minor Changes

v16.3.4

Compare Source

Patch Changes

v16.3.3

Compare Source

Patch Changes
  • #​17400109e8d Thanks @​iiroj! - Make sure Git's warning about CRLF line-endings doesn't interfere with creating initial backup stash.

v16.3.2

Compare Source

Patch Changes

v16.3.1

Compare Source

Patch Changes
  • #​1729cd5d762 Thanks @​iiroj! - Remove nano-spawn as a dependency from package.json as it was replaced with tinyexec and is no longer used.

v16.3.0

Compare Source

Minor Changes
  • #​1698feda37a Thanks @​iiroj! - Run external processes with tinyexec instead of nano-spawn. nano-spawn replaced execa in lint-staged version 16 to limit the amount of npm dependencies required, but caused some unknown issues related to spawning tasks. Let's hope tinyexec improves the situation.

  • #​16991346d16 Thanks @​iiroj! - Remove pidtree as a dependency. When a task fails, its sub-processes are killed more efficiently via the process group on Unix systems, and the taskkill command on Windows.

Patch Changes
  • #​172687467aa Thanks @​iiroj! - Incorrect brace expansions like *.{js} (nothing to expand) are detected exhaustively, instead of just a single pass.

v16.2.7

Compare Source

Patch Changes
  • #​1711ef74c8d Thanks @​iiroj! - Do not display a "failed to spawn" error message when a task fails normally. This message is reserved for when the task didn't run because spawning it failed.

v16.2.6

Compare Source

Patch Changes

v16.2.5

Compare Source

Patch Changes
  • #​16879e02d9d Thanks @​iiroj! - Fix unhandled promise rejection when spawning tasks (instead of the tasks themselves failing). Previously when a task failed to spawn, lint-staged also failed and the backup stash might not have been automatically restored.

v16.2.4

Compare Source

Patch Changes

v16.2.3

Compare Source

Patch Changes
  • #​166927cd541 Thanks @​iiroj! - When using --fail-on-changes, automatically hidden (partially) unstaged changes are no longer counted to make lint-staged fail.

v16.2.2

Compare Source

Patch Changes
  • #​1667699f95d Thanks @​iiroj! - The backup stash will not be dropped when using --fail-on-changes and there are errors. When reverting to original state is disabled (via --no-revert or --fail-on-changes), hidden (partially) unstaged changes are still restored automatically so that it's easier to resolve the situation manually.

    Additionally, the example for using the backup stash manually now uses the correct backup hash, if available:

    % npx lint-staged --fail-on-changes
    ✔ Backed up original state in git stash (c18d55a3)
    ✔ Running tasks for staged files...
    ✖ Tasks modified files and --fail-on-changes was used!
    ↓ Cleaning up temporary files...
    ✖ lint-staged failed because `--fail-on-changes` was used.
    Any lost modifications can be restored from a git stash:
    > git stash list --format="%h %s"
    c18d55a3 On main: lint-staged automatic backup
    > git apply --index c18d55a3

v16.2.1

Compare Source

Patch Changes
  • #​16648277b3b Thanks @​iiroj! - The built-in TypeScript types have been updated to more closely match the implementation. Notably, the list of staged files supplied to task functions is readonly string[] and can't be mutated. Thanks @​outslept!

    export default {
    --- "*": (files: string[]) => void console.log('staged files', files)+++ "*": (files: readonly string[]) => void console.log('staged files', files)
    }
  • #​165470b9af3 Thanks @​iiroj! - This version has been published from GitHub Actions using Trusted Publishing for npm packages.

  • #​16594996817 Thanks @​iiroj! - Fix searching configuration files when the working directory is a subdirectory of a git repository, and there are package.json files in the working directory. This situation might happen when running lint-staged for a single package in a monorepo.

  • #​16547021f0a Thanks @​iiroj! - Return the caret semver range (^) to direct dependencies so that future patch and minor versions are allowed. This enables projects to better maintain and deduplicate their own transitive dependencies while not requiring direct updates to lint-staged. This was changed in 16.2.0 after the vulnerability issues with chalk and debug, which were also removed in the same version.

    Given the recent vulnerabilities in the npm ecosystem, it's best to be very careful when updating dependencies.

v16.2.0

Compare Source

Minor Changes
  • #​161599eb742 Thanks @​iiroj! - Added a new option --fail-on-changes to make lint-staged exit with code 1 when tasks modify any files, making the precommit hook fail. This is similar to the git diff --exit-code option. Using this flag also implies the --no-revert flag which means any changes made by tasks will be left in the working tree after failing, so that they can be manually staged and the commit tried again.

  • #​1611cd05fd3 Thanks @​rlorenzo! - Added a new option --continue-on-error so that lint-staged will run all tasks to completion even if some of them fail. By default, lint-staded will exit early on the first failure.

  • #​163782fcc07 Thanks @​iiroj! - Internal lint-staged errors are now thrown and visible in the console output. Previously they were caught with the process exit code set to 1, but not logged. This happens when, for example, there's a syntax error in the lint-staged configuration file.

  • #​1647a5ecc06 Thanks @​iiroj! - Remove debug as a dependency due to recent malware issue; read more at debug-js/debug#1005. Because of this, the DEBUG environment variable is no longer supported — use the --debug to enable debugging

  • #​16368db2717 Thanks @​iiroj! - Added a new option --hide-unstaged so that lint-staged will hide all unstaged changes to tracked files before running tasks. The changes will be applied back after running the tasks. Note that the combination of flags --hide-unstaged --no-hide-partially-staged isn't meaningful and behaves the same as just --hide-unstaged.

    Thanks to @​ItsNickBarry for the idea and initial implementation in #​1552.

  • #​16487900b3b Thanks @​iiroj! - Remove lilconfig to reduce reliance on third-party dependencies. It was used to find possible config files outside of those tracked in Git, including from the parent directories. This behavior has been moved directly into lint-staged and should work about the same.

Patch Changes

v16.1.6

Compare Source

Patch Changes
  • #​1610e93578e Thanks @​iiroj! - Try to improve terminating of subprocess of tasks by using SIGKILL, and only calling pidtree when the the main task process has a known pid.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@pkg-pr-new

pkg-pr-newBot commented Sep 6, 2025

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@js-basics/vector@599

commit: d995d64

@renovaterenovateBot changed the title chore(deps): update dependency lint-staged to v16.1.6chore(deps): update dependency lint-staged to v16.2.0Sep 22, 2025
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch 2 times, most recently from cf21864 to ea6fe6aCompareSeptember 25, 2025 18:58
@renovaterenovateBot changed the title chore(deps): update dependency lint-staged to v16.2.0chore(deps): update dependency lint-staged to v16.2.1Sep 25, 2025
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch from ea6fe6a to 5709f42CompareSeptember 28, 2025 09:12
@renovaterenovateBot changed the title chore(deps): update dependency lint-staged to v16.2.1chore(deps): update dependency lint-staged to v16.2.2Sep 28, 2025
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch from 5709f42 to c7b08e1CompareSeptember 28, 2025 14:02
@renovaterenovateBot changed the title chore(deps): update dependency lint-staged to v16.2.2chore(deps): update dependency lint-staged to v16.2.3Sep 28, 2025
@renovaterenovateBot changed the title chore(deps): update dependency lint-staged to v16.2.3chore(deps): update dependency lint-staged to v16.2.4Oct 11, 2025
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch from c7b08e1 to 4c091abCompareOctober 11, 2025 09:14
@renovaterenovateBot changed the title chore(deps): update dependency lint-staged to v16.2.4chore(deps): update dependency lint-staged to v16.2.5Oct 20, 2025
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch from 4c091ab to dbb7d8cCompareOctober 20, 2025 17:45
@renovaterenovateBot changed the title chore(deps): update dependency lint-staged to v16.2.5chore(deps): update dependency lint-staged to v16.2.6Oct 22, 2025
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch from dbb7d8c to 544426aCompareOctober 22, 2025 23:09
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch from 544426a to dd6e3b8CompareNovember 11, 2025 00:58
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch from dd6e3b8 to c6eef77CompareNovember 18, 2025 12:32
@renovaterenovateBot changed the title chore(deps): update dependency lint-staged to v16.2.6chore(deps): update dependency lint-staged to v16.2.7Nov 19, 2025
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch from c6eef77 to 17a7035CompareNovember 19, 2025 20:51
@sonarqubecloud

Copy link
Copy Markdown

@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch from 17a7035 to 710e62bCompareFebruary 2, 2026 17:57
@renovaterenovateBot changed the title chore(deps): update dependency lint-staged to v16.2.7chore(deps): update dependency lint-staged to v16.3.0Feb 28, 2026
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch from 710e62b to ff8ea6eCompareFebruary 28, 2026 13:09
@renovaterenovateBot changed the title chore(deps): update dependency lint-staged to v16.3.0chore(deps): update dependency lint-staged to v16.3.1Mar 1, 2026
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch from ff8ea6e to 7f3626bCompareMarch 1, 2026 20:43
@renovaterenovateBot changed the title chore(deps): update dependency lint-staged to v16.3.1chore(deps): update dependency lint-staged to v16.3.2Mar 3, 2026
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch 2 times, most recently from d070a76 to 96bdb54CompareMarch 10, 2026 06:08
@renovaterenovateBot changed the title chore(deps): update dependency lint-staged to v16.3.2chore(deps): update dependency lint-staged to v16.3.3Mar 10, 2026
@renovaterenovateBot changed the title chore(deps): update dependency lint-staged to v16.3.3chore(deps): update dependency lint-staged to v16.3.4Mar 14, 2026
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch 2 times, most recently from ac5ca05 to 331e627CompareMarch 15, 2026 01:31
@renovaterenovateBot changed the title chore(deps): update dependency lint-staged to v16.3.4chore(deps): update dependency lint-staged to v16.4.0Mar 15, 2026
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch from 331e627 to 01f66b1CompareMarch 27, 2026 12:27
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch from 01f66b1 to a7fc4f1CompareApril 8, 2026 17:11
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch 2 times, most recently from 434a8c2 to ece8e6dCompareApril 29, 2026 14:47
@sonarqubecloud

Copy link
Copy Markdown

@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch from ece8e6d to 7d98e15CompareMay 12, 2026 11:39
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch from 7d98e15 to fc51d2cCompareMay 28, 2026 16:05
@sonarqubecloud

Copy link
Copy Markdown

@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch from fc51d2c to 58cd9f6CompareJuly 26, 2026 02:05
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch 2 times, most recently from 6033331 to 6fe183fCompareAugust 14, 2026 22:09
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch from 6fe183f to 2b7d292CompareAugust 26, 2026 12:15
@renovate
renovateBotforce-pushed the renovate/lint-staged-16.x branch from 2b7d292 to d995d64CompareSeptember 3, 2026 13:11
@sonarqubecloud

Copy link
Copy Markdown

Sign up for freeto 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.

0 participants