Bump lint-staged from 15.5.1 to 16.0.0
Type: Pull Request
State: Merged
Association: Contributor
Comments: 1
(6 months ago)
(6 months ago)
(6 months ago)
by github-actions[bot]
dependencies javascript
Bumps lint-staged from 15.5.1 to 16.0.0.
Release notes
Sourced from lint-staged's releases.
v16.0.0
Major Changes
#1546
158d15cThanks@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
158d15cThanks@iiroj! - The--shellflag 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/bashecho "Staged files: $@"
and
{ "*.js": "my-script.sh" }If you were using the shell option to avoid passing filenames to tasks, for example
bash -c 'tsc --noEmit', use the function syntax instead:export default { '*.ts': () => 'tsc --noEmit' }#1546
158d15cThanks@iiroj! - Validation for deprecated advanced configuration has been removed. The advanced configuration was removed in lint-staged version 9 and until now validation has failed if advanced configuration options were detected. Going forward the entire configuration will be treated with the same logic and if these advanced options are still present, they might be treated as valid globs for staged files instead.#1546
158d15cThanks@iiroj! - The lowest supported Node.js version is20.18. Please upgrade your Node.js version.Minor Changes
#1401
27110efThanks@RohitLuthra19! - Added support for directly running functions on staged files. To configure a function task, use an object with a title and the task itself:export default { '*.js': { title: 'My task', task: async (files) => { console.log('Staged JS files:', files) }, }, }
... (truncated)
Changelog
Sourced from lint-staged's changelog.
16.0.0
Major Changes
#1546
158d15cThanks@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
158d15cThanks@iiroj! - The--shellflag 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/bashecho "Staged files: $@"
and
{ "*.js": "my-script.sh" }If you were using the shell option to avoid passing filenames to tasks, for example
bash -c 'tsc --noEmit', use the function syntax instead:export default { '*.ts': () => 'tsc --noEmit' }#1546
158d15cThanks@iiroj! - Validation for deprecated advanced configuration has been removed. The advanced configuration was removed in lint-staged version 9 and until now validation has failed if advanced configuration options were detected. Going forward the entire configuration will be treated with the same logic and if these advanced options are still present, they might be treated as valid globs for staged files instead.#1546
158d15cThanks@iiroj! - The lowest supported Node.js version is20.18. Please upgrade your Node.js version.Minor Changes
#1401
27110efThanks@RohitLuthra19! - Added support for directly running functions on staged files. To configure a function task, use an object with a title and the task itself:export default { '*.js': { title: 'My task', task: async (files) => { console.log('Staged JS files:', files) }, }, }
... (truncated)
Commits
dad5490chore(changeset): release1c19e82build(deps): update dependencies and require Node.js 20.1808cf8f5docs: update README.md and bump nano-spawn as major change276dcc8refactor: simplify config validationd4b7cactest: update tests0ee9ab8fix: update TypeScript type definitions12525b2refactor: rename functions541c353refactor: separate "make cmd tasks" and "make function tasks"27110effeat: added support for custom configuration52366f9ci: update Node.js versions used in CI- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
1
2
+94
-102
Package Dependencies
Technical Details
| ID: | 1011117 |
| UUID: | 2514954057 |
| Node ID: | PR_kwDONUyxgM6V5ydJ |
| Host: | GitHub |
| Repository: | mrlonis/example-angular-theme-lib |
| Merge State: | Unknown |