Skip to content

chore(deps-dev): bump lint-staged from 16.4.0 to 17.0.5#60

Merged
Moeabdelaziz007 merged 1 commit into
mainfrom
dependabot/npm_and_yarn/lint-staged-17.0.5
May 18, 2026
Merged

chore(deps-dev): bump lint-staged from 16.4.0 to 17.0.5#60
Moeabdelaziz007 merged 1 commit into
mainfrom
dependabot/npm_and_yarn/lint-staged-17.0.5

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 18, 2026

Bumps lint-staged from 16.4.0 to 17.0.5.

Release notes

Sourced from lint-staged's releases.

v17.0.5

Patch Changes

  • #1792 1f67271 - Correctly set the --max-arg-length default value based on the running platform. This controls how very long lists of staged files are split into multiple chunks.

v17.0.4

Patch Changes

  • #1788 f95c1f8 - Another fix for making sure lint-staged adds task modifications correctly to the commit in the following cases:

    • after editing <file> it is staged with git add <file>, and then committed with git commit
    • after editing <file> it is committed with git commit --all without explicit git add
    • after editing <file> it is committed with git commit <pathspec> without explicit git add

    There's new test cases which actually setup the Git pre_commit hook to run lint-staged and verify them. These issues started in v17.0.0 when trying to improve support for committig without having explicitly staged files.

v17.0.3

Patch Changes

  • #1782 06813f9 Thanks @​iiroj! - Fix lint-staged behavior when implicitly committing files without using git add by either:
    • git commit -am "my commit message" where -a (--all) means to automatically stage all tracked modified and deleted files
    • git commit -m "my commit message" . where . is an example of a pathspec where matching files will be staged

v17.0.2

Patch Changes

v17.0.1

Patch Changes

  • #1776 4a5664b Thanks @​iiroj! - Adjust GitHub Actions workflow so that automatic publishing works with signed commits.

v17.0.0

Major Changes

  • #1745 e244adf Thanks @​iiroj! - Node.js v20 is no longer supported, and the oldest supported version is now 22.22.1, which is an active LTS version at the time of this release. Node.js 20 will be EOL after April 2026. Please upgrade your Node.js version!

  • #1676 0584e0b Thanks @​outslept! - Lint-staged now tries to verify the installed Git version is at least 2.32.0, released in 2021. If you're using an even older Git version, you need to upgrade it before running lint-staged!

  • #1745 2dcc40a Thanks @​iiroj! - The dependency yaml is now marked as optional and probably won't be installed by default. If you're using a YAML configuration file you should install the package separately:

    npm install --development yaml

    If you're using .lintstagedrc as the config file name (without a file extension), it will be treated as a YAML file. If the content is JSON, consider renaming it to .lintstagedrc.json to avoid needing to install yaml.

Minor Changes

... (truncated)

Changelog

Sourced from lint-staged's changelog.

17.0.5

Patch Changes

  • #1792 1f67271 - Correctly set the --max-arg-length default value based on the running platform. This controls how very long lists of staged files are split into multiple chunks.

17.0.4

Patch Changes

  • #1788 f95c1f8 - Another fix for making sure lint-staged adds task modifications correctly to the commit in the following cases:

    • after editing <file> it is staged with git add <file>, and then committed with git commit
    • after editing <file> it is committed with git commit --all without explicit git add
    • after editing <file> it is committed with git commit <pathspec> without explicit git add

    There's new test cases which actually setup the Git pre_commit hook to run lint-staged and verify them. These issues started in v17.0.0 when trying to improve support for committig without having explicitly staged files.

17.0.3

Patch Changes

  • #1782 06813f9 Thanks @​iiroj! - Fix lint-staged behavior when implicitly committing files without using git add by either:
    • git commit -am "my commit message" where -a (--all) means to automatically stage all tracked modified and deleted files
    • git commit -m "my commit message" . where . is an example of a pathspec where matching files will be staged

17.0.2

Patch Changes

17.0.1

Patch Changes

  • #1776 4a5664b Thanks @​iiroj! - Adjust GitHub Actions workflow so that automatic publishing works with signed commits.

17.0.0

Major Changes

  • #1745 e244adf Thanks @​iiroj! - Node.js v20 is no longer supported, and the oldest supported version is now 22.22.1, which is an active LTS version at the time of this release. Node.js 20 will be EOL after April 2026. Please upgrade your Node.js version!

  • #1676 0584e0b Thanks @​outslept! - Lint-staged now tries to verify the installed Git version is at least 2.32.0, released in 2021. If you're using an even older Git version, you need to upgrade it before running lint-staged!

  • #1745 2dcc40a Thanks @​iiroj! - The dependency yaml is now marked as optional and probably won't be installed by default. If you're using a YAML configuration file you should install the package separately:

    npm install --development yaml

... (truncated)

Commits
  • cbd822e Merge pull request #1793 from lint-staged/changeset-release/main
  • 1911244 chore(changeset): release
  • 7339d7d Merge pull request #1792 from lint-staged/fix-max-arg-length-default
  • 1f67271 fix: default maxArgLength to undefined instead of NaN when parsing cli ...
  • 2862964 Merge pull request #1789 from lint-staged/changeset-release/main
  • c9ecd54 chore(changeset): release
  • cc6b51a Merge pull request #1788 from lint-staged/fix-update-index-again
  • f95c1f8 fix: update both default index.lock and non-standard lock when latter exists
  • f44ee68 Merge pull request #1786 from lint-staged/update-repo-url
  • a61cf18 build(deps): update dependencies
  • Additional commits viewable in compare view

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github May 18, 2026

Labels

The following labels could not be found: automated, dependencies. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 18, 2026

📝 Walkthrough

Walkthrough

The lint-staged devDependency is updated from ^16.4.0 to ^17.0.5 in package.json. This is a minor version bump that will pull in the latest 17.x release of the linting staged files tool.

Changes

Dependency Version Update

Layer / File(s) Summary
lint-staged Version Update
package.json
The lint-staged devDependency is updated from ^16.4.0 to ^17.0.5.

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A tiny hop, a version climb,
From sixteen to seventeen prime,
lint-staged bounds ahead so spry,
Staging lint, reaching for the sky! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is minimal and lacks required sections from the repository's template, including the PR description, related issue, type of change, and strict checklist items. Add a comprehensive description section explaining the rationale for upgrading lint-staged, verify Node.js v22.22.1+ compatibility, ensure Git version is >= 2.32.0, and complete the strict checklist.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: bumping lint-staged from 16.4.0 to 17.0.5.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dependabot/npm_and_yarn/lint-staged-17.0.5

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@package.json`:
- Line 73: The Node engine constraint is too permissive for lint-staged@17;
update the package.json "engines" entry for "node" to ">=22.22.1" (matching
lint-staged@17 minimum) and ensure any CI workflow node-version settings are
tightened similarly: change the node-version entries in the CI workflow(s) (the
two occurrences referenced around the workflow job setup and matrix) and in the
Gemini test workflow node-version to use "22.22.1" or ">=22.22.1" so CI and
local install enforce the same minimum Node version as the upgraded
"lint-staged" dependency.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 4af94ff4-d76b-4690-8c88-b56ae80120d8

📥 Commits

Reviewing files that changed from the base of the PR and between a241239 and 7a5fd0e.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json

Comment thread package.json
"@types/node": "^20",
"husky": "^9.1.7",
"lint-staged": "^16.4.0",
"lint-staged": "^17.0.5",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify Node/Git compatibility signals in repo config (read-only).

set -euo pipefail

echo "== package.json engines =="
cat package.json | jq -r '.engines'

echo
echo "== lint-staged version =="
cat package.json | jq -r '.devDependencies["lint-staged"]'

echo
echo "== CI/setup-node versions (if present) =="
fd -i '.*(workflow|workflows).*\.ya?ml$' .github 2>/dev/null | while read -r f; do
  echo "-- $f"
  rg -n 'setup-node|node-version|node-version-file' "$f" || true
done

echo
echo "== Git version constraints mentioned in repo files (if any) =="
rg -n 'git.*2\.32|minimum git|requires git|git version' README.md .github package.json 2>/dev/null || true

Repository: AIX-Format/PiWorker-OS

Length of output: 258


🏁 Script executed:

# Check if .github directory exists and list its contents
ls -la .github 2>/dev/null || echo ".github directory not found"

Repository: AIX-Format/PiWorker-OS

Length of output: 641


🌐 Web query:

lint-staged v17 minimum Node.js version requirements

💡 Result:

As of May 2026, lint-staged version 17 requires a minimum Node.js version of 22.22.1 [1][2][3]. With the release of v17.0.0, support for Node.js v20 was dropped [1][2]. Users are advised to upgrade their Node.js environment to at least v22.22.1, which is an active Long Term Support (LTS) version, to ensure compatibility with lint-staged v17 [1][3]. Additionally, lint-staged v17 requires a Git version of at least 2.32.0 [1][2].

Citations:


🏁 Script executed:

# List workflow files
ls -la .github/workflows/

echo
echo "=== Checking for Node version pinning in workflows ==="
rg -n 'node-version|setup-node' .github/workflows/ --type yaml || echo "No Node version constraints found in workflows"

Repository: AIX-Format/PiWorker-OS

Length of output: 871


Align Node engine floor with lint-staged@17 minimum requirement in both package.json and CI workflows.

Bumping to lint-staged@^17.0.5 while keeping "node": ">=22.x" in both package.json and CI workflows allows unsupported Node 22 patch versions (below 22.22.1) to run. Tighten the constraint to >=22.22.1 in both places to ensure compatibility.

Required changes

Update package.json:

-  "engines": {
-    "node": ">=22.x"
-  },
+  "engines": {
+    "node": ">=22.22.1"
+  },

Update .github/workflows/ci.yml (lines 26 and 132):

-          node-version: "22.x"
+          node-version: "22.22.1"

Update .github/workflows/gemini-test.yml (line 24):

-          node-version: '22.x'
+          node-version: "22.22.1"
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package.json` at line 73, The Node engine constraint is too permissive for
lint-staged@17; update the package.json "engines" entry for "node" to
">=22.22.1" (matching lint-staged@17 minimum) and ensure any CI workflow
node-version settings are tightened similarly: change the node-version entries
in the CI workflow(s) (the two occurrences referenced around the workflow job
setup and matrix) and in the Gemini test workflow node-version to use "22.22.1"
or ">=22.22.1" so CI and local install enforce the same minimum Node version as
the upgraded "lint-staged" dependency.

@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/lint-staged-17.0.5 branch from 7a5fd0e to 0faaab5 Compare May 18, 2026 13:24
Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from 16.4.0 to 17.0.5.
- [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@v16.4.0...v17.0.5)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-version: 17.0.5
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/lint-staged-17.0.5 branch from 0faaab5 to bda6b39 Compare May 18, 2026 13:37
Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dependabot[bot] has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@Moeabdelaziz007 Moeabdelaziz007 merged commit ce107b1 into main May 18, 2026
6 of 7 checks passed
@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/lint-staged-17.0.5 branch May 18, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant