Skip to content

Commit a1e5ba8

Browse files
Bump lint-staged from 16.1.0 to 16.1.2 (#799)
Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from 16.1.0 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> </blockquote> </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> </blockquote> </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/v16.1.0...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=16.1.0&new-version=16.1.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR 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>
1 parent bded9be commit a1e5ba8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"jest": "^30.0.0",
5454
"jest-junit": "^16.0.0",
5555
"license-checker-rseidelsohn": "^4.4.2",
56-
"lint-staged": "^16.1.0",
56+
"lint-staged": "^16.1.2",
5757
"lodash": "^4.17.21",
5858
"nodemon": "^3.1.10",
5959
"prettier": "^3.5.3",

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ __metadata:
953953
jest: "npm:^30.0.0"
954954
jest-junit: "npm:^16.0.0"
955955
license-checker-rseidelsohn: "npm:^4.4.2"
956-
lint-staged: "npm:^16.1.0"
956+
lint-staged: "npm:^16.1.2"
957957
lodash: "npm:^4.17.21"
958958
nodemon: "npm:^3.1.10"
959959
prettier: "npm:^3.5.3"
@@ -4608,9 +4608,9 @@ __metadata:
46084608
languageName: node
46094609
linkType: hard
46104610

4611-
"lint-staged@npm:^16.1.0":
4612-
version: 16.1.0
4613-
resolution: "lint-staged@npm:16.1.0"
4611+
"lint-staged@npm:^16.1.2":
4612+
version: 16.1.2
4613+
resolution: "lint-staged@npm:16.1.2"
46144614
dependencies:
46154615
chalk: "npm:^5.4.1"
46164616
commander: "npm:^14.0.0"
@@ -4624,7 +4624,7 @@ __metadata:
46244624
yaml: "npm:^2.8.0"
46254625
bin:
46264626
lint-staged: bin/lint-staged.js
4627-
checksum: 5cc33d61ec2c682e488eb3fcea5c153ce486623b80314f2c56af438ad78d73c7fcd3e7c911d273ac740bd34f1e030d35d4fb92d8e476984150c0c59724ac7fa4
4627+
checksum: 2a299fc0d56e0a64ed0af8caf937e00eac47cb270df2917e2d4b939074eaa63ecd7f16d3b70b7e5e57bff75ffbbbf8aae5768dedf3dfd45e3ca1b9caaf7740cc
46284628
languageName: node
46294629
linkType: hard
46304630

0 commit comments

Comments
 (0)