Skip to content

chore(deps): update dependency css-select to v7#42

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/css-select-7.x
Open

chore(deps): update dependency css-select to v7#42
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/css-select-7.x

Conversation

@renovate

@renovate renovate Bot commented May 24, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
css-select ^5.1.0^7.0.0 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

fb55/css-select (css-select)

v7.0.0

Compare Source

Breaking Changes

  • ESM only: the package now sets "type": "module"; CommonJS require() is only supported in modern environments #​1746
    • Minimum Node.js version is now 20.19.0
  • Cleaned up deprecations
    • Removed the deprecated _compileToken export. Use _compileUnsafe instead
    • Removed the deprecated re-exports of aliases, filters, and pseudos. Use the pseudos option instead
    • Removed ./package.json subpath export
  • :enabled now only matches form elements

New Features

  • Added support for the :lang() pseudo-class
  • Added support for of in nth-* pseudo-classes, e.g. :nth-last-child(3n+2 of .a)

Full Changelog: fb55/css-select@v6.0.0...v7.0.0

v6.0.0

Compare Source



Configuration

📅 Schedule: (in timezone Asia/Shanghai)

  • Branch creation
    • Between 12:00 AM and 03:59 AM, on day 1 and 15 of the month (* 0-3 1,15 * *)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot force-pushed the renovate/css-select-7.x branch from db585c9 to 14cfe81 Compare June 1, 2026 19:35
@renovate renovate Bot force-pushed the renovate/css-select-7.x branch from 14cfe81 to 48186b5 Compare June 11, 2026 18:47
@coderabbitai

coderabbitai Bot commented Jun 11, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR updates the css-select development dependency from version ^5.1.0 to ^7.0.0 across five example projects in the sri-plugin/examples directory: hwp-custom-template, hwp-externals, hwp-output-parent-dir, hwp-public-path, and hwp-subdirectories. Each project's package.json file has its devDependencies entry for css-select updated to the newer major version.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and accurately describes the main change: updating the css-select dependency to version 7 across multiple package.json files.
Description check ✅ Passed The description is comprehensive and directly related to the changeset, providing release notes, breaking changes, and Renovate configuration details for the css-select v7 update.
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 unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch renovate/css-select-7.x

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

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 `@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

📥 Commits

Reviewing files that changed from the base of the PR and between b3e94d6 and 48186b5.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (5)
  • sri-plugin/examples/hwp-custom-template/package.json
  • sri-plugin/examples/hwp-externals/package.json
  • sri-plugin/examples/hwp-output-parent-dir/package.json
  • sri-plugin/examples/hwp-public-path/package.json
  • sri-plugin/examples/hwp-subdirectories/package.json

"devDependencies": {
"css-loader": "^7.1.2",
"css-select": "^5.1.0",
"css-select": "^7.0.0",

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 | 🟡 Minor

🧩 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:


🏁 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 || true

Repository: 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.

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.

0 participants