---
title: "lint-staged 17.6.2 Breaking Changes on npm | Since.dev"
description: "What each lint-staged release removed, renamed or changed: 68 breaking changes in 18 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/lint-staged
last_updated: 2026-12-04
---

# lint-staged breaking changes

lint-staged 17.6.2 (November 22, 2026) is its newest release with breaking changes, 2 of them. The first: Limits --fail-on-changes to named files when committing with a pathspec in lint-staged 17.6.2. Every breaking API change we have recorded in lint-staged on npm: 68 breaking changes in 18 versions. Below, its 18 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `17.6.3`, released November 28, 2026. [Source repository](https://github.com/lint-staged/lint-staged)

Its 17.0.0 release requires Node.js 22.22.1 or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [16.2.1](#v-16-2-1) to [17.6.2](#v-17-6-2): 40 breaking changes in 10 versions.
- From [13.0.0](#v-13-0-0) to [17.6.2](#v-17-6-2): 67 breaking changes in 17 versions.

## lint-staged 17.6.2 breaking changes

lint-staged 17.6.2, released November 22, 2026: 2 breaking changes.

- **Behavior changed**  

With --fail-on-changes and a pathspec such as git commit file.js (implying --only), the commit now fails only if those files changed. The default git commit behavior is unchanged. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v17.6.2)
- **Behavior changed**  

With a pathspec such as git commit file.js (implying --only), tasks now stage only those files instead of all tracked files edited by tasks. The default git commit behavior is unchanged. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v17.6.2)

## lint-staged 17.6.0 breaking changes

lint-staged 17.6.0, released September 26, 2026: 9 breaking changes.

- **Behavior changed**  

Tracked files changed by tasks are now staged, including unstaged edits to those files and files outside the configured globs. Use --hide-unstaged to hide your unstaged changes while tasks run. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v17.6.0)
- **Behavior changed**  

Inner arrays of tasks returned from a function now run in parallel, matching array-based configs. Configs that relied on sequential execution of those tasks may behave differently. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v17.6.0)
- **Signature changed** `config:AsyncGenerateTask`  

Was type AsyncGenerateTask = (files: readonly string\[\]) => Promise\<string | string\[\]>; now type AsyncGenerateTask\<Result> = (files: readonly string\[\]) => Promise\<Result>. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.6.0)
- **Signature changed** `config:GenerateTask`  

Was type GenerateTask = SyncGenerateTask | AsyncGenerateTask; now type GenerateTask\<Result = string | (string | string\[\])\[\]> = | SyncGenerateTask\<Result> | AsyncGenerateTask\<Result>. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.6.0)
- **Signature changed** `config:ParallelTasks`  

Was type ParallelTasks = (SpawnedTask | GenerateTask)\[\]; now type ParallelTasks = (SpawnedTask | GenerateTask\<string>)\[\]. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.6.0)
- **Signature changed** `config:SequentialTasks`  

Was type SequentialTasks = (SpawnedTask | GenerateTask | ParallelTasks)\[\]; now type SequentialTasks = (SpawnedTask | GenerateTask\<string | string\[\]> | ParallelTasks)\[\]. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.6.0)
- **Signature changed** `config:SyncGenerateTask`  

Was type SyncGenerateTask = (files: readonly string\[\]) => string | string\[\]; now type SyncGenerateTask\<Result> = (files: readonly string\[\]) => Result. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.6.0)
- **Signature changed** `config:TaskFunction`  

Was type TaskFunction = {title: string task: (filepaths: readonly string\[\]) => void | Promise\<void>}; now type TaskFunction = {title: string task: (filepaths: readonly string\[\], context: TaskFunctionContext) => void | Promise\<void>}. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.6.0)
- **Signature changed** `config:TaskFunction.task`  

Was task: (filepaths: readonly string\[\]) => void | Promise\<void>; now task: (filepaths: readonly string\[\], context: TaskFunctionContext) => void | Promise\<void>. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.6.0)

## lint-staged 17.5.1 breaking changes

lint-staged 17.5.1, released September 10, 2026: 1 breaking change.

- **Signature changed** `config:defineConfig`  

Was const defineConfig; now function defineConfig(config: Configuration): Configuration. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.5.1)

## lint-staged 17.5.0 breaking changes

lint-staged 17.5.0, released September 5, 2026: 1 breaking change.

- **Behavior changed**  

lint-staged now exits when files were staged with git add --intent-to-add, since Git stash does not support them. Stage those files normally or remove the intent-to-add entries before running. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v17.5.0)

## lint-staged 17.4.1 breaking changes

lint-staged 17.4.1, released August 27, 2026: 11 breaking changes.

- **Removed** `LogFunction`  

LogFunction was removed in lint-staged 17.4.1 [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.4.1)
- **Renamed** `AsyncGenerateTask`  

Use AsyncGenerateTask instead. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.4.1)
- **Renamed** `GenerateTask`  

Use GenerateTask instead. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.4.1)
- **Renamed** `ParallelTasks`  

Use ParallelTasks instead. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.4.1)
- **Renamed** `SequentialTasks`  

Use SequentialTasks instead. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.4.1)
- **Renamed** `SpawnedTask`  

Use SpawnedTask instead. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.4.1)
- **Renamed** `SyncGenerateTask`  

Use SyncGenerateTask instead. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.4.1)
- **Renamed** `TaskFunction`  

Use TaskFunction instead. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.4.1)
- **Behavior changed**  

Parsing of lint-staged CLI flags and Node.js API options was rewritten so the two behave consistently. Code relying on previous quirks in option parsing may need checking. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v17.4.1)
- **Behavior changed**  

The automatic backup stash now behaves differently when running in multiple worktrees in parallel. Avoid running multiple instances in the same tree. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v17.4.1)

And 1 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## lint-staged 17.3.0 breaking changes

lint-staged 17.3.0, released July 31, 2026: 7 breaking changes.

- **Behavior changed**  

While a merge is in progress, files unchanged from the merged branch are skipped. Only files with staged changes against both HEAD and MERGE_HEAD are included. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v17.3.0)
- **Behavior changed**  

A nested array inside a glob's task array runs its commands in parallel, while the outer array still runs sequentially. Review configs that rely on the old ordering. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v17.3.0)
- **Signature changed** `AsyncGenerateTask`  

Was type AsyncGenerateTask = (stagedFileNames: readonly string\[\]) => Promise\<string | string\[\]>; now type AsyncGenerateTask = (files: readonly string\[\]) => Promise\<string | string\[\]>. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.3.0)
- **Signature changed** `Configuration`  

Was type Configuration = | Record\<string, string | TaskFunction | GenerateTask | (string | GenerateTask)\[\]> | GenerateTask; now type Configuration = | Record\<string, SpawnedTask | TaskFunction | GenerateTask | SequentialTasks> |... [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.3.0)
- **Signature changed** `SyncGenerateTask`  

Was type SyncGenerateTask = (stagedFileNames: readonly string\[\]) => string | string\[\]; now type SyncGenerateTask = (files: readonly string\[\]) => string | string\[\]. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.3.0)
- **Signature changed** `TaskFunction`  

Was type TaskFunction = {title: string task: (stagedFileNames: readonly string\[\]) => void | Promise\<void>}; now type TaskFunction = {title: string task: (filepaths: readonly string\[\]) => void | Promise\<void>}. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.3.0)
- **Signature changed** `TaskFunction.task`  

Was task: (stagedFileNames: readonly string\[\]) => void | Promise\<void>; now task: (filepaths: readonly string\[\]) => void | Promise\<void>. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/17.3.0)

## Older versions

12 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### lint-staged 17.2.0 breaking changes

lint-staged 17.2.0, released July 23, 2026: 1 breaking change.

- **Behavior changed**  

Native JavaScript/Node.js function tasks now run once with all matched files, instead of several times when the file list was chunked. Check any function task that assumed it runs once per chunk. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v17.2.0)

### lint-staged 17.1.0 breaking changes

lint-staged 17.1.0, released July 18, 2026: 2 breaking changes.

- **Behavior changed**  

A failed JavaScript function task now kills the other tasks, unless --continue-on-error is used. Previously its failure did not affect other tasks, so workflows relying on that must add --continue-on-error. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v17.1.0)
- **Behavior changed**  

The console output was simplified to use fewer interactive spinners and more explicit messages. Scripts or tooling that parse the old output format may need updating. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v17.1.0)

### lint-staged 17.0.5 breaking changes

lint-staged 17.0.5, released May 16, 2026: 1 breaking change.

- **Default changed** `--max-arg-length`  

The default for --max-arg-length is now computed correctly for the running platform, which changes how staged file lists are split into chunks. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v17.0.5)

### lint-staged 17.0.0 breaking changes

lint-staged 17.0.0, released May 6, 2026: 5 breaking changes.

- **Removed**  

Node.js 20 is no longer supported and the minimum is now 22.22.1. Upgrade Node.js before updating lint-staged. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v17.0.0)
- **Behavior changed**  

Scripts with a node shebang, such as Prettier or ESLint, now use the Node.js version that started lint-staged rather than the version manager default. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v17.0.0)

And 3 more in this version.

### lint-staged 16.2.1 breaking changes

lint-staged 16.2.1, released September 25, 2025: 9 breaking changes.

- **Signature changed**  

Task functions receive the staged files as readonly string\[\] and can no longer mutate the list. Code that changes the array in place or expects string\[\] may fail to type-check. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v16.2.1)
- **Signature changed** `AsyncGenerateTask`  

Was type AsyncGenerateTask = (stagedFileNames: string\[\]) => Promise\<string | string\[\]>; now type AsyncGenerateTask = (stagedFileNames: readonly string\[\]) => Promise\<string | string\[\]>. [npmjs.com](https://www.npmjs.com/package/lint-staged/v/16.2.1)

And 7 more in this version.

### lint-staged 16.2.0 breaking changes

lint-staged 16.2.0, released September 22, 2025: 2 breaking changes.

- **Removed** `DEBUG`  

The DEBUG environment variable is no longer supported. Use the --debug flag to enable debugging instead. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v16.2.0)
- **Signature changed** `Options`  

Was type Options = {allowEmpty?: boolean concurrent?: boolean | number config?: Configuration configPath?: string cwd?: string debug?: boolean diff?: string diffFilter?: string maxArgLength?: number quiet?: boolean relative?: boolean... [npmjs.com](https://www.npmjs.com/package/lint-staged/v/16.2.0)

### lint-staged 16.1.1 breaking changes

lint-staged 16.1.1, released June 14, 2025: 2 breaking changes.

- **Behavior changed**  

Function tasks now get only the staged files that match the configured glob, not all staged files. Check any function task that assumed it received every staged file. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v16.1.1)
- **Behavior changed** `--no-stash`  

With --no-stash, unstaged changes to partially staged files are no longer added to the commit. To keep the old behavior, pass both --no-stash and --no-hide-partially-staged. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v16.1.1)

### lint-staged 16.1.0 breaking changes

lint-staged 16.1.0, released May 27, 2025: 2 breaking changes.

- **Behavior changed**  

Staged symlinks are no longer passed to tasks. Users who relied on symlinks being processed must handle them separately. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v16.1.0)
- **Signature changed** `Options`  

Was type Options = {allowEmpty?: boolean concurrent?: boolean | number config?: Configuration configPath?: string cwd?: string debug?: boolean diff?: string diffFilter?: string maxArgLength?: number quiet?: boolean relative?: boolean... [npmjs.com](https://www.npmjs.com/package/lint-staged/v/16.1.0)

### lint-staged 16.0.0 breaking changes

lint-staged 16.0.0, released May 10, 2025: 10 breaking changes.

- **Removed**  

The lowest supported Node.js version is now 20.18. Upgrade Node.js before using this release. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v16.0.0)
- **Removed** `FunctionTask`  

FunctionTask was removed in lint-staged 16.0.0 [npmjs.com](https://www.npmjs.com/package/lint-staged/v/16.0.0)

And 8 more in this version.

### lint-staged 15.0.0 breaking changes

lint-staged 15.0.0, released October 14, 2023: 1 breaking change.

- **Removed**  

This release drops support for Node.js 16 and requires at least Node.js 18.12.0. Upgrade Node.js before installing this version. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v15.0.0)

### lint-staged 14.0.0 breaking changes

lint-staged 14.0.0, released August 13, 2023: 1 breaking change.

- **Removed**  

lint-staged 14.0.0 no longer supports Node.js 14. Upgrade Node.js to at least 16.14.0 before updating. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v14.0.0)

### lint-staged 13.0.0 breaking changes

lint-staged 13.0.0, released June 1, 2022: 1 breaking change.

- **Removed**  

lint-staged no longer supports Node.js 12, which reached end of life on 30 April 2022. Upgrade Node.js before using this version. [github.com](https://github.com/lint-staged/lint-staged/releases/tag/v13.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
