chore(deps): update dependency css-select to v7#42
Conversation
db585c9 to
14cfe81
Compare
14cfe81 to
48186b5
Compare
📝 WalkthroughWalkthroughThis PR updates the 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
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 `@sri-plugin/examples/hwp-custom-template/package.json`:
- Line 9: Add an explicit Node engine requirement to the example package.json to
match css-select@7.0.0’s minimum Node version: update the package.json in the
hwp-custom-template example to include an "engines" field with "node":
">=20.19.0" so the runtime requirement is enforced (reference the package.json
in the example and the dependency "css-select": "^7.0.0"); ensure the field is
valid JSON and consider mirroring this constraint in the repo root package.json
if you want to enforce it project-wide.
🪄 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: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 42220eda-54c1-4056-a7e1-a9fd6265ff10
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (5)
sri-plugin/examples/hwp-custom-template/package.jsonsri-plugin/examples/hwp-externals/package.jsonsri-plugin/examples/hwp-output-parent-dir/package.jsonsri-plugin/examples/hwp-public-path/package.jsonsri-plugin/examples/hwp-subdirectories/package.json
| "devDependencies": { | ||
| "css-loader": "^7.1.2", | ||
| "css-select": "^5.1.0", | ||
| "css-select": "^7.0.0", |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Check Node.js version specifications across the repository
echo "=== Checking for Node.js version specifications ==="
# Check for .nvmrc files
echo -e "\n--- .nvmrc files ---"
fd -t f '^\.nvmrc$' --exec cat {}
# Check for .node-version files
echo -e "\n--- .node-version files ---"
fd -t f '^\.node-version$' --exec cat {}
# Check package.json engines fields
echo -e "\n--- package.json engines fields ---"
fd -t f '^package\.json$' --exec sh -c 'echo "File: {}" && cat {} | jq -r ".engines // empty"'
# Check CI configuration for Node.js versions
echo -e "\n--- GitHub Actions workflows ---"
fd -t f -e yml -e yaml . .github/workflows --exec sh -c 'echo "File: {}" && rg -A 2 "node-version" {}'
# Check for volta configuration
echo -e "\n--- Volta configuration in root package.json ---"
cat package.json 2>/dev/null | jq -r '.volta // empty'Repository: rstackjs/rspack-plugin-ci
Length of output: 3245
🌐 Web query:
css-select 7.0.0 minimum Node.js version 20.19.0 engines
💡 Result:
The minimum required Node.js version for css-select version 7.0.0 is 20.19.0 [1][2]. This requirement was established as part of a release that transitioned the package to be ESM-only [1][2].
Citations:
- 1: https://github.com/fb55/css-select/releases/tag/v7.0.0
- 2: Bump css-select from 6.0.0 to 7.0.0 steerlabs/opensteer#91
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "=== test.yml node matrix ==="
if [ -f .github/workflows/test.yml ]; then
sed -n '1,200p' .github/workflows/test.yml | rg -n "matrix|node-version" -n || true
sed -n '1,260p' .github/workflows/test.yml | sed -n '1,260p' | rg -n "matrix:|node:|node-version" || true
# Print a smaller focused region around matrix if present
rg -n "matrix" .github/workflows/test.yml -n
rg -n "node-version" .github/workflows/test.yml -n
fi
echo
echo "=== lint.yml node-version ==="
if [ -f .github/workflows/lint.yml ]; then
rg -n "node-version" .github/workflows/lint.yml -n
sed -n '1,120p' .github/workflows/lint.yml | rg -n "node-version" -n || true
fi
echo
echo "=== hwp-custom-template package.json (relevant engines/deps) ==="
cat sri-plugin/examples/hwp-custom-template/package.json | sed -n '1,120p'Repository: rstackjs/rspack-plugin-ci
Length of output: 1296
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "=== other workflow node-version occurrences ==="
rg -n "node-version" .github/workflows || true
echo
echo "=== look for mentions of Node 20/requirements in repo docs ==="
rg -n "Node\.?js|node version|20\.19|20\.|engines" -S . || true
echo
echo "=== check root package.json for volta/engines (if any) ==="
cat package.json 2>/dev/null | jq -r '"engines=" + (.engines|tostring) + "\nvolta=" + (.volta|tostring)' 2>/dev/null || trueRepository: rstackjs/rspack-plugin-ci
Length of output: 50382
🏁 Script executed:
#!/bin/bash
set -euo pipefail
cat -n package.json | sed -n '1,80p'Repository: rstackjs/rspack-plugin-ci
Length of output: 1808
Document/enforce Node.js requirement for css-select v7 (>=20.19.0)
css-select@7.0.0 requires Node.js >= 20.19.0. The example sri-plugin/examples/hwp-custom-template/package.json doesn’t declare an engines.node constraint (and the repo root package.json only pins pnpm), so running the example with an older Node can fail even though CI runs Node 22.x (.github/workflows/test.yml, .github/workflows/lint.yml). Add engines: { "node": ">=20.19.0" } to the example (and/or root) to make the requirement explicit.
🤖 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 `@sri-plugin/examples/hwp-custom-template/package.json` at line 9, Add an
explicit Node engine requirement to the example package.json to match
css-select@7.0.0’s minimum Node version: update the package.json in the
hwp-custom-template example to include an "engines" field with "node":
">=20.19.0" so the runtime requirement is enforced (reference the package.json
in the example and the dependency "css-select": "^7.0.0"); ensure the field is
valid JSON and consider mirroring this constraint in the repo root package.json
if you want to enforce it project-wide.
This PR contains the following updates:
^5.1.0→^7.0.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
fb55/css-select (css-select)
v7.0.0Compare Source
Breaking Changes
"type": "module"; CommonJSrequire()is only supported in modern environments #1746_compileTokenexport. Use_compileUnsafeinsteadaliases,filters, andpseudos. Use thepseudosoption instead./package.jsonsubpath export:enablednow only matches form elementsNew Features
:lang()pseudo-classnth-*pseudo-classes, e.g.:nth-last-child(3n+2 of .a)Full Changelog: fb55/css-select@v6.0.0...v7.0.0
v6.0.0Compare Source
f7fd5fcConfiguration
📅 Schedule: (in timezone Asia/Shanghai)
* 0-3 1,15 * *)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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.