build(deps-dev): bump lint-staged from 15.2.0 to 16.4.0#1299
build(deps-dev): bump lint-staged from 15.2.0 to 16.4.0#1299dependabot[bot] wants to merge 1 commit into
Conversation
Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from 15.2.0 to 16.4.0. - [Release notes](https://github.com/lint-staged/lint-staged/releases) - [Changelog](https://github.com/lint-staged/lint-staged/blob/main/CHANGELOG.md) - [Commits](lint-staged/lint-staged@v15.2.0...v16.4.0) --- updated-dependencies: - dependency-name: lint-staged dependency-version: 16.4.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.
TIP This summary will be updated as you push new changes.
There was a problem hiding this comment.
Pull Request Overview
The update to lint-staged v16.4.0 introduces improved process execution via tinyexec and globbing via picomatch. While Codacy indicates the PR is up to standards, there is a critical discrepancy in environment requirements. The new version of lint-staged requires Node.js >=20.17.0, but the project's package.json currently specifies >=20.0.0. This mismatch is the primary issue to address, as it will cause installation or execution failures in environments using older Node 20 LTS releases. The change is technically sound otherwise, but the engine configuration must be aligned to ensure stability.
About this PR
- The dependency bump to lint-staged 16.4.0 introduces a requirement for Node.js >= 20.17.0. The project's current engines field (>= 20.0.0) is no longer sufficient and may lead to installation or runtime failures on older Node 20 versions.
Test suggestions
- Verify that pre-commit hooks correctly trigger lint-staged and process files using picomatch logic.
- Verify that tasks are executed successfully via tinyexec across different operating systems (specifically Windows as per release notes).
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify that pre-commit hooks correctly trigger lint-staged and process files using picomatch logic.
2. Verify that tasks are executed successfully via tinyexec across different operating systems (specifically Windows as per release notes).
TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback
| "eslint-plugin-unused-imports": "^3.0.0", | ||
| "husky": "^8.0.3", | ||
| "lint-staged": "^15.2.0", | ||
| "lint-staged": "^16.4.0", |
There was a problem hiding this comment.
🟡 MEDIUM RISK
The updated version of lint-staged requires Node.js >=20.17.0 (as evidenced in package-lock.json), but the project's engines.node field is currently set to >=20.0.0. This discrepancy can cause installation errors or execution failures on earlier Node 20 releases.
Update the engines.node field in package.json to >=20.17.0 to align with the dependency's requirements.
Bumps lint-staged from 15.2.0 to 16.4.0.
Release notes
Sourced from lint-staged's releases.
... (truncated)
Changelog
Sourced from lint-staged's changelog.
... (truncated)
Commits
445f9ddchore(changeset): released91be60docs: update readme to use picomatchb392a9frefactor: extractmatchFilesand add unit tests687fc90refactor: replace micromatch with picomatch26dadf9chore(changeset): release9d6e827build(deps): update dependencies8aea986chore(changeset): release0109e8dfix: strip Git CRLF warning from outputdfd6a7achore(changeset): release2adaf6cfix(Windows): do not spawn tasks as detached since it opens a cmd window on ...Maintainer changes
This version was pushed to npm by GitHub Actions, a new releaser for lint-staged since your current version.
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 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)