dependabot[bot] opened a new pull request, #3048:
URL: https://github.com/apache/apisix-dashboard/pull/3048

   Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from 15.5.2 
to 16.0.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.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>
   <p><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:</p>
   <pre lang="js"><code>export default {
     '*.js': {
       title: 'My task',
       task: async (files) =&gt; {
         console.log('Staged JS files:', files)
       },
     },
   }
   </code></pre>
   </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.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>
   <p><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:</p>
   <pre lang="js"><code>export default {
     '*.js': {
       title: 'My task',
       task: async (files) =&gt; {
         console.log('Staged JS files:', files)
       },
     },
   }
   </code></pre>
   </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/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><a 
href="https://github.com/lint-staged/lint-staged/commit/d4b7cacfb093bbd5e1a1353047a7b4e2deed0847";><code>d4b7cac</code></a>
 test: update tests</li>
   <li><a 
href="https://github.com/lint-staged/lint-staged/commit/0ee9ab86b1e5ecd515e07e09e5a60932eb791174";><code>0ee9ab8</code></a>
 fix: update TypeScript type definitions</li>
   <li><a 
href="https://github.com/lint-staged/lint-staged/commit/12525b2c66e314bb6d94fdc793d9b953a5f0d5c7";><code>12525b2</code></a>
 refactor: rename functions</li>
   <li><a 
href="https://github.com/lint-staged/lint-staged/commit/541c35312a47106faaf861c96ec4affcac216e47";><code>541c353</code></a>
 refactor: separate &quot;make cmd tasks&quot; and &quot;make function 
tasks&quot;</li>
   <li><a 
href="https://github.com/lint-staged/lint-staged/commit/27110ef8ee92c5d104235b4094abb3197b5bf074";><code>27110ef</code></a>
 feat: added support for custom configuration</li>
   <li><a 
href="https://github.com/lint-staged/lint-staged/commit/52366f9f3bee04319b6d0856cac55ee8d9e9f94a";><code>52366f9</code></a>
 ci: update Node.js versions used in CI</li>
   <li>Additional commits viewable in <a 
href="https://github.com/lint-staged/lint-staged/compare/v15.5.2...v16.0.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.2&new-version=16.0.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>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to