Skip to content

Commit b987703

Browse files
Bump lint-staged from 15.5.2 to 16.0.0 (#587)
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) 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 9c83b16 commit b987703

File tree

2 files changed

+24
-94
lines changed

2 files changed

+24
-94
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"jest": "^29.7.0",
5757
"jest-junit": "^16.0.0",
5858
"license-checker-rseidelsohn": "^4.4.2",
59-
"lint-staged": "^15.5.2",
59+
"lint-staged": "^16.0.0",
6060
"micromark-util-types": "^2.0.2",
6161
"prettier": "^3.5.3",
6262
"sort-package-json": "^3.2.1",

yarn.lock

Lines changed: 23 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ __metadata:
821821
jest: "npm:^29.7.0"
822822
jest-junit: "npm:^16.0.0"
823823
license-checker-rseidelsohn: "npm:^4.4.2"
824-
lint-staged: "npm:^15.5.2"
824+
lint-staged: "npm:^16.0.0"
825825
lodash: "npm:^4.17.21"
826826
mdast-util-from-markdown: "npm:^2.0.2"
827827
mdast-util-to-hast: "npm:^13.2.0"
@@ -2767,23 +2767,6 @@ __metadata:
27672767
languageName: node
27682768
linkType: hard
27692769

2770-
"execa@npm:^8.0.1":
2771-
version: 8.0.1
2772-
resolution: "execa@npm:8.0.1"
2773-
dependencies:
2774-
cross-spawn: "npm:^7.0.3"
2775-
get-stream: "npm:^8.0.1"
2776-
human-signals: "npm:^5.0.0"
2777-
is-stream: "npm:^3.0.0"
2778-
merge-stream: "npm:^2.0.0"
2779-
npm-run-path: "npm:^5.1.0"
2780-
onetime: "npm:^6.0.0"
2781-
signal-exit: "npm:^4.1.0"
2782-
strip-final-newline: "npm:^3.0.0"
2783-
checksum: 2c52d8775f5bf103ce8eec9c7ab3059909ba350a5164744e9947ed14a53f51687c040a250bda833f906d1283aa8803975b84e6c8f7a7c42f99dc8ef80250d1af
2784-
languageName: node
2785-
linkType: hard
2786-
27872770
"exit@npm:^0.1.2":
27882771
version: 0.1.2
27892772
resolution: "exit@npm:0.1.2"
@@ -3108,13 +3091,6 @@ __metadata:
31083091
languageName: node
31093092
linkType: hard
31103093

3111-
"get-stream@npm:^8.0.1":
3112-
version: 8.0.1
3113-
resolution: "get-stream@npm:8.0.1"
3114-
checksum: 5c2181e98202b9dae0bb4a849979291043e5892eb40312b47f0c22b9414fc9b28a3b6063d2375705eb24abc41ecf97894d9a51f64ff021511b504477b27b4290
3115-
languageName: node
3116-
linkType: hard
3117-
31183094
"get-symbol-description@npm:^1.1.0":
31193095
version: 1.1.0
31203096
resolution: "get-symbol-description@npm:1.1.0"
@@ -3449,13 +3425,6 @@ __metadata:
34493425
languageName: node
34503426
linkType: hard
34513427

3452-
"human-signals@npm:^5.0.0":
3453-
version: 5.0.0
3454-
resolution: "human-signals@npm:5.0.0"
3455-
checksum: 5a9359073fe17a8b58e5a085e9a39a950366d9f00217c4ff5878bd312e09d80f460536ea6a3f260b5943a01fe55c158d1cea3fc7bee3d0520aeef04f6d915c82
3456-
languageName: node
3457-
linkType: hard
3458-
34593428
"husky@npm:^9.1.7":
34603429
version: 9.1.7
34613430
resolution: "husky@npm:9.1.7"
@@ -3804,13 +3773,6 @@ __metadata:
38043773
languageName: node
38053774
linkType: hard
38063775

3807-
"is-stream@npm:^3.0.0":
3808-
version: 3.0.0
3809-
resolution: "is-stream@npm:3.0.0"
3810-
checksum: eb2f7127af02ee9aa2a0237b730e47ac2de0d4e76a4a905a50a11557f2339df5765eaea4ceb8029f1efa978586abe776908720bfcb1900c20c6ec5145f6f29d8
3811-
languageName: node
3812-
linkType: hard
3813-
38143776
"is-string@npm:^1.0.7, is-string@npm:^1.1.1":
38153777
version: 1.1.1
38163778
resolution: "is-string@npm:1.1.1"
@@ -4593,37 +4555,37 @@ __metadata:
45934555
languageName: node
45944556
linkType: hard
45954557

4596-
"lint-staged@npm:^15.5.2":
4597-
version: 15.5.2
4598-
resolution: "lint-staged@npm:15.5.2"
4558+
"lint-staged@npm:^16.0.0":
4559+
version: 16.0.0
4560+
resolution: "lint-staged@npm:16.0.0"
45994561
dependencies:
46004562
chalk: "npm:^5.4.1"
46014563
commander: "npm:^13.1.0"
46024564
debug: "npm:^4.4.0"
4603-
execa: "npm:^8.0.1"
46044565
lilconfig: "npm:^3.1.3"
4605-
listr2: "npm:^8.2.5"
4566+
listr2: "npm:^8.3.3"
46064567
micromatch: "npm:^4.0.8"
4568+
nano-spawn: "npm:^1.0.0"
46074569
pidtree: "npm:^0.6.0"
46084570
string-argv: "npm:^0.3.2"
4609-
yaml: "npm:^2.7.0"
4571+
yaml: "npm:^2.7.1"
46104572
bin:
46114573
lint-staged: bin/lint-staged.js
4612-
checksum: 618386254600ada3af3672486a9d082250108245e7c0863d9dfe0a21e7764e3b2eb6416b0f8970e548f4e9d368637331598b27df5a1306925feabbaf16a667e1
4574+
checksum: 8778dbe7892bbf14e378d612d1649c1e3df38a8ddf14cf35962b6e8a962be72efb1ebb48a697e38366be97d25b8d2599cad3c26ac5afc0d0460452484e27924d
46134575
languageName: node
46144576
linkType: hard
46154577

4616-
"listr2@npm:^8.2.5":
4617-
version: 8.2.5
4618-
resolution: "listr2@npm:8.2.5"
4578+
"listr2@npm:^8.3.3":
4579+
version: 8.3.3
4580+
resolution: "listr2@npm:8.3.3"
46194581
dependencies:
46204582
cli-truncate: "npm:^4.0.0"
46214583
colorette: "npm:^2.0.20"
46224584
eventemitter3: "npm:^5.0.1"
46234585
log-update: "npm:^6.1.0"
46244586
rfdc: "npm:^1.4.1"
46254587
wrap-ansi: "npm:^9.0.0"
4626-
checksum: f5a9599514b00c27d7eb32d1117c83c61394b2a985ec20e542c798bf91cf42b19340215701522736f5b7b42f557e544afeadec47866e35e5d4f268f552729671
4588+
checksum: 0792f8a7fd482fa516e21689e012e07081cab3653172ca606090622cfa0024c784a1eba8095a17948a0e9a4aa98a80f7c9c90f78a0dd35173d6802f9cc123a82
46274589
languageName: node
46284590
linkType: hard
46294591

@@ -5295,13 +5257,6 @@ __metadata:
52955257
languageName: node
52965258
linkType: hard
52975259

5298-
"mimic-fn@npm:^4.0.0":
5299-
version: 4.0.0
5300-
resolution: "mimic-fn@npm:4.0.0"
5301-
checksum: de9cc32be9996fd941e512248338e43407f63f6d497abe8441fa33447d922e927de54d4cc3c1a3c6d652857acd770389d5a3823f311a744132760ce2be15ccbf
5302-
languageName: node
5303-
linkType: hard
5304-
53055260
"mimic-function@npm:^5.0.0":
53065261
version: 5.0.1
53075262
resolution: "mimic-function@npm:5.0.1"
@@ -5450,6 +5405,13 @@ __metadata:
54505405
languageName: node
54515406
linkType: hard
54525407

5408+
"nano-spawn@npm:^1.0.0":
5409+
version: 1.0.1
5410+
resolution: "nano-spawn@npm:1.0.1"
5411+
checksum: e03edc6971f653bc4651f2413b2011772a7c18797c0a4e986ff8eaea3adf4f017697d4d494ffb4ba6bce907b42abbeb0f7f681dbf336c84a324c940fb64c1dec
5412+
languageName: node
5413+
linkType: hard
5414+
54535415
"natural-compare-lite@npm:^1.4.0":
54545416
version: 1.4.0
54555417
resolution: "natural-compare-lite@npm:1.4.0"
@@ -5551,15 +5513,6 @@ __metadata:
55515513
languageName: node
55525514
linkType: hard
55535515

5554-
"npm-run-path@npm:^5.1.0":
5555-
version: 5.1.0
5556-
resolution: "npm-run-path@npm:5.1.0"
5557-
dependencies:
5558-
path-key: "npm:^4.0.0"
5559-
checksum: ff6d77514489f47fa1c3b1311d09cd4b6d09a874cc1866260f9dea12cbaabda0436ed7f8c2ee44d147bf99a3af29307c6f63b0f83d242b0b6b0ab25dff2629e3
5560-
languageName: node
5561-
linkType: hard
5562-
55635516
"object-inspect@npm:^1.13.3":
55645517
version: 1.13.4
55655518
resolution: "object-inspect@npm:1.13.4"
@@ -5641,15 +5594,6 @@ __metadata:
56415594
languageName: node
56425595
linkType: hard
56435596

5644-
"onetime@npm:^6.0.0":
5645-
version: 6.0.0
5646-
resolution: "onetime@npm:6.0.0"
5647-
dependencies:
5648-
mimic-fn: "npm:^4.0.0"
5649-
checksum: 4eef7c6abfef697dd4479345a4100c382d73c149d2d56170a54a07418c50816937ad09500e1ed1e79d235989d073a9bade8557122aee24f0576ecde0f392bb6c
5650-
languageName: node
5651-
linkType: hard
5652-
56535597
"onetime@npm:^7.0.0":
56545598
version: 7.0.0
56555599
resolution: "onetime@npm:7.0.0"
@@ -5787,13 +5731,6 @@ __metadata:
57875731
languageName: node
57885732
linkType: hard
57895733

5790-
"path-key@npm:^4.0.0":
5791-
version: 4.0.0
5792-
resolution: "path-key@npm:4.0.0"
5793-
checksum: 794efeef32863a65ac312f3c0b0a99f921f3e827ff63afa5cb09a377e202c262b671f7b3832a4e64731003fa94af0263713962d317b9887bd1e0c48a342efba3
5794-
languageName: node
5795-
linkType: hard
5796-
57975734
"path-parse@npm:^1.0.7":
57985735
version: 1.0.7
57995736
resolution: "path-parse@npm:1.0.7"
@@ -6758,13 +6695,6 @@ __metadata:
67586695
languageName: node
67596696
linkType: hard
67606697

6761-
"strip-final-newline@npm:^3.0.0":
6762-
version: 3.0.0
6763-
resolution: "strip-final-newline@npm:3.0.0"
6764-
checksum: a771a17901427bac6293fd416db7577e2bc1c34a19d38351e9d5478c3c415f523f391003b42ed475f27e33a78233035df183525395f731d3bfb8cdcbd4da08ce
6765-
languageName: node
6766-
linkType: hard
6767-
67686698
"strip-json-comments@npm:^3.1.1":
67696699
version: 3.1.1
67706700
resolution: "strip-json-comments@npm:3.1.1"
@@ -7492,12 +7422,12 @@ __metadata:
74927422
languageName: node
74937423
linkType: hard
74947424

7495-
"yaml@npm:^2.7.0":
7496-
version: 2.7.0
7497-
resolution: "yaml@npm:2.7.0"
7425+
"yaml@npm:^2.7.1":
7426+
version: 2.7.1
7427+
resolution: "yaml@npm:2.7.1"
74987428
bin:
74997429
yaml: bin.mjs
7500-
checksum: 886a7d2abbd70704b79f1d2d05fe9fb0aa63aefb86e1cb9991837dced65193d300f5554747a872b4b10ae9a12bc5d5327e4d04205f70336e863e35e89d8f4ea9
7430+
checksum: ee2126398ab7d1fdde566b4013b68e36930b9e6d8e68b6db356875c99614c10d678b6f45597a145ff6d63814961221fc305bf9242af8bf7450177f8a68537590
75017431
languageName: node
75027432
linkType: hard
75037433

0 commit comments

Comments
 (0)