Repository navigation
Update dependency lint-staged to v17.6.3 - #1858
renovate[bot] wants to merge 1 commit into
Conversation
|
Tick the box to add this pull request to the merge queue (same as
|
4dffddd to
954274b
Compare
954274b to
aa9e562
Compare
aa9e562 to
77e85fe
Compare
77e85fe to
5190c11
Compare
5190c11 to
3e53e6d
Compare
b33842b to
f94d178
Compare
f94d178 to
d675559
Compare
d675559 to
97ef9ff
Compare
|
Tick the box to add this pull request to the merge queue (same as
|
|
Tick the box to add this pull request to the merge queue (same as
|
97ef9ff to
7749b78
Compare
|
Tick the box to add this pull request to the merge queue (same as
|
2 similar comments
|
Tick the box to add this pull request to the merge queue (same as
|
|
Tick the box to add this pull request to the merge queue (same as
|
7749b78 to
ad8ada0
Compare
|
Tick the box to add this pull request to the merge queue (same as
|
ad8ada0 to
881e84e
Compare
|
Tick the box to add this pull request to the merge queue (same as
|
881e84e to
9ac35fb
Compare
9ac35fb to
83a9aaa
Compare
83a9aaa to
150ead0
Compare
This PR contains the following updates:
17.2.0→17.6.3Release Notes
lint-staged/lint-staged (lint-staged)
v17.6.3Compare Source
Patch Changes
#1873
9791e53- Clean up theSIGINTevent listener after running. This is used to handle manually stopping lint-staged while running, e.g. by pressingCTRL+C.#1873
de5f54a- Unstaged changes to files with additional staged changes ("partially staged") are no longer hidden when the first preparation step of lint-staged fails.v17.6.2Compare Source
Patch Changes
#1871
9663745- Versionv17.6.0introduced automatic staging of all tracked files edited by tasks, even if the files were not originally staged. This version adjusts the behavior so that when using a pathspec likegit commit file.js(implying--only), the staging is limited to those files. The default behavior when runninggit commitis unchanged.#1871
7a96baf- Similar to the above, when using--fail-on-changesand a pathspec likegit commit file.js(implying--only), the commit will fail only if those files were changed. The default behavior when runninggit commitis unchanged, and the commit will fail on any changes to tracked files.v17.6.1Compare Source
Patch Changes
18bc32f- The warning about the temporary patch file containing hidden partially-staged changes is only displayed when restoring the changes failed.v17.6.0Compare Source
Minor Changes
#1850
938d3f4- Task functions like{ title, task }can now use a logger functionlog()to emit output while the task runs. By default, the output will only be visible if the task fails, unless the--verboseoption was used. Additionally, when the task rejects, the error will be shown in the output.#1854
30562bc- lint-staged now stages changes to all tracked files modified by tasks, including files that weren’t originally staged or didn’t match the configured globs. This can happen when your task has side-effects, or it's a function that ignores the staged files like() => "prettier --write .".If you have unstaged changes in a file and the task also edits that file, your unstaged changes will be staged too. Use
--hide-unstagedto hide your changes while tasks run.Patch Changes
#1860
4296532- The assignment of staged files to lint-staged configuration files (when using multiple, for example in a monorepo) has been rewritten to be more efficient. As a reminder, each staged file is assigned to exactly one configuration (the closest one), even if that config doesn't match the file in its globs.#1861
c45f28a- Fix running parallel tasks for a single glob, when tasks are created by a function. Nesting one level of arrays inside an array of tasks will result in the inner tasks running in parallel. This behavior should now be consistent when creating tasks using functions. In the following exampleeslintandprettierwill run in parallel (for all files, when any JS files are staged):#1859
f0ea69d- Various performance improvements from skipping redundant internal Git calls.#1856
69d7d17- Partially staged changes are hidden in a uniquely-named patch file to avoid multiple invocations of lint-staged overwriting it. This makes it safer to run lint-staged in multiple worktrees at the same time.v17.5.1Compare Source
Patch Changes
#1852
bfcca94- Fix TypeScript issueTS1254fromdefineConfig()by changing the signature fromconstto afunction:v17.5.0Compare Source
Minor Changes
f9063b7- Lint-staged now refuses to run when files were staged with--intent-to-add, because Git stash doesn't support them. Previously this was an unhandled error.Patch Changes
#1848
d718ccc- Lint-staged now handles color support better in non-TTY streams, and honors theFORCE_COLORenvironment variable.#1845
7e5ece8- Updatetinyexec@1.3.1so that local binaries fromnode_modules/.binare resolved starting from the directory of each lint-staged configuration file (in monorepo setups). This behavior was broken inlint-staged@16.3.0where they were only resolved from the current working directory and up.#1845
eb8a4e3- Do not try to restore untracked files when using--hide-alland there is no initial commit yet.v17.4.1Compare Source
Patch Changes
efe5b63- This is a version-bump-only release because the previous version17.4.0was not published to npmjs.com due to problems with GitHub Actions and Changesets.v17.3.0Compare Source
Minor Changes
#1825
16b3f74- It is now possible to run multiple tasks in parallel for a single glob by configuring it with an array of tasks (which run sequentially), and then placing another array inside it (where the tasks will run in parallel). The following demonstrates the order tasks will start in:{ "*.ts": ["first", "second", ["third", "third"], "fourth"] }As a concrete example, lint-staged's own configuration is:
which means:
oxfmt --check --no-error-on-unmatched-pattern lib/index.jsoxlint --no-error-on-unmatched-pattern lib/index.js*.tsfiles are staged, runtscwithout appending any argumentsPatch Changes
15f7e53- During an in-progress merge, files that are unchanged from the branch being merged are now skipped. Technically, files are only included if there are staged changes against bothHEADandMERGE_HEAD.Configuration
📅 Schedule: (in timezone Asia/Shanghai)
🚦 Automerge: Enabled.
♻ 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.
This PR was generated by Mend Renovate. View the repository job log.