[PR #665] [MERGED] Bump lint-staged from 9.5.0 to 10.0.0 #937

Closed
opened 2026-03-03 14:41:25 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/lipis/flag-icons/pull/665
Author: @dependabot-preview[bot]
Created: 1/20/2020
Status: Merged
Merged: 1/20/2020
Merged by: @dependabot-preview[bot]

Base: masterHead: dependabot/npm_and_yarn/lint-staged-10.0.0


📝 Commits (1)

  • 45598d3 Bump lint-staged from 9.5.0 to 10.0.0

📊 Changes

2 files changed (+167 additions, -213 deletions)

View changed files

📝 package.json (+1 -1)
📝 yarn.lock (+166 -212)

📄 Description

Bumps lint-staged from 9.5.0 to 10.0.0.

Release notes

Sourced from lint-staged's releases.

v10.0.0

10.0.0 (2020-01-19)

Bug Fixes

  • add all modified files to git index with git add . (bf532c2)
  • automatically add modifications only to originally staged files (083b8e7)
  • better workaround for git stash --keep-index bug (f3ae378)
  • correctly leave only staged files for running tasks (cfde9ca)
  • correctly recover when unstaged changes cannot be restored (d091f71)
  • correctly restore untracked files from backup stash (c7d0592)
  • error handling skips dropping backup stash after internal git errors (30b4809)
  • fail with a message when backup stash is missing (1b64239)
  • gitWorkflow handles active merge mode (2f1e886)
  • handle git MERGE_* files separately; improve error handling (da22cf2)
  • improve debug logging (f88e226)
  • keep untracked files around by backing them up (fc03fdc)
  • max arg length is by default half of the allowed to prevent edge cases (80406c2)
  • prevent Listr from hiding git add warning (cce9809)
  • restore metadata about git merge before running tasks (f8ddfc2)
  • retry failing apply with 3-way merge (76cb08f)
  • support binary files (7b3a334)
  • try applying unstaged changes before handling errors (357934f)
  • update warning about git add, and to README (6467a66)
  • workaround for stashing deleted files for git < 2.23 (1a87333)

Features

  • automatically stage task modifications (74ed28d)
  • bump Node.js version dependency to at least 10.13.0 (#747) (814b9df)
  • split tasks into chunks to support shells with limited max argument length (#732) (cb43872)
  • support async function tasks (20d5c5d)
  • throw error to prevent empty commits unless --allow-empty is used (#762) (8bdeec0)
  • use git stashes for gitWorkflow (40a5db1)
  • warn when task contains "git add" (5208399)

BREAKING CHANGES

  • Previously, lint-staged would allow empty commits in the situation where a linter task like "prettier --write" reverts all staged changes automatically. Now the default behaviour is to throw an error with a helpful warning message. The --allow empty option can be used to allow empty commits, or allowEmpty: true for the Node.js API.
  • Node.js v8 is no longer supported because it will reach EOL on 2019-12-31
  • Prior to version 10, tasks had to manually include git add as the final step. This behavior has been integrated into lint-staged itself in order to prevent race conditions with multiple tasks editing the same files. If lint-staged detects git add in task configurations, it will show a warning in the console. Please remove git add from your configuration after upgrading.

v10.0.0-beta.15

10.0.0-beta.15 (2020-01-08)

Features

... (truncated)
Commits
  • 072924f Merge pull request #724 from okonet/beta
  • f9e128d docs: Improve config section documentation
  • e1cd6ba Merge branch 'master' into beta
  • af58e6e docs: refine examples formatting (#767)
  • 82bee06 Merge branch 'master' into beta
  • af4604a docs: Improve documentation on the --debug flag (#766)
  • bd3721f Merge branch 'master' into beta
  • 8bdeec0 feat: throw error to prevent empty commits unless --allow-empty is used (#762)
  • 2cd1d37 docs: add funding property to package.json linking to Open Collective (#763)
  • 056723b docs: Document how to deal with eslintignore warnings (#759)
  • Additional commits viewable in compare view

Dependabot compatibility score

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.

If all status checks pass Dependabot will automatically merge this pull request.


Dependabot commands and options

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 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)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/lipis/flag-icons/pull/665 **Author:** [@dependabot-preview[bot]](https://github.com/apps/dependabot-preview) **Created:** 1/20/2020 **Status:** ✅ Merged **Merged:** 1/20/2020 **Merged by:** [@dependabot-preview[bot]](https://github.com/apps/dependabot-preview) **Base:** `master` ← **Head:** `dependabot/npm_and_yarn/lint-staged-10.0.0` --- ### 📝 Commits (1) - [`45598d3`](https://github.com/lipis/flag-icons/commit/45598d3f2cc6a7419a7aec9c795e0b7f01a0a765) Bump lint-staged from 9.5.0 to 10.0.0 ### 📊 Changes **2 files changed** (+167 additions, -213 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+1 -1) 📝 `yarn.lock` (+166 -212) </details> ### 📄 Description Bumps [lint-staged](https://github.com/okonet/lint-staged) from 9.5.0 to 10.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/okonet/lint-staged/releases">lint-staged's releases</a>.</em></p> <blockquote> <h2>v10.0.0</h2> <h1><a href="https://github.com/okonet/lint-staged/compare/v9.5.0...v10.0.0">10.0.0</a> (2020-01-19)</h1> <h3>Bug Fixes</h3> <ul> <li>add all modified files to git index with <code>git add .</code> (<a href="https://github.com/okonet/lint-staged/commit/bf532c2af9dbd3514b16768a106fea82ddc99923">bf532c2</a>)</li> <li>automatically add modifications only to originally staged files (<a href="https://github.com/okonet/lint-staged/commit/083b8e7d67307a177d427d694ead22cb0c95b0ca">083b8e7</a>)</li> <li>better workaround for git stash --keep-index bug (<a href="https://github.com/okonet/lint-staged/commit/f3ae378aa8d7207f990c4ffec854cc8da4d38b1d">f3ae378</a>)</li> <li>correctly leave only staged files for running tasks (<a href="https://github.com/okonet/lint-staged/commit/cfde9ca64bed7fa236eda69e63478c536f9f9068">cfde9ca</a>)</li> <li>correctly recover when unstaged changes cannot be restored (<a href="https://github.com/okonet/lint-staged/commit/d091f71ff50b1eddc59e759b1b09a95ed613c4d2">d091f71</a>)</li> <li>correctly restore untracked files from backup stash (<a href="https://github.com/okonet/lint-staged/commit/c7d05922b24524707795c4045339801c86affe9d">c7d0592</a>)</li> <li>error handling skips dropping backup stash after internal git errors (<a href="https://github.com/okonet/lint-staged/commit/30b480925a313f5c2b614eb40eb1a340a6cefae5">30b4809</a>)</li> <li>fail with a message when backup stash is missing (<a href="https://github.com/okonet/lint-staged/commit/1b64239163f5560b7235843909a9d30ff7ca1b83">1b64239</a>)</li> <li>gitWorkflow handles active merge mode (<a href="https://github.com/okonet/lint-staged/commit/2f1e886cba422844b0496a96696dae5296835862">2f1e886</a>)</li> <li>handle git MERGE_* files separately; improve error handling (<a href="https://github.com/okonet/lint-staged/commit/da22cf22bbd21be98a73b880a4ce43dbd0129021">da22cf2</a>)</li> <li>improve debug logging (<a href="https://github.com/okonet/lint-staged/commit/f88e22619b8dea4fbcda3d57a85ca9d1be152908">f88e226</a>)</li> <li>keep untracked files around by backing them up (<a href="https://github.com/okonet/lint-staged/commit/fc03fdc2e869384eb2d6423ff31f84e3cf22007e">fc03fdc</a>)</li> <li>max arg length is by default half of the allowed to prevent edge cases (<a href="https://github.com/okonet/lint-staged/commit/80406c20fd3d1a86b0a0558c10f6747b2b47698e">80406c2</a>)</li> <li>prevent Listr from hiding git add warning (<a href="https://github.com/okonet/lint-staged/commit/cce9809a2ce335a3b2c3f44e4c521270b13f9d4c">cce9809</a>)</li> <li>restore metadata about git merge before running tasks (<a href="https://github.com/okonet/lint-staged/commit/f8ddfc22d22fec2b417a67249573e7cd6abdb9fc">f8ddfc2</a>)</li> <li>retry failing apply with 3-way merge (<a href="https://github.com/okonet/lint-staged/commit/76cb08f6eecd68f3ae7e606216b4c5fdc1da94f0">76cb08f</a>)</li> <li>support binary files (<a href="https://github.com/okonet/lint-staged/commit/7b3a334ac33ffe1bda930583a055fb1db0b6d181">7b3a334</a>)</li> <li>try applying unstaged changes before handling errors (<a href="https://github.com/okonet/lint-staged/commit/357934fe1e193040d1a138d3d138da1377004be2">357934f</a>)</li> <li>update warning about git add, and to README (<a href="https://github.com/okonet/lint-staged/commit/6467a66b13657f1a39b0f1f3a079dc31a8461fe9">6467a66</a>)</li> <li>workaround for stashing deleted files for git &lt; 2.23 (<a href="https://github.com/okonet/lint-staged/commit/1a87333f9ee0704b3bb332bf5fbc11dbd25f7821">1a87333</a>)</li> </ul> <h3>Features</h3> <ul> <li>automatically stage task modifications (<a href="https://github.com/okonet/lint-staged/commit/74ed28d5edc70c66d769f7658b90b550029a2acf">74ed28d</a>)</li> <li>bump Node.js version dependency to at least 10.13.0 (<a href="https://github-redirect.dependabot.com/okonet/lint-staged/issues/747">#747</a>) (<a href="https://github.com/okonet/lint-staged/commit/814b9dfe131f55c18a8996f775dd5dd582d0a766">814b9df</a>)</li> <li>split tasks into chunks to support shells with limited max argument length (<a href="https://github-redirect.dependabot.com/okonet/lint-staged/issues/732">#732</a>) (<a href="https://github.com/okonet/lint-staged/commit/cb43872fb6c05366a8fc25a8bd889b95918f45a3">cb43872</a>)</li> <li>support async function tasks (<a href="https://github.com/okonet/lint-staged/commit/20d5c5d4cb92f9a4c501e5308cc51379d10581a8">20d5c5d</a>)</li> <li>throw error to prevent empty commits unless --allow-empty is used (<a href="https://github-redirect.dependabot.com/okonet/lint-staged/issues/762">#762</a>) (<a href="https://github.com/okonet/lint-staged/commit/8bdeec067f425150722bd0ee78e310e0992a1444">8bdeec0</a>)</li> <li>use git stashes for gitWorkflow (<a href="https://github.com/okonet/lint-staged/commit/40a5db1f6b1ad17b5a593974b6db93015f50824c">40a5db1</a>)</li> <li>warn when task contains &quot;git add&quot; (<a href="https://github.com/okonet/lint-staged/commit/52083990166cbea3bfe3d316ad6598c6c198fe1e">5208399</a>)</li> </ul> <h3>BREAKING CHANGES</h3> <ul> <li>Previously, lint-staged would allow empty commits in the situation where a linter task like &quot;prettier --write&quot; reverts all staged changes automatically. Now the default behaviour is to throw an error with a helpful warning message. The --allow empty option can be used to allow empty commits, or <code>allowEmpty: true</code> for the Node.js API.</li> <li>Node.js v8 is no longer supported because it will reach EOL on 2019-12-31</li> <li>Prior to version 10, tasks had to manually include <code>git add</code> as the final step. This behavior has been integrated into lint-staged itself in order to prevent race conditions with multiple tasks editing the same files. If lint-staged detects <code>git add</code> in task configurations, it will show a warning in the console. Please remove <code>git add</code> from your configuration after upgrading.</li> </ul> <h2>v10.0.0-beta.15</h2> <h1><a href="https://github.com/okonet/lint-staged/compare/v10.0.0-beta.14...v10.0.0-beta.15">10.0.0-beta.15</a> (2020-01-08)</h1> <h3>Features</h3> </tr></table> ... (truncated) </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/okonet/lint-staged/commit/072924fce037c726112c00a6207afa92e238a267"><code>072924f</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/okonet/lint-staged/issues/724">#724</a> from okonet/beta</li> <li><a href="https://github.com/okonet/lint-staged/commit/f9e128d7e9393ba685fda16f49dceda16d4c540f"><code>f9e128d</code></a> docs: Improve config section documentation</li> <li><a href="https://github.com/okonet/lint-staged/commit/e1cd6ba033ed973264b19359f8822342a5607772"><code>e1cd6ba</code></a> Merge branch 'master' into beta</li> <li><a href="https://github.com/okonet/lint-staged/commit/af58e6edbf572339fd9671d48223f27a4d84362a"><code>af58e6e</code></a> docs: refine examples formatting (<a href="https://github-redirect.dependabot.com/okonet/lint-staged/issues/767">#767</a>)</li> <li><a href="https://github.com/okonet/lint-staged/commit/82bee064845a8a452cbdc360f20c3c3563c6f426"><code>82bee06</code></a> Merge branch 'master' into beta</li> <li><a href="https://github.com/okonet/lint-staged/commit/af4604ae5fdb2e7bda8491b15e834e9719ba10c2"><code>af4604a</code></a> docs: Improve documentation on the --debug flag (<a href="https://github-redirect.dependabot.com/okonet/lint-staged/issues/766">#766</a>)</li> <li><a href="https://github.com/okonet/lint-staged/commit/bd3721f28473b8ac382fe787495900d15458770f"><code>bd3721f</code></a> Merge branch 'master' into beta</li> <li><a href="https://github.com/okonet/lint-staged/commit/8bdeec067f425150722bd0ee78e310e0992a1444"><code>8bdeec0</code></a> feat: throw error to prevent empty commits unless --allow-empty is used (<a href="https://github-redirect.dependabot.com/okonet/lint-staged/issues/762">#762</a>)</li> <li><a href="https://github.com/okonet/lint-staged/commit/2cd1d37a75fc46e203beef16a48171c0cf034bd6"><code>2cd1d37</code></a> docs: add funding property to package.json linking to Open Collective (<a href="https://github-redirect.dependabot.com/okonet/lint-staged/issues/763">#763</a>)</li> <li><a href="https://github.com/okonet/lint-staged/commit/056723b96df5cf6730c26b18d44ff89f0c616ad8"><code>056723b</code></a> docs: Document how to deal with eslintignore warnings (<a href="https://github-redirect.dependabot.com/okonet/lint-staged/issues/759">#759</a>)</li> <li>Additional commits viewable in <a href="https://github.com/okonet/lint-staged/compare/v9.5.0...v10.0.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=lint-staged&package-manager=npm_and_yarn&previous-version=9.5.0&new-version=10.0.0)](https://dependabot.com/compatibility-score.html?dependency-name=lint-staged&package-manager=npm_and_yarn&previous-version=9.5.0&new-version=10.0.0) 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) If all status checks pass Dependabot will automatically merge this pull request. [//]: # (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 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) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 14:41:25 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flag-icons#937
No description provided.