build(deps-dev): bump lint-staged from 15.5.1 to 16.1.2
Type: Pull Request
State: Closed
![dependabot[bot]](https://github.com/dependabot.png)
Association: None
Comments: 5
(3 months ago)
(about 1 month ago)
(about 1 month ago)
dependencies javascript
Bumps lint-staged from 15.5.1 to 16.1.2.
Release notes
Sourced from lint-staged's releases.
v16.1.2
Patch Changes
#1570
a7c0c88
Thanks@ItsNickBarry
! - When using--diff-filter
with theD
option to include deleted staged files, lint-staged no longer tries to stage the deleted files, unless they're no longer deleted. Previously this caused an error fromgit add
likefatal: pathspec 'deleted-file' did not match any files
.
38f942e
Thanks@iiroj
! - Removed an extraneous log entry that printedshouldHidePArtiallyStagedFiles
to console output.v16.1.1
Patch Changes
#1565
3686977
Thanks@iiroj
! - Lint-staged now explicitly warns about potential data loss when using--no-stash
.#1571
02299a9
Thanks@iiroj
! - Function tasks (introduced in v16.0.0) only receive the staged files matching the configured glob, instead of all staged files.#1563
bc61c74
Thanks@iiroj
! - This version fixes incorrect behavior where unstaged changes were committed when using the--no-stash
option. This happened because--no-stash
implied--no-hide-partially-staged
, meaning unstaged changes to files which also had other staged changes were added to the commit by lint-staged; this is no longer the case.The previous (incorrect) behavior can still be achieved by using both options
--no-stash --no-hide-partially-staged
at the same time.v16.1.0
Minor Changes
#1536
e729daa
Thanks@iiroj
! - A new flag--no-revert
has been introduced for when task modifications should be applied to the index before aborting the commit in case of errors. By default, lint-staged will clear all task modifications and revert to the original state.#1550
b27fa3f
Thanks@iiroj
! - Lint-staged now ignores symlinks and leaves them out from the list of staged files.Patch Changes
- #1558
c37dc38
Thanks@iiroj
! - The minimum required Node.js version is lowered to20.17
following nano-spawn@1.0.2.v16.0.0
Major Changes
#1546
158d15c
Thanks@iiroj
! - Processes are spawned using nano-spawn instead of execa. If you are using Node.js scripts as tasks, you might need to explicitly run them withnode
, especially when using Windows:{ "*.js": "node my-js-linter.js" }
#1546
158d15c
Thanks@iiroj
! - The--shell
flag has been removed and lint-staged 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"$@"
:# my-script.sh #!/bin/bash
echo "Staged files: $@"
and
... (truncated)
Changelog
Sourced from lint-staged's changelog.
16.1.2
Patch Changes
#1570
a7c0c88
Thanks@ItsNickBarry
! - When using--diff-filter
with theD
option to include deleted staged files, lint-staged no longer tries to stage the deleted files, unless they're no longer deleted. Previously this caused an error fromgit add
likefatal: pathspec 'deleted-file' did not match any files
.
38f942e
Thanks@iiroj
! - Removed an extraneous log entry that printedshouldHidePArtiallyStagedFiles
to console output.16.1.1
Patch Changes
#1565
3686977
Thanks@iiroj
! - Lint-staged now explicitly warns about potential data loss when using--no-stash
.#1571
02299a9
Thanks@iiroj
! - Function tasks (introduced in v16.0.0) only receive the staged files matching the configured glob, instead of all staged files.#1563
bc61c74
Thanks@iiroj
! - This version fixes incorrect behavior where unstaged changes were committed when using the--no-stash
option. This happened because--no-stash
implied--no-hide-partially-staged
, meaning unstaged changes to files which also had other staged changes were added to the commit by lint-staged; this is no longer the case.The previous (incorrect) behavior can still be achieved by using both options
--no-stash --no-hide-partially-staged
at the same time.16.1.0
Minor Changes
#1536
e729daa
Thanks@iiroj
! - A new flag--no-revert
has been introduced for when task modifications should be applied to the index before aborting the commit in case of errors. By default, lint-staged will clear all task modifications and revert to the original state.#1550
b27fa3f
Thanks@iiroj
! - Lint-staged now ignores symlinks and leaves them out from the list of staged files.Patch Changes
- #1558
c37dc38
Thanks@iiroj
! - The minimum required Node.js version is lowered to20.17
following nano-spawn@1.0.2.16.0.0
Major Changes
#1546
158d15c
Thanks@iiroj
! - Processes are spawned using nano-spawn instead of execa. If you are using Node.js scripts as tasks, you might need to explicitly run them withnode
, especially when using Windows:{ "*.js": "node my-js-linter.js" }
#1546
158d15c
Thanks@iiroj
! - The--shell
flag has been removed and lint-staged 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"$@"
:# my-script.sh #!/bin/bash
... (truncated)
Commits
0c48e29
chore(changeset): releasee07227e
perf: call rev-parse only once instead of three times when resolving git repo38f942e
fix: remove extra log entry5031a71
perf: further optimize file chunking6ec38b9
perf: optimize file list length calculation (#1581)a7c0c88
fix: only stage changes to deleted files if they're no longer deleted after r...ccd5edd
test: pass --no-error-on-unmatched-pattern to prettier command in --diff-opti...48a6e95
test: add failing test for staged deleted files not passed directly to tasks ...b56b29e
test: add failing test for staged deleted files with diff filter D8420429
chore(changeset): release- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase
.
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 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)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Pull Request Statistics
1
2
+57
-253
Package Dependencies
Technical Details
ID: | 1590272 |
UUID: | 2594147463 |
Node ID: | PR_kwDOIyje-c6an4yH |
Host: | GitHub |
Repository: | jauderho/github-readme-stats |
Mergeable: | Yes |
Merge State: | Unstable |
Rebaseable: | Yes |