Commit 772f224
authored
upgrade: update dependency lint-staged to v17.2.0 (#778)
This PR contains the following updates:
| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [lint-staged](https://redirect.github.com/lint-staged/lint-staged) |
[`17.0.7` →
`17.2.0`](https://renovatebot.com/diffs/npm/lint-staged/17.0.7/17.2.0) |

|

|
---
### Release Notes
<details>
<summary>lint-staged/lint-staged (lint-staged)</summary>
###
[`v17.2.0`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1720)
[Compare
Source](https://redirect.github.com/lint-staged/lint-staged/compare/v17.1.1...v17.2.0)
##### Minor Changes
-
[#​1823](https://redirect.github.com/lint-staged/lint-staged/pull/1823)
[`ee156cc`](https://redirect.github.com/lint-staged/lint-staged/commit/ee156cc7039494f1db11f389b1233c78f588238c)
- The chunking of tasks based on maximum command line argument length
has been re-implemented to be more precise. Now the chunking happens
based on the final generated command string, instead of just the list of
staged files like previously. This benefits mainly Windows platforms and
function commands like:
```js
/** @type {import('lint-staged').Configuration} */
export default {
"*.ts": () => "tsc", // Run "tsc" when any TS file is changed (for
entire project)
};
```
Where the spawned command is literally `"tsc"` without any extra
arguments. Previously, this was still chunked when a lot of files were
staged. Now, it probably won't be chunked because the length of the
command is just three letters.
Also, native JavaScript/Node.js function tasks won't be chunked at all,
when previously they were run multiple times when chunked:
```js
/** @type {import('lint-staged').Configuration} */
export default {
"*.js": {
title: "Log staged JS files to console",
task: async (files) => {
console.log("Staged JS files:", files);
},
},
};
```
###
[`v17.1.1`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1711)
[Compare
Source](https://redirect.github.com/lint-staged/lint-staged/compare/v17.1.0...v17.1.1)
##### Patch Changes
-
[#​1820](https://redirect.github.com/lint-staged/lint-staged/pull/1820)
[`a626a9f`](https://redirect.github.com/lint-staged/lint-staged/commit/a626a9f269d9ff6498a9b8245490e096f90c4bb7)
- It's now possible to set `--max-arg-length=Infinity` to effectively
disable chunking of tasks based on the number of staged files. The
parsing and validation of the numeric CLI options `--max-arg-length` and
`--concurrency` has been improved.
###
[`v17.1.0`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1710)
[Compare
Source](https://redirect.github.com/lint-staged/lint-staged/compare/v17.0.8...v17.1.0)
##### Minor Changes
-
[#​1816](https://redirect.github.com/lint-staged/lint-staged/pull/1816)
[`7568d4f`](https://redirect.github.com/lint-staged/lint-staged/commit/7568d4fb15ba3c3317a7aec36195461cb2f272d7)
- The console output of *lint-staged* has been simplified so that
there's less interactive spinners and more explicit messages like
*"Started…*" -> "*Done!*". The primary purpose of this was to remove
[`Listr2`](https://redirect.github.com/listr2/listr2), a very large
dependency.
**Before:**
Size of `node_modules/` after installing: `1561.7 kB` with 29 packages.
Fancy interactive spinners, but output dynamically changes:
```shell
✔ Backed up original state in git stash (0b191303)
✔ Running tasks for staged files...
✔ Staging changes from tasks...
✔ Cleaning up temporary files...
```
**After:**
Size of `node_modules/` after installing: `974.0 kB` with 5 packages
(37.6 % smaller, 82.7 % less transitive dependencies).
Simpler but more explicit output:
```shell
⋯ Backing up original state…
✔ Done backing up original state (35b38ed1)!
⋯ Running tasks for staged files…
*.js — 1 file
⋯ oxlint --fix
*.{json,md} — 1 file
⋯ oxfmt --write
✔ oxfmt --write
✔ oxlint --fix
✔ Done running tasks for staged files!
⋯ Staging changes from tasks…
✔ Done staging changes from tasks!
⋯ Cleaning up temporary files…
✔ Done cleaning up temporary files!
```
##### Patch Changes
-
[#​1816](https://redirect.github.com/lint-staged/lint-staged/pull/1816)
[`c19079d`](https://redirect.github.com/lint-staged/lint-staged/commit/c19079d808d557b538c34fe69381d2ef970c7acc)
- Try to restore hidden unstaged changes when using `--no-revert`.
-
[#​1818](https://redirect.github.com/lint-staged/lint-staged/pull/1818)
[`efb23a2`](https://redirect.github.com/lint-staged/lint-staged/commit/efb23a25075d980db9edabd2f71e769fc97d48c8)
- Console output colors are enabled/disabled more consistently.
-
[#​1818](https://redirect.github.com/lint-staged/lint-staged/pull/1818)
[`26112a1`](https://redirect.github.com/lint-staged/lint-staged/commit/26112a19151f9678861d51ea7416e9f9bef24bbb)
- Failed JS function tasks now properly kill other tasks, unless
`--continue-on-error` is used. Previously their failure didn't affect
other tasks.
###
[`v17.0.8`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1708)
[Compare
Source](https://redirect.github.com/lint-staged/lint-staged/compare/v17.0.7...v17.0.8)
##### Patch Changes
-
[#​1809](https://redirect.github.com/lint-staged/lint-staged/pull/1809)
[`179b437`](https://redirect.github.com/lint-staged/lint-staged/commit/179b4372b2528f6fa66f927337d238711694d0e0)
- Fix *lint-staged* discarding the ongoing merge conflict status
(`.git/MERGE_HEAD`) when using the `--hide-unstaged` or `--hide-all`
options.
-
[#​1811](https://redirect.github.com/lint-staged/lint-staged/pull/1811)
[`3d0b2c0`](https://redirect.github.com/lint-staged/lint-staged/commit/3d0b2c0709a2a39aa7b134e3741fed21250d808e)
- Fix issues with Git commands that are successful but also emit
warnings to `stderr`, by ignoring the `stderr` output completely when
the process exits with code 0. This was the behavior when using
`nano-spawn` and `execa`, but when switching to `tinyexec` in 16.3.0
both `stdout` and `stderr` were used as interleaved output.
</details>
---
### Configuration
📅 **Schedule**: (in timezone Asia/Tokyo)
- Branch creation
- Only on Wednesday (`* * * * 3`)
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/FlutterGen/flutter_gen).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMS40IiwidXBkYXRlZEluVmVyIjoiNDQuMTIuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent d32c78b commit 772f224
1 file changed
Lines changed: 16 additions & 207 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments