Skip to content

Commit d1a1f16

Browse files
chore(deps-dev): bump lint-staged from 15.5.1 to 16.1.0 (#100)
Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from 15.5.1 to 16.1.0. <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.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> <pre lang="json"><code>{ &quot;*.js&quot;: &quot;my-script.sh&quot; } </code></pre> <p>If you were using the shell option to avoid passing filenames to tasks, for example <code>bash -c 'tsc --noEmit'</code>, use the function syntax instead:</p> <pre lang="js"><code>export default { '*.ts': () =&gt; 'tsc --noEmit' } </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>! - Validation for deprecated advanced configuration has been removed. The advanced configuration was removed in <em>lint-staged</em> version 9 and until now validation has failed if advanced configuration options were detected. Going forward the entire configuration will be treated with the same logic and if these advanced options are still present, they might be treated as valid globs for staged files instead.</p> </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 lowest supported Node.js version is <code>20.18</code>. Please upgrade your Node.js version.</p> </li> </ul> <h3>Minor Changes</h3> <ul> <li><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1401">#1401</a> <a href="https://github.com/lint-staged/lint-staged/commit/27110ef8ee92c5d104235b4094abb3197b5bf074"><code>27110ef</code></a> Thanks <a href="https://github.com/RohitLuthra19"><code>@​RohitLuthra19</code></a>! - Added support for directly running functions on staged files. To configure a function task, use an object with a title and the task itself:</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.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>echo &quot;Staged files: $@&quot;<br /> </code></pre></p> <p>and</p> <pre lang="json"><code>{ &quot;*.js&quot;: &quot;my-script.sh&quot; } </code></pre> <p>If you were using the shell option to avoid passing filenames to tasks, for example <code>bash -c 'tsc --noEmit'</code>, use the function syntax instead:</p> <pre lang="js"><code>export default { '*.ts': () =&gt; 'tsc --noEmit' } </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>! - Validation for deprecated advanced configuration has been removed. The advanced configuration was removed in <em>lint-staged</em> version 9 and until now validation has failed if advanced configuration options were detected. Going forward the entire configuration will be treated with the same logic and if these advanced options are still present, they might be treated as valid globs for staged files instead.</p> </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 lowest supported Node.js version is <code>20.18</code>. Please upgrade your Node.js version.</p> </li> </ul> <h3>Minor Changes</h3> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/lint-staged/lint-staged/commit/f92caaad52cf7f87d8368bdb08abbc64b378b7c9"><code>f92caaa</code></a> chore(changeset): release</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/e729daa3b3ae28e613f63e730652dbfad5d1c594"><code>e729daa</code></a> feat: add &quot;--no-revert&quot; flag to disable reverting to original state in case o...</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/c37dc38dddbdebc41df4dbd909d79c98c3f69eb3"><code>c37dc38</code></a> fix: lower minimum required Node.js version to 20.17</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/48f778f777e6ab28ad47b78e09ef04b54ff6e0ae"><code>48f778f</code></a> build(deps): update dependencies</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/b27fa3fecb75bcdcaa4bcd483c9d5c0755a22607"><code>b27fa3f</code></a> feat: leave out symlinks from list of staged files</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/a941f2caee9895436b8e4ed3852c771ffbde21a8"><code>a941f2c</code></a> docs: add table of contents section to README.md (<a href="https://redirect.github.com/lint-staged/lint-staged/issues/1555">#1555</a>)</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/dad5490949f31442e7580246a9fad5565257d6cb"><code>dad5490</code></a> chore(changeset): release</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/1c19e82da16db76dbc0b1f5db1dca516753c7c1a"><code>1c19e82</code></a> build(deps): update dependencies and require Node.js 20.18</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/08cf8f54e4c5520790d8f02ca5315d7d1285e414"><code>08cf8f5</code></a> docs: update README.md and bump nano-spawn as major change</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/276dcc8a05dafc1b33041865cc9bb912fbd10e7c"><code>276dcc8</code></a> refactor: simplify config validation</li> <li>Additional commits viewable in <a href="https://github.com/lint-staged/lint-staged/compare/v15.5.1...v16.1.0">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.1&new-version=16.1.0)](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 e7678cb commit d1a1f16

2 files changed

Lines changed: 32 additions & 27 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"ava": "^6.3.0",
4343
"c8": "^10.1.3",
4444
"husky": "^9.1.7",
45-
"lint-staged": "^15.5.1",
45+
"lint-staged": "^16.1.0",
4646
"mock-fs": "^5.5.0",
4747
"prettier": "^3.5.3",
4848
"prettier-package-json": "^2.8.0",

yarn.lock

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,10 +1528,10 @@ columnify@^1.6.0:
15281528
strip-ansi "^6.0.1"
15291529
wcwidth "^1.0.0"
15301530

1531-
commander@^13.1.0:
1532-
version "13.1.0"
1533-
resolved "https://registry.yarnpkg.com/commander/-/commander-13.1.0.tgz#776167db68c78f38dcce1f9b8d7b8b9a488abf46"
1534-
integrity sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==
1531+
commander@^14.0.0:
1532+
version "14.0.0"
1533+
resolved "https://registry.yarnpkg.com/commander/-/commander-14.0.0.tgz#f244fc74a92343514e56229f16ef5c5e22ced5e9"
1534+
integrity sha512-2uM9rYjPvyq39NwLRqaiLtWHyDC1FvryJDa2ATTVims5YAS4PupsEQsDvP14FqhFr0P49CYDugi59xaxJlTXRA==
15351535

15361536
commander@^4.0.1:
15371537
version "4.1.1"
@@ -1742,10 +1742,10 @@ date-time@^3.1.0:
17421742
dependencies:
17431743
time-zone "^1.0.0"
17441744

1745-
debug@4, debug@^4.0.0, debug@^4.3.3, debug@^4.3.4, debug@^4.4.0:
1746-
version "4.4.0"
1747-
resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.0.tgz#2b3f2aea2ffeb776477460267377dc8710faba8a"
1748-
integrity sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==
1745+
debug@4, debug@^4.0.0, debug@^4.3.3, debug@^4.3.4, debug@^4.4.0, debug@^4.4.1:
1746+
version "4.4.1"
1747+
resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.1.tgz#e5a8bc6cbc4c6cd3e64308b0693a3d4fa550189b"
1748+
integrity sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==
17491749
dependencies:
17501750
ms "^2.1.3"
17511751

@@ -1929,7 +1929,7 @@ execa@^5.0.0:
19291929
signal-exit "^3.0.3"
19301930
strip-final-newline "^2.0.0"
19311931

1932-
execa@^8.0.0, execa@^8.0.1:
1932+
execa@^8.0.0:
19331933
version "8.0.1"
19341934
resolved "https://registry.yarnpkg.com/execa/-/execa-8.0.1.tgz#51f6a5943b580f963c3ca9c6321796db8cc39b8c"
19351935
integrity sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==
@@ -2964,26 +2964,26 @@ lines-and-columns@^1.1.6:
29642964
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632"
29652965
integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==
29662966

2967-
lint-staged@^15.5.1:
2968-
version "15.5.1"
2969-
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-15.5.1.tgz#6de35298964641b8b6e060d3db0fb6ac866c6e24"
2970-
integrity sha512-6m7u8mue4Xn6wK6gZvSCQwBvMBR36xfY24nF5bMTf2MHDYG6S3yhJuOgdYVw99hsjyDt2d4z168b3naI8+NWtQ==
2967+
lint-staged@^16.1.0:
2968+
version "16.1.0"
2969+
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-16.1.0.tgz#06807ef3dbbade9e4e3416897aac0ac5b99a2377"
2970+
integrity sha512-HkpQh69XHxgCjObjejBT3s2ILwNjFx8M3nw+tJ/ssBauDlIpkx2RpqWSi1fBgkXLSSXnbR3iEq1NkVtpvV+FLQ==
29712971
dependencies:
29722972
chalk "^5.4.1"
2973-
commander "^13.1.0"
2974-
debug "^4.4.0"
2975-
execa "^8.0.1"
2973+
commander "^14.0.0"
2974+
debug "^4.4.1"
29762975
lilconfig "^3.1.3"
2977-
listr2 "^8.2.5"
2976+
listr2 "^8.3.3"
29782977
micromatch "^4.0.8"
2978+
nano-spawn "^1.0.2"
29792979
pidtree "^0.6.0"
29802980
string-argv "^0.3.2"
2981-
yaml "^2.7.0"
2981+
yaml "^2.8.0"
29822982

2983-
listr2@^8.2.5:
2984-
version "8.2.5"
2985-
resolved "https://registry.yarnpkg.com/listr2/-/listr2-8.2.5.tgz#5c9db996e1afeb05db0448196d3d5f64fec2593d"
2986-
integrity sha512-iyAZCeyD+c1gPyE9qpFu8af0Y+MRtmKOncdGoA2S5EY8iFq99dmmvkNnHiWo+pj0s7yH7l3KPIgee77tKpXPWQ==
2983+
listr2@^8.3.3:
2984+
version "8.3.3"
2985+
resolved "https://registry.yarnpkg.com/listr2/-/listr2-8.3.3.tgz#815fc8f738260ff220981bf9e866b3e11e8121bf"
2986+
integrity sha512-LWzX2KsqcB1wqQ4AHgYb4RsDXauQiqhjLk+6hjbaeHG4zpjjVAB6wC/gz6X0l+Du1cN3pUB5ZlrvTbhGSNnUQQ==
29872987
dependencies:
29882988
cli-truncate "^4.0.0"
29892989
colorette "^2.0.20"
@@ -3429,6 +3429,11 @@ mz@^2.4.0:
34293429
object-assign "^4.0.1"
34303430
thenify-all "^1.0.0"
34313431

3432+
nano-spawn@^1.0.2:
3433+
version "1.0.2"
3434+
resolved "https://registry.yarnpkg.com/nano-spawn/-/nano-spawn-1.0.2.tgz#9853795681f0e96ef6f39104c2e4347b6ba79bf6"
3435+
integrity sha512-21t+ozMQDAL/UGgQVBbZ/xXvNO10++ZPuTmKRO8k9V3AClVRht49ahtDjfY8l1q6nSHOrE5ASfthzH3ol6R/hg==
3436+
34323437
negotiator@^0.6.3:
34333438
version "0.6.3"
34343439
resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd"
@@ -5200,10 +5205,10 @@ yaml@^1.10.0:
52005205
resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b"
52015206
integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==
52025207

5203-
yaml@^2.7.0:
5204-
version "2.7.0"
5205-
resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.7.0.tgz#aef9bb617a64c937a9a748803786ad8d3ffe1e98"
5206-
integrity sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==
5208+
yaml@^2.8.0:
5209+
version "2.8.0"
5210+
resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.8.0.tgz#15f8c9866211bdc2d3781a0890e44d4fa1a5fff6"
5211+
integrity sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ==
52075212

52085213
yargs-parser@^20.2.2:
52095214
version "20.2.9"

0 commit comments

Comments
 (0)