[Snyk] Upgrade lint-staged from 10.5.4 to 15.4.3 #102
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade lint-staged from 10.5.4 to 15.4.3.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 83 versions ahead of your current version.
The recommended version was released 2 months ago.
Issues fixed by the recommended upgrade:
SNYK-JS-DECODEURICOMPONENT-3149970
SNYK-JS-BODYPARSER-7926860
SNYK-JS-BRACES-6838727
SNYK-JS-FOLLOWREDIRECTS-6141137
SNYK-JS-GETFUNCNAME-5923417
SNYK-JS-QS-3153490
SNYK-JS-JSONSCHEMA-1920922
SNYK-JS-WS-7266574
SNYK-JS-MICROMATCH-6838728
SNYK-JS-SHELLQUOTE-1766506
SNYK-JS-QS-3153490
SNYK-JS-SEMVER-3247795
SNYK-JS-SEMVER-3247795
SNYK-JS-ROLLUP-8073097
SNYK-JS-BABELHELPERS-9397697
SNYK-JS-COOKIE-8163060
SNYK-JS-EJS-6689533
SNYK-JS-FOLLOWREDIRECTS-2332181
SNYK-JS-OCTOKITENDPOINT-8730856
SNYK-JS-FOLLOWREDIRECTS-6444610
SNYK-JS-OCTOKITREQUESTERROR-8730854
SNYK-JS-PATHTOREGEXP-7925106
SNYK-JS-POSTCSS-5926692
SNYK-JS-LOADERUTILS-3042992
SNYK-JS-LOADERUTILS-3105943
SNYK-JS-UAPARSERJS-3244450
SNYK-JS-MINIMATCH-3050818
SNYK-JS-FOLLOWREDIRECTS-2396346
SNYK-JS-MINIMIST-2429795
Release notes
Package name: lint-staged
Patch Changes
cbfed1d
Thanks @ tarik02! - Adjust TypeScript types for the default export so that it can be used as a value without error TS2693.Patch Changes
8827ebf
Thanks @ iiroj! - Change lint-staged's dependencies to use caret (^
) ranges instead of tilde (~
). This makes it easier for package managers to perform dependency management when minor-level updates are also permitted instead of just patch-level.Patch Changes
#1504
1c7a45e
Thanks @ iiroj! - Default TypeScript config filenames match JS equivalents.#1504
9cc18c9
Thanks @ iiroj! - Add missing conditional exports syntax for TypeScript types.Minor Changes
#1500
a8ec1dd
Thanks @ iiroj! - Lint-staged now provides TypeScript types for the configuration and main Node.js API. You can use the JSDoc syntax in your JS configuration files:It's also possible to use the
.ts
file extension for the configuration if your Node.js version supports it. The--experimental-strip-types
flag was introduced in Node.js v22.6.0 and unflagged in v23.6.0, enabling Node.js to execute TypeScript files without additional configuration.npx lint-staged --config lint-staged.config.ts
Patch Changes
9b79364
Thanks @ iiroj! - Handle possible failures when logging user shell for debug info.Minor Changes
#1495
e69da9e
Thanks @ iiroj! - Added more info to the debug logs so that "environment" info doesn't need to be added separately to GitHub issues.#1493
fa0fe98
Thanks @ iiroj! - Added more help messages around the automaticgit stash
that lint-staged creates as a backup (by default). The console output also displays the short git hash of the stash so that it's easier to recover lost files in case some fatal errors are encountered, or the process is killed before completing.For example:
where the backup can be seen with
git show 20addf8
, orgit stash list
:Patch Changes
#1484
bcfe309
Thanks @ wormsik! - Escape paths containing spaces when using the "shell" option.#1487
7dd8caa
Thanks @ iiroj! - Do not treat submodule root paths as "staged files". This caused lint-staged to fail to a Git error when only updating the revision of a submodule.Patch Changes
e3f283b
Thanks @ iiroj! - Update minor dependencies, includingmicromatch@~4.0.8
.Patch Changes
b69ce2d
Thanks @ iiroj! - Set the maximum number of event listeners to the number of tasks. This should silence the console warningMaxListenersExceededWarning: Possible EventEmitter memory leak detected
.Patch Changes
f0480f0
Thanks @ iiroj! - In the previous version the nativegit rev-parse --show-toplevel
command was taken into use for resolving the current git repo root. This version switched the--show-toplevel
flag with--show-cdup
, because on Git installed via MSYS2 the former was returning absolute paths that do not work with Node.jschild_process
. The new flag returns a path relative to the working directory, avoiding the issue.The GitHub Actions workflow has been updated to install Git via MSYS2, to ensure better future compatibility; using the default Git binary in the GitHub Actions runner was working correctly even with MSYS2.
Patch Changes
a51be80
Thanks @ iiroj! - In the previous version the nativegit rev-parse --show-toplevel
command was taken into use for resolving the current git repo root. This version drops the--path-format=absolute
option to support earlier git versions since it's also the default behavior. If you are still having trouble, please try upgradinggit
to the latest version.Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
Summary by Sourcery
Upgrade lint-staged from 10.5.4 to 15.4.3 to address multiple security vulnerabilities and incorporate the latest features and fixes.
Bug Fixes:
Enhancements: