Commit f5ce644
authored
upgrade: update dependency lint-staged to v16.3.2 (#742)
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) |
[`16.2.0` →
`16.3.2`](https://renovatebot.com/diffs/npm/lint-staged/16.2.0/16.3.2) |

|

|
---
### Release Notes
<details>
<summary>lint-staged/lint-staged (lint-staged)</summary>
###
[`v16.3.2`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1632)
[Compare
Source](https://redirect.github.com/lint-staged/lint-staged/compare/v16.3.1...v16.3.2)
##### Patch Changes
-
[#​1735](https://redirect.github.com/lint-staged/lint-staged/pull/1735)
[`2adaf6c`](https://redirect.github.com/lint-staged/lint-staged/commit/2adaf6c3a76152abddbf23b749dfa5d62982f3cf)
Thanks [@​iiroj](https://redirect.github.com/iiroj)! - Hide the
extra `cmd` window on Windows by spawning tasks without the `detached`
option.
###
[`v16.3.1`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1631)
[Compare
Source](https://redirect.github.com/lint-staged/lint-staged/compare/v16.3.0...v16.3.1)
##### Patch Changes
-
[#​1729](https://redirect.github.com/lint-staged/lint-staged/pull/1729)
[`cd5d762`](https://redirect.github.com/lint-staged/lint-staged/commit/cd5d762c288bcfe36274c32f018cea97dfe11280)
Thanks [@​iiroj](https://redirect.github.com/iiroj)! - Remove
`nano-spawn` as a dependency from `package.json` as it was replaced with
`tinyexec` and is no longer used.
###
[`v16.3.0`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1630)
[Compare
Source](https://redirect.github.com/lint-staged/lint-staged/compare/v16.2.7...v16.3.0)
##### Minor Changes
-
[#​1698](https://redirect.github.com/lint-staged/lint-staged/pull/1698)
[`feda37a`](https://redirect.github.com/lint-staged/lint-staged/commit/feda37aa590789e847f32a4aabc346af1d79c547)
Thanks [@​iiroj](https://redirect.github.com/iiroj)! - Run
external processes with
[`tinyexec`](https://redirect.github.com/tinylibs/tinyexec) instead of
[`nano-spawn`](https://redirect.github.com/sindresorhus/nano-spawn).
`nano-spawn` replaced
[`execa`](https://redirect.github.com/sindresorhus/execa) in
*lint-staged* version 16 to limit the amount of npm dependencies
required, but caused some unknown issues related to spawning tasks.
Let's hope `tinyexec` improves the situation.
-
[#​1699](https://redirect.github.com/lint-staged/lint-staged/pull/1699)
[`1346d16`](https://redirect.github.com/lint-staged/lint-staged/commit/1346d16387e188911ef64e8bad6b8a6252cb6d71)
Thanks [@​iiroj](https://redirect.github.com/iiroj)! - Remove
`pidtree` as a dependency. When a task fails, its sub-processes are
killed more efficiently via the process group on Unix systems, and the
`taskkill` command on Windows.
##### Patch Changes
-
[#​1726](https://redirect.github.com/lint-staged/lint-staged/pull/1726)
[`87467aa`](https://redirect.github.com/lint-staged/lint-staged/commit/87467aaa76e1edc2547f3f3d462a4495afa5337d)
Thanks [@​iiroj](https://redirect.github.com/iiroj)! - Incorrect
brace expansions like `*.{js}` (*nothing to expand*) are detected
exhaustively, instead of just a single pass.
###
[`v16.2.7`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1627)
[Compare
Source](https://redirect.github.com/lint-staged/lint-staged/compare/v16.2.6...v16.2.7)
##### Patch Changes
-
[#​1711](https://redirect.github.com/lint-staged/lint-staged/pull/1711)
[`ef74c8d`](https://redirect.github.com/lint-staged/lint-staged/commit/ef74c8d165d5acd3ce88567e02b891e0e9af8e0e)
Thanks [@​iiroj](https://redirect.github.com/iiroj)! - Do not
display a "*failed to spawn*" error message when a task fails normally.
This message is reserved for when the task didn't run because spawning
it failed.
###
[`v16.2.6`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1626)
[Compare
Source](https://redirect.github.com/lint-staged/lint-staged/compare/v16.2.5...v16.2.6)
##### Patch Changes
-
[#​1693](https://redirect.github.com/lint-staged/lint-staged/pull/1693)
[`33d4502`](https://redirect.github.com/lint-staged/lint-staged/commit/33d4502ef9c939a9c6f41fc630a34e0985220f8e)
Thanks
[@​Adrian-Baran-GY](https://redirect.github.com/Adrian-Baran-GY)!
- Fix problems with `--continue-on-error` option, where tasks might have
still been killed (`SIGINT`) when one of them failed.
###
[`v16.2.5`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1625)
[Compare
Source](https://redirect.github.com/lint-staged/lint-staged/compare/v16.2.4...v16.2.5)
##### Patch Changes
-
[#​1687](https://redirect.github.com/lint-staged/lint-staged/pull/1687)
[`9e02d9d`](https://redirect.github.com/lint-staged/lint-staged/commit/9e02d9dc8a84bfeb7995520f00f7080b07a2e839)
Thanks [@​iiroj](https://redirect.github.com/iiroj)! - Fix
unhandled promise rejection when spawning tasks (*instead of the tasks
themselves failing*). Previously when a task failed to spawn,
*lint-staged* also failed and the backup stash might not have been
automatically restored.
###
[`v16.2.4`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1624)
[Compare
Source](https://redirect.github.com/lint-staged/lint-staged/compare/v16.2.3...v16.2.4)
##### Patch Changes
-
[#​1682](https://redirect.github.com/lint-staged/lint-staged/pull/1682)
[`0176038`](https://redirect.github.com/lint-staged/lint-staged/commit/01760380e57080d136cc396455346c36aef5770e)
Thanks [@​iiroj](https://redirect.github.com/iiroj)! - Update
dependencies, including
[`nano-spawn@2.0.0`](https://redirect.github.com/sindresorhus/nano-spawn/releases/tag/v2.0.0)
with bug fixes.
-
[#​1671](https://redirect.github.com/lint-staged/lint-staged/pull/1671)
[`581a54e`](https://redirect.github.com/lint-staged/lint-staged/commit/581a54eea6ba3a3a1b715407c895f63a961903f3)
Thanks [@​iiroj](https://redirect.github.com/iiroj)! - Speed up
execution by only importing the `yaml` depedency if using YAML
configuration files.
###
[`v16.2.3`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1623)
[Compare
Source](https://redirect.github.com/lint-staged/lint-staged/compare/v16.2.2...v16.2.3)
##### Patch Changes
-
[#​1669](https://redirect.github.com/lint-staged/lint-staged/pull/1669)
[`27cd541`](https://redirect.github.com/lint-staged/lint-staged/commit/27cd5413d973baea6b4f3da704fb3bee8298e751)
Thanks [@​iiroj](https://redirect.github.com/iiroj)! - When using
`--fail-on-changes`, automatically hidden (partially) unstaged changes
are no longer counted to make *lint-staged* fail.
###
[`v16.2.2`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1622)
[Compare
Source](https://redirect.github.com/lint-staged/lint-staged/compare/v16.2.1...v16.2.2)
##### Patch Changes
-
[#​1667](https://redirect.github.com/lint-staged/lint-staged/pull/1667)
[`699f95d`](https://redirect.github.com/lint-staged/lint-staged/commit/699f95df8f89ac7f7d360bbf93740d19d5899ac5)
Thanks [@​iiroj](https://redirect.github.com/iiroj)! - The backup
stash will not be dropped when using `--fail-on-changes` and there are
errors. When reverting to original state is disabled (via `--no-revert`
or `--fail-on-changes`), hidden (partially) unstaged changes are still
restored automatically so that it's easier to resolve the situation
manually.
Additionally, the example for using the backup stash manually now uses
the correct backup hash, if available:
```shell
% 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...
✖ lint-staged failed because `--fail-on-changes` was used.
Any lost modifications can be restored from a git stash:
> git stash list --format="%h %s"
c18d55a3 On main: lint-staged automatic backup
> git apply --index c18d55a3
```
###
[`v16.2.1`](https://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1621)
[Compare
Source](https://redirect.github.com/lint-staged/lint-staged/compare/v16.2.0...v16.2.1)
##### Patch Changes
-
[#​1664](https://redirect.github.com/lint-staged/lint-staged/pull/1664)
[`8277b3b`](https://redirect.github.com/lint-staged/lint-staged/commit/8277b3b298421ebbb39c43d7e3538481e15c4659)
Thanks [@​iiroj](https://redirect.github.com/iiroj)! - 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 `readonly string[]` and can't be mutated. Thanks
[@​outslept](https://redirect.github.com/outslept)!
```diff
export default {
--- "*": (files: string[]) => void console.log('staged files', files)
+++ "*": (files: readonly string[]) => void console.log('staged files',
files)
}
```
-
[#​1654](https://redirect.github.com/lint-staged/lint-staged/pull/1654)
[`70b9af3`](https://redirect.github.com/lint-staged/lint-staged/commit/70b9af3ac3fd66af94936e55bb3e91381937b41f)
Thanks [@​iiroj](https://redirect.github.com/iiroj)! - This
version has been published from GitHub Actions using [Trusted Publishing
for npm packages](https://docs.npmjs.com/trusted-publishers).
-
[#​1659](https://redirect.github.com/lint-staged/lint-staged/pull/1659)
[`4996817`](https://redirect.github.com/lint-staged/lint-staged/commit/49968170abb3bab7ac8dc0a6bc5ea92850337baa)
Thanks [@​iiroj](https://redirect.github.com/iiroj)! - Fix
searching configuration files when the working directory is a
subdirectory of a git repository, and there are `package.json` files in
the working directory. This situation might happen when running
*lint-staged* for a single package in a monorepo.
-
[#​1654](https://redirect.github.com/lint-staged/lint-staged/pull/1654)
[`7021f0a`](https://redirect.github.com/lint-staged/lint-staged/commit/7021f0af40ac1d5787501894c0f2222980023703)
Thanks [@​iiroj](https://redirect.github.com/iiroj)! - Return the
caret semver range (`^`) 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 *lint-staged*. This was changed in
[16.2.0](https://redirect.github.com/lint-staged/lint-staged/releases/tag/v16.2.0)
after the vulnerability issues with `chalk` and `debug`, which were also
removed in the same version.
Given the recent vulnerabilities in the *npm* ecosystem, it's best to be
very careful when updating dependencies.
</details>
---
### Configuration
📅 **Schedule**: Branch creation - Only on Wednesday ( * * * * 3 ) in
timezone Asia/Tokyo, 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:eyJjcmVhdGVkSW5WZXIiOiI0My42Ni40IiwidXBkYXRlZEluVmVyIjoiNDMuNjYuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent 62406e9 commit f5ce644
1 file changed
+66
-65
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments