Skip to content

Commit b174d55

Browse files
Bump lint-staged from 16.2.0 to 16.2.3 (#853)
Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from 16.2.0 to 16.2.3. <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.2.3</h2> <h3>Patch Changes</h3> <ul> <li><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1669">#1669</a> <a href="https://github.com/lint-staged/lint-staged/commit/27cd5413d973baea6b4f3da704fb3bee8298e751"><code>27cd541</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - When using <code>--fail-on-changes</code>, automatically hidden (partially) unstaged changes are no longer counted to make <em>lint-staged</em> fail.</li> </ul> <h2>v16.2.2</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1667">#1667</a> <a href="https://github.com/lint-staged/lint-staged/commit/699f95df8f89ac7f7d360bbf93740d19d5899ac5"><code>699f95d</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - The backup stash will not be dropped when using <code>--fail-on-changes</code> and there are errors. When reverting to original state is disabled (via <code>--no-revert</code> or <code>--fail-on-changes</code>), hidden (partially) unstaged changes are still restored automatically so that it's easier to resolve the situation manually.</p> <p>Additionally, the example for using the backup stash manually now uses the correct backup hash, if available:</p> <pre lang="shell"><code>% npx lint-staged --fail-on-changes ✔ Backed up original state in git stash (c18d55a3) ✔ Running tasks for staged files... ✖ Tasks modified files and --fail-on-changes was used! ↓ Cleaning up temporary files... <p>✖ lint-staged failed because <code>--fail-on-changes</code> was used.</p> <p>Any lost modifications can be restored from a git stash:</p> <p>&gt; git stash list --format=&quot;%h %s&quot; c18d55a3 On main: lint-staged automatic backup &gt; git apply --index c18d55a3 </code></pre></p> </li> </ul> <h2>v16.2.1</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1664">#1664</a> <a href="https://github.com/lint-staged/lint-staged/commit/8277b3b298421ebbb39c43d7e3538481e15c4659"><code>8277b3b</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - The built-in TypeScript types have been updated to more closely match the implementation. Notably, the list of staged files supplied to task functions is <code>readonly string[]</code> and can't be mutated. Thanks <a href="https://github.com/outslept"><code>@​outslept</code></a>!</p> <pre lang="diff"><code>export default { --- &quot;*&quot;: (files: string[]) =&gt; void console.log('staged files', files) +++ &quot;*&quot;: (files: readonly string[]) =&gt; void console.log('staged files', files) } </code></pre> </li> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1654">#1654</a> <a href="https://github.com/lint-staged/lint-staged/commit/70b9af3ac3fd66af94936e55bb3e91381937b41f"><code>70b9af3</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - This version has been published from GitHub Actions using <a href="https://docs.npmjs.com/trusted-publishers">Trusted Publishing for npm packages</a>.</p> </li> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1659">#1659</a> <a href="https://github.com/lint-staged/lint-staged/commit/49968170abb3bab7ac8dc0a6bc5ea92850337baa"><code>4996817</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - Fix searching configuration files when the working directory is a subdirectory of a git repository, and there are <code>package.json</code> files in the working directory. This situation might happen when running <em>lint-staged</em> for a single package in a monorepo.</p> </li> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1654">#1654</a> <a href="https://github.com/lint-staged/lint-staged/commit/7021f0af40ac1d5787501894c0f2222980023703"><code>7021f0a</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - Return the caret semver range (<code>^</code>) to direct dependencies so that future patch and minor versions are allowed. This enables projects to better maintain and deduplicate their own transitive dependencies while not requiring direct updates to <em>lint-staged</em>. This was changed in <a href="https://github.com/lint-staged/lint-staged/releases/tag/v16.2.0">16.2.0</a> after the vulnerability issues with <code>chalk</code> and <code>debug</code>, which were also removed in the same version.</p> <p>Given the recent vulnerabilities in the <em>npm</em> ecosystem, it's best to be very careful when updating dependencies.</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.2.3</h2> <h3>Patch Changes</h3> <ul> <li><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1669">#1669</a> <a href="https://github.com/lint-staged/lint-staged/commit/27cd5413d973baea6b4f3da704fb3bee8298e751"><code>27cd541</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - When using <code>--fail-on-changes</code>, automatically hidden (partially) unstaged changes are no longer counted to make <em>lint-staged</em> fail.</li> </ul> <h2>16.2.2</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1667">#1667</a> <a href="https://github.com/lint-staged/lint-staged/commit/699f95df8f89ac7f7d360bbf93740d19d5899ac5"><code>699f95d</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - The backup stash will not be dropped when using <code>--fail-on-changes</code> and there are errors. When reverting to original state is disabled (via <code>--no-revert</code> or <code>--fail-on-changes</code>), hidden (partially) unstaged changes are still restored automatically so that it's easier to resolve the situation manually.</p> <p>Additionally, the example for using the backup stash manually now uses the correct backup hash, if available:</p> <pre lang="shell"><code>% npx lint-staged --fail-on-changes ✔ Backed up original state in git stash (c18d55a3) ✔ Running tasks for staged files... ✖ Tasks modified files and --fail-on-changes was used! ↓ Cleaning up temporary files... <p>✖ lint-staged failed because <code>--fail-on-changes</code> was used.</p> <p>Any lost modifications can be restored from a git stash:</p> <p>&gt; git stash list --format=&quot;%h %s&quot; c18d55a3 On main: lint-staged automatic backup &gt; git apply --index c18d55a3 </code></pre></p> </li> </ul> <h2>16.2.1</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1664">#1664</a> <a href="https://github.com/lint-staged/lint-staged/commit/8277b3b298421ebbb39c43d7e3538481e15c4659"><code>8277b3b</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - The built-in TypeScript types have been updated to more closely match the implementation. Notably, the list of staged files supplied to task functions is <code>readonly string[]</code> and can't be mutated. Thanks <a href="https://github.com/outslept"><code>@​outslept</code></a>!</p> <pre lang="diff"><code>export default { --- &quot;*&quot;: (files: string[]) =&gt; void console.log('staged files', files) +++ &quot;*&quot;: (files: readonly string[]) =&gt; void console.log('staged files', files) } </code></pre> </li> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1654">#1654</a> <a href="https://github.com/lint-staged/lint-staged/commit/70b9af3ac3fd66af94936e55bb3e91381937b41f"><code>70b9af3</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - This version has been published from GitHub Actions using <a href="https://docs.npmjs.com/trusted-publishers">Trusted Publishing for npm packages</a>.</p> </li> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1659">#1659</a> <a href="https://github.com/lint-staged/lint-staged/commit/49968170abb3bab7ac8dc0a6bc5ea92850337baa"><code>4996817</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - Fix searching configuration files when the working directory is a subdirectory of a git repository, and there are <code>package.json</code> files in the working directory. This situation might happen when running <em>lint-staged</em> for a single package in a monorepo.</p> </li> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1654">#1654</a> <a href="https://github.com/lint-staged/lint-staged/commit/7021f0af40ac1d5787501894c0f2222980023703"><code>7021f0a</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - Return the caret semver range (<code>^</code>) to direct dependencies so that future patch and minor versions are allowed. This enables projects to better maintain and deduplicate their own transitive dependencies while not requiring direct updates to <em>lint-staged</em>. This was changed in <a href="https://github.com/lint-staged/lint-staged/releases/tag/v16.2.0">16.2.0</a> after the vulnerability issues with <code>chalk</code> and <code>debug</code>, which were also removed in the same version.</p> <p>Given the recent vulnerabilities in the <em>npm</em> ecosystem, it's best to be very careful when updating dependencies.</p> </li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/lint-staged/lint-staged/commit/bdcd03ae66dde2cb20a1d5b0590e4fd757541346"><code>bdcd03a</code></a> chore(changeset): release</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/27cd5413d973baea6b4f3da704fb3bee8298e751"><code>27cd541</code></a> fix: do not count hidden (partially) unstaged changes when using `--fail-on-c...</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/ab2f42e7055a52b4830d7d9d901c6c1cd9706a81"><code>ab2f42e</code></a> fix: emit correct value to debug logs</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/3fc5832380a8b57780758f861c21992cad711219"><code>3fc5832</code></a> refactor: make general error messages more clear they originate from lint-staged</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/409d79a3fc15235ffa14e61db07bfa2ac12cd691"><code>409d79a</code></a> chore(changeset): release</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/7edaee98e9a74a4e0a8646bb452a8139c8563619"><code>7edaee9</code></a> docs: fix typo in changeset</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/699f95df8f89ac7f7d360bbf93740d19d5899ac5"><code>699f95d</code></a> fix: backup stash example uses real hash if available</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/47d01a9d45a9a9178b6bf85a7296d62bf542f918"><code>47d01a9</code></a> fix: print backup stash example when failing to <code>--fail-on-changes</code></li> <li><a href="https://github.com/lint-staged/lint-staged/commit/325dc03f5a6a222556c800cb521d7dba01cb6d41"><code>325dc03</code></a> fix: restore unstaged changes on errors when <code>--fail-on-errors</code> or `--no-reve...</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/53bb27b0e5c9e140558527f18e729faadc65a748"><code>53bb27b</code></a> fix: do not drop backup stash when errors and <code>--fail-on-changes</code> was used</li> <li>Additional commits viewable in <a href="https://github.com/lint-staged/lint-staged/compare/v16.2.0...v16.2.3">compare view</a></li> </ul> </details> <details> <summary>Maintainer changes</summary> <p>This version was pushed to npm by [GitHub Actions](<a href="https://www.npmjs.com/~GitHub">https://www.npmjs.com/~GitHub</a> Actions), a new releaser for lint-staged since your current version.</p> </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.2.0&new-version=16.2.3)](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 06c9beb commit b174d55

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
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.2.0",
5454
"jest-junit": "^16.0.0",
5555
"license-checker-rseidelsohn": "^4.4.2",
56-
"lint-staged": "^16.2.0",
56+
"lint-staged": "^16.2.3",
5757
"lodash": "^4.17.21",
5858
"nodemon": "^3.1.10",
5959
"prettier": "^3.6.2",

yarn.lock

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ __metadata:
920920
jest: "npm:^30.2.0"
921921
jest-junit: "npm:^16.0.0"
922922
license-checker-rseidelsohn: "npm:^4.4.2"
923-
lint-staged: "npm:^16.2.0"
923+
lint-staged: "npm:^16.2.3"
924924
lodash: "npm:^4.17.21"
925925
nodemon: "npm:^3.1.10"
926926
prettier: "npm:^3.6.2"
@@ -2130,7 +2130,7 @@ __metadata:
21302130
languageName: node
21312131
linkType: hard
21322132

2133-
"commander@npm:14.0.1":
2133+
"commander@npm:^14.0.1":
21342134
version: 14.0.1
21352135
resolution: "commander@npm:14.0.1"
21362136
checksum: 64439c0651ddd01c1d0f48c8f08e97c18a0a1fa693879451f1203ad01132af2c2aa85da24cf0d8e098ab9e6dc385a756be670d2999a3c628ec745c3ec124587b
@@ -4457,24 +4457,24 @@ __metadata:
44574457
languageName: node
44584458
linkType: hard
44594459

4460-
"lint-staged@npm:^16.2.0":
4461-
version: 16.2.0
4462-
resolution: "lint-staged@npm:16.2.0"
4460+
"lint-staged@npm:^16.2.3":
4461+
version: 16.2.3
4462+
resolution: "lint-staged@npm:16.2.3"
44634463
dependencies:
4464-
commander: "npm:14.0.1"
4465-
listr2: "npm:9.0.4"
4466-
micromatch: "npm:4.0.8"
4467-
nano-spawn: "npm:1.0.3"
4468-
pidtree: "npm:0.6.0"
4469-
string-argv: "npm:0.3.2"
4470-
yaml: "npm:2.8.1"
4464+
commander: "npm:^14.0.1"
4465+
listr2: "npm:^9.0.4"
4466+
micromatch: "npm:^4.0.8"
4467+
nano-spawn: "npm:^1.0.3"
4468+
pidtree: "npm:^0.6.0"
4469+
string-argv: "npm:^0.3.2"
4470+
yaml: "npm:^2.8.1"
44714471
bin:
44724472
lint-staged: bin/lint-staged.js
4473-
checksum: 0903eea526d390fd04ec10c2b6c3c3accdff53647d1918d3c30236d46fa7714a4a109d1aeda7364ecc689728c7b188bc430911b170834228fe0010d938c9a631
4473+
checksum: 9b057949f07f78539cd1540402df97b524a2d72d394e535d7c179025014982e4231fb81145fb1763704424d3dfac1184fee5eb4b7fc7d9534fae4106f5bf07d5
44744474
languageName: node
44754475
linkType: hard
44764476

4477-
"listr2@npm:9.0.4":
4477+
"listr2@npm:^9.0.4":
44784478
version: 9.0.4
44794479
resolution: "listr2@npm:9.0.4"
44804480
dependencies:
@@ -4635,7 +4635,7 @@ __metadata:
46354635
languageName: node
46364636
linkType: hard
46374637

4638-
"micromatch@npm:4.0.8, micromatch@npm:^4.0.8":
4638+
"micromatch@npm:^4.0.8":
46394639
version: 4.0.8
46404640
resolution: "micromatch@npm:4.0.8"
46414641
dependencies:
@@ -4784,7 +4784,7 @@ __metadata:
47844784
languageName: node
47854785
linkType: hard
47864786

4787-
"nano-spawn@npm:1.0.3":
4787+
"nano-spawn@npm:^1.0.3":
47884788
version: 1.0.3
47894789
resolution: "nano-spawn@npm:1.0.3"
47904790
checksum: ea18857e493710a50ded333dd71677953bd9bd9e6a17ade74af957763c50a9a02205ef31bc0d6784f5b3ad82db3d9f47531e9baac2acf01118f9b7c35bd9d5de
@@ -5173,7 +5173,7 @@ __metadata:
51735173
languageName: node
51745174
linkType: hard
51755175

5176-
"pidtree@npm:0.6.0":
5176+
"pidtree@npm:^0.6.0":
51775177
version: 0.6.0
51785178
resolution: "pidtree@npm:0.6.0"
51795179
bin:
@@ -5776,7 +5776,7 @@ __metadata:
57765776
languageName: node
57775777
linkType: hard
57785778

5779-
"string-argv@npm:0.3.2":
5779+
"string-argv@npm:^0.3.2":
57805780
version: 0.3.2
57815781
resolution: "string-argv@npm:0.3.2"
57825782
checksum: 75c02a83759ad1722e040b86823909d9a2fc75d15dd71ec4b537c3560746e33b5f5a07f7332d1e3f88319909f82190843aa2f0a0d8c8d591ec08e93d5b8dec82
@@ -6583,7 +6583,7 @@ __metadata:
65836583
languageName: node
65846584
linkType: hard
65856585

6586-
"yaml@npm:2.8.1, yaml@npm:^2.8.1":
6586+
"yaml@npm:^2.8.1":
65876587
version: 2.8.1
65886588
resolution: "yaml@npm:2.8.1"
65896589
bin:

0 commit comments

Comments
 (0)