Skip to content

fix: allow icons query in cached handler for Nitro 3 - #542

Merged
atinux merged 4 commits into
nuxt:mainfrom
KazariAI:fix/cache-query-key
Oct 23, 2026
Merged

atinux merged 4 commits into
nuxt:mainfrom
KazariAI:fix/cache-query-key

Conversation

@KazariAI

Copy link
Copy Markdown
Contributor

Nitro 3 filters query parameters from cacheable handlers by default. Add allowQuery: ["icons"] so getKey() and the handler can access requested icons.


This pull request was created with assistance from a code agent.

@pkg-pr-new

pkg-pr-new Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
npm i https://pkg.pr.new/@nuxt/icon@542

commit: 197f075

@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

⛔ Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4a391f9e-001c-4325-a5ef-6546db9179f7
📥 Commits

Reviewing files that changed from the base of the PR and between 9356efb and 197f075.

⛔ Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cdb37c0b-cafa-4439-9e32-0d51a6ebeb99
📥 Commits

Reviewing files that changed from the base of the PR and between 754dcad and 93a8ce7.

⛔ Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing: 1
  • playgrounds/nuxt5/package.json

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

📝 Walkthrough

The cached icon handler configuration now allows the icons query parameter. The change also includes a TypeScript suppression for the Nitro 3 API.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~3 minutes

Merge Risk: ⚪ Minimal · up to 93a8c

No concrete merge-blocking risk was identified.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: allowing the icons query in the cached handler for Nitro 3.
Description check Passed The description explains the Nitro 3 query-parameter behavior and the allowQuery: ["icons"] fix, which directly matches the changeset.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches: 💡 1
⚔️ Resolve merge conflicts: 💡
  • Resolve merge conflict in branch fix/cache-query-key
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

ampagent and others added 3 commits October 23, 2026 12:41
Covers the query stripping added in newer Nitro 3 cached handlers, so the
playground test fails without allowQuery: ['icons'].

Amp-Thread-ID: https://ampcode.com/threads/T-01a16868-4c42-7089-8b17-192269d34ec3
Co-authored-by: Sebastien Chopin <atinux@vercel.com>
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednitro@​3.0.260610-beta ⏵ 3.0.260903-beta98 +11008286 -4100
Updated@​vitejs/​plugin-vue@​6.0.8 ⏵ 6.0.10100 +1100100 +191 +2100
Updatedvue@​3.5.41 ⏵ 3.5.449910091 +197 +2100
Updatednuxt-nightly@​5.0.0-29745766.482f3357 ⏵ 5.0.0-2610221052-8c5243293 +12100100 +196 -1100

View full report

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.

3 participants