Skip to content

Commit f8ddf68

Browse files
Bump lint-staged from 15.5.2 to 16.1.2 (#144)
Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from 15.5.2 to 16.1.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/lint-staged/lint-staged/releases">lint-staged's releases</a>.</em></p> <blockquote> <h2>v16.1.2</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1570">#1570</a> <a href="https://github.com/lint-staged/lint-staged/commit/a7c0c88bcfe94e695528cb33e69fea58586691fc"><code>a7c0c88</code></a> Thanks <a href="https://github.com/ItsNickBarry"><code>@​ItsNickBarry</code></a>! - When using <code>--diff-filter</code> with the <code>D</code> option to include deleted staged files, <em>lint-staged</em> no longer tries to stage the deleted files, unless they're no longer deleted. Previously this caused an error from <code>git add</code> like <code>fatal: pathspec 'deleted-file' did not match any files</code>.</p> </li> <li> <p><a href="https://github.com/lint-staged/lint-staged/commit/38f942ecc456355d5f12af68db1696f3411f65c2"><code>38f942e</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - Removed an extraneous log entry that printed <code>shouldHidePArtiallyStagedFiles</code> to console output.</p> </li> </ul> <h2>v16.1.1</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1565">#1565</a> <a href="https://github.com/lint-staged/lint-staged/commit/3686977ccdadf70b709c16c0346ef6c2b18e2376"><code>3686977</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - <em>Lint-staged</em> now explicitly warns about potential data loss when using <code>--no-stash</code>.</p> </li> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1571">#1571</a> <a href="https://github.com/lint-staged/lint-staged/commit/02299a9e4f98a05c13beb27f3596af73aaa8c150"><code>02299a9</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - Function tasks (introduced in v16.0.0) only receive the staged files matching the configured glob, instead of all staged files.</p> </li> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1563">#1563</a> <a href="https://github.com/lint-staged/lint-staged/commit/bc61c74383b6d100c55b8d275b979d583ffbe5a1"><code>bc61c74</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - This version fixes incorrect behavior where unstaged changes were committed when using the <code>--no-stash</code> option. This happened because <code>--no-stash</code> implied <code>--no-hide-partially-staged</code>, meaning unstaged changes to files which also had other staged changes were added to the commit by <em>lint-staged</em>; this is no longer the case.</p> <p>The previous (incorrect) behavior can still be achieved by using both options <code>--no-stash --no-hide-partially-staged</code> at the same time.</p> </li> </ul> <h2>v16.1.0</h2> <h3>Minor Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1536">#1536</a> <a href="https://github.com/lint-staged/lint-staged/commit/e729daa3b3ae28e613f63e730652dbfad5d1c594"><code>e729daa</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - A new flag <code>--no-revert</code> has been introduced for when task modifications should be applied to the index before aborting the commit in case of errors. By default, <em>lint-staged</em> will clear all task modifications and revert to the original state.</p> </li> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1550">#1550</a> <a href="https://github.com/lint-staged/lint-staged/commit/b27fa3fecb75bcdcaa4bcd483c9d5c0755a22607"><code>b27fa3f</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - <em>Lint-staged</em> now ignores symlinks and leaves them out from the list of staged files.</p> </li> </ul> <h3>Patch Changes</h3> <ul> <li><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1558">#1558</a> <a href="https://github.com/lint-staged/lint-staged/commit/c37dc38dddbdebc41df4dbd909d79c98c3f69eb3"><code>c37dc38</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - The minimum required Node.js version is lowered to <code>20.17</code> following <a href="https://github.com/sindresorhus/nano-spawn/releases/tag/v1.0.2">nano-spawn@1.0.2</a>.</li> </ul> <h2>v16.0.0</h2> <h3>Major Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1546">#1546</a> <a href="https://github.com/lint-staged/lint-staged/commit/158d15c9aea0a3a87790ec3766442763cf387dba"><code>158d15c</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - Processes are spawned using <a href="https://github.com/sindresorhus/nano-spawn">nano-spawn</a> instead of <a href="https://github.com/sindresorhus/execa">execa</a>. If you are using Node.js scripts as tasks, you might need to explicitly run them with <code>node</code>, especially when using Windows:</p> <pre lang="json"><code>{ &quot;*.js&quot;: &quot;node my-js-linter.js&quot; } </code></pre> </li> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1546">#1546</a> <a href="https://github.com/lint-staged/lint-staged/commit/158d15c9aea0a3a87790ec3766442763cf387dba"><code>158d15c</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - The <code>--shell</code> flag has been removed and <em>lint-staged</em> no longer supports evaluating commands directly via a shell. To migrate existing commands, you can create a shell script and invoke it instead. Lint-staged will pass matched staged files as a list of arguments, accessible via <code>&quot;$@&quot;</code>:</p> <pre lang="shell"><code># my-script.sh #!/bin/bash <p>echo &quot;Staged files: $@&quot;<br /> </code></pre></p> <p>and</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/lint-staged/lint-staged/blob/main/CHANGELOG.md">lint-staged's changelog</a>.</em></p> <blockquote> <h2>16.1.2</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1570">#1570</a> <a href="https://github.com/lint-staged/lint-staged/commit/a7c0c88bcfe94e695528cb33e69fea58586691fc"><code>a7c0c88</code></a> Thanks <a href="https://github.com/ItsNickBarry"><code>@​ItsNickBarry</code></a>! - When using <code>--diff-filter</code> with the <code>D</code> option to include deleted staged files, <em>lint-staged</em> no longer tries to stage the deleted files, unless they're no longer deleted. Previously this caused an error from <code>git add</code> like <code>fatal: pathspec 'deleted-file' did not match any files</code>.</p> </li> <li> <p><a href="https://github.com/lint-staged/lint-staged/commit/38f942ecc456355d5f12af68db1696f3411f65c2"><code>38f942e</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - Removed an extraneous log entry that printed <code>shouldHidePArtiallyStagedFiles</code> to console output.</p> </li> </ul> <h2>16.1.1</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1565">#1565</a> <a href="https://github.com/lint-staged/lint-staged/commit/3686977ccdadf70b709c16c0346ef6c2b18e2376"><code>3686977</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - <em>Lint-staged</em> now explicitly warns about potential data loss when using <code>--no-stash</code>.</p> </li> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1571">#1571</a> <a href="https://github.com/lint-staged/lint-staged/commit/02299a9e4f98a05c13beb27f3596af73aaa8c150"><code>02299a9</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - Function tasks (introduced in v16.0.0) only receive the staged files matching the configured glob, instead of all staged files.</p> </li> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1563">#1563</a> <a href="https://github.com/lint-staged/lint-staged/commit/bc61c74383b6d100c55b8d275b979d583ffbe5a1"><code>bc61c74</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - This version fixes incorrect behavior where unstaged changes were committed when using the <code>--no-stash</code> option. This happened because <code>--no-stash</code> implied <code>--no-hide-partially-staged</code>, meaning unstaged changes to files which also had other staged changes were added to the commit by <em>lint-staged</em>; this is no longer the case.</p> <p>The previous (incorrect) behavior can still be achieved by using both options <code>--no-stash --no-hide-partially-staged</code> at the same time.</p> </li> </ul> <h2>16.1.0</h2> <h3>Minor Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1536">#1536</a> <a href="https://github.com/lint-staged/lint-staged/commit/e729daa3b3ae28e613f63e730652dbfad5d1c594"><code>e729daa</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - A new flag <code>--no-revert</code> has been introduced for when task modifications should be applied to the index before aborting the commit in case of errors. By default, <em>lint-staged</em> will clear all task modifications and revert to the original state.</p> </li> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1550">#1550</a> <a href="https://github.com/lint-staged/lint-staged/commit/b27fa3fecb75bcdcaa4bcd483c9d5c0755a22607"><code>b27fa3f</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - <em>Lint-staged</em> now ignores symlinks and leaves them out from the list of staged files.</p> </li> </ul> <h3>Patch Changes</h3> <ul> <li><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1558">#1558</a> <a href="https://github.com/lint-staged/lint-staged/commit/c37dc38dddbdebc41df4dbd909d79c98c3f69eb3"><code>c37dc38</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - The minimum required Node.js version is lowered to <code>20.17</code> following <a href="https://github.com/sindresorhus/nano-spawn/releases/tag/v1.0.2">nano-spawn@1.0.2</a>.</li> </ul> <h2>16.0.0</h2> <h3>Major Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1546">#1546</a> <a href="https://github.com/lint-staged/lint-staged/commit/158d15c9aea0a3a87790ec3766442763cf387dba"><code>158d15c</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - Processes are spawned using <a href="https://github.com/sindresorhus/nano-spawn">nano-spawn</a> instead of <a href="https://github.com/sindresorhus/execa">execa</a>. If you are using Node.js scripts as tasks, you might need to explicitly run them with <code>node</code>, especially when using Windows:</p> <pre lang="json"><code>{ &quot;*.js&quot;: &quot;node my-js-linter.js&quot; } </code></pre> </li> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1546">#1546</a> <a href="https://github.com/lint-staged/lint-staged/commit/158d15c9aea0a3a87790ec3766442763cf387dba"><code>158d15c</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - The <code>--shell</code> flag has been removed and <em>lint-staged</em> no longer supports evaluating commands directly via a shell. To migrate existing commands, you can create a shell script and invoke it instead. Lint-staged will pass matched staged files as a list of arguments, accessible via <code>&quot;$@&quot;</code>:</p> <pre lang="shell"><code># my-script.sh #!/bin/bash <p></code></pre></p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/lint-staged/lint-staged/commit/0c48e29875c334487d250ab164e96febf8dfab5a"><code>0c48e29</code></a> chore(changeset): release</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/e07227e987244c8806570c29be6e3012d54564a5"><code>e07227e</code></a> perf: call rev-parse only once instead of three times when resolving git repo</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/38f942ecc456355d5f12af68db1696f3411f65c2"><code>38f942e</code></a> fix: remove extra log entry</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/5031a71dd22961e69881b4d8deda67904d570d3a"><code>5031a71</code></a> perf: further optimize file chunking</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/6ec38b9acf02ee55d0c6bcbdb40a9e5c7bbd0571"><code>6ec38b9</code></a> perf: optimize file list length calculation (<a href="https://redirect.github.com/lint-staged/lint-staged/issues/1581">#1581</a>)</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/a7c0c88bcfe94e695528cb33e69fea58586691fc"><code>a7c0c88</code></a> fix: only stage changes to deleted files if they're no longer deleted after r...</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/ccd5edd8955f2ce8577bc381a083062598c8ca2c"><code>ccd5edd</code></a> test: pass --no-error-on-unmatched-pattern to prettier command in --diff-opti...</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/48a6e952d11feeb2bd194a08a62f28c8f7e83614"><code>48a6e95</code></a> test: add failing test for staged deleted files not passed directly to tasks ...</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/b56b29efe637e3fee836e5bcc1c25354f70d5fc0"><code>b56b29e</code></a> test: add failing test for staged deleted files with diff filter D</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/8420429b9d7c007f724e95ec301e492af3be351a"><code>8420429</code></a> chore(changeset): release</li> <li>Additional commits viewable in <a href="https://github.com/lint-staged/lint-staged/compare/v15.5.2...v16.1.2">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=lint-staged&package-manager=npm_and_yarn&previous-version=15.5.2&new-version=16.1.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent ef82d76 commit f8ddf68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"devDependencies": {
33
"husky": "^9.0.10",
4-
"lint-staged": "^15.2.2",
4+
"lint-staged": "^16.1.2",
55
"prettier": "^3.2.5"
66
},
77
"lint-staged": {

0 commit comments

Comments
 (0)