Skip to content

feat(nuxt): add ShallowRef type to vue preset - #36266

Merged
danielroe merged 1 commit into
mainfrom
feat/shallowref-vue-preset
Sep 4, 2026
Merged

danielroe merged 1 commit into
mainfrom
feat/shallowref-vue-preset

Conversation

@DamianGlowala

Copy link
Copy Markdown
Member

📚 Description

Adds ShallowRef type to the vue preset, so that it is available without having to import it explicitly.

@coldtea-pr-lens

coldtea-pr-lens Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

◈ PR Lens

🟢 +0 new · 🟠 ~1 changed · 🔴 -0 removed · 0 flows · 1 file · commit 908346f


Architecture

Architecture diagram for nuxt/nuxt at 908346f

1 component touched across 2 lanes.

Open full size


Data flow

No data-flow sequence changed in this PR.


Drill down
Framework Subsystems — 1 component
🟡 CHANGED Auto-Imports Engine

Defines unimport presets and transformations for Vue and Nuxt composables and types, now including ShallowRef.


View

  • Architecture lens
  • Data flow lens
  • Expand every detail
  • Show unchanged neighbours

Tip

Draw a diff before it is even a pull request: npx @coldtea/pr-lens-cli analyze --base origin/main reads the diff with your own model key, and npx @coldtea/pr-lens-cli render .pr-lens/graph.json draws the same lenses on your machine.

🪧 More tips
  • Run PR Lens on your own machine: npx skills add coldteadotai/pr-lens installs the agent skill. Then tell your coding agent: "Diagram the change you just made with PR Lens and attach it to the pull request."
  • The boxes under View are live. Tick Architecture lens or Data flow lens to choose which diagrams appear, or Expand every detail to open every drill-down at once. The comment redraws in place a few seconds later.
  • Show unchanged neighbours lists the components this change did not touch alongside the ones it did, so the drill-down shows what the changed code sits next to.
  • GitHub will not let you zoom an image in a comment. The link under each diagram opens it full size on a page of its own, where you can.
  • The CLI's render picks up .github/pr-lens.yml automatically and applies your corrections (renames, exclusions, lane pins) at draw time.
  • Would you rather run it from CI on a key of your own? Add .github/workflows/pr-lens.yml with coldteadotai/pr-lens/packages/action@v0 and a model key in your repository secrets, say GEMINI_API_KEY. The Action asks Gemini by default, or OpenAI and any endpoint speaking /chat/completions through its provider input.
  • PR Lens is free for open source. A star on the repository is what keeps it going.
  • Push a new commit and the whole comment re-renders for the new head. An older run never overwrites a newer one, so a slow render cannot put a stale diagram back.
  • The diagrams follow your GitHub theme, so dark mode gets the dark render and light mode the light one, and the moving dots show this pull request's data in motion.

◈ Rendered by PR Lens · crafted with ❤️ by the Coldtea team · Come say hi on Discord

@github-actions github-actions Bot added 5.x ✨ enhancement New feature or improvement to existing functionality labels Sep 4, 2026
@pkg-pr-new

pkg-pr-new Bot commented Sep 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

@nuxt/kit

pnpm add https://pkg.pr.new/nuxt/nuxt/@nuxt/kit@36266
npm i https://pkg.pr.new/nuxt/nuxt/@nuxt/kit@36266
yarn add https://pkg.pr.new/nuxt/nuxt/@nuxt/kit@36266.tgz

@nuxt/nitro-server

pnpm add https://pkg.pr.new/nuxt/nuxt/@nuxt/nitro-server@36266
npm i https://pkg.pr.new/nuxt/nuxt/@nuxt/nitro-server@36266
yarn add https://pkg.pr.new/nuxt/nuxt/@nuxt/nitro-server@36266.tgz

nuxt

pnpm add https://pkg.pr.new/nuxt/nuxt@36266
npm i https://pkg.pr.new/nuxt/nuxt@36266
yarn add https://pkg.pr.new/nuxt/nuxt@36266.tgz

@nuxt/rspack-builder

pnpm add https://pkg.pr.new/nuxt/nuxt/@nuxt/rspack-builder@36266
npm i https://pkg.pr.new/nuxt/nuxt/@nuxt/rspack-builder@36266
yarn add https://pkg.pr.new/nuxt/nuxt/@nuxt/rspack-builder@36266.tgz

@nuxt/schema

pnpm add https://pkg.pr.new/nuxt/nuxt/@nuxt/schema@36266
npm i https://pkg.pr.new/nuxt/nuxt/@nuxt/schema@36266
yarn add https://pkg.pr.new/nuxt/nuxt/@nuxt/schema@36266.tgz

@nuxt/vite-builder

pnpm add https://pkg.pr.new/nuxt/nuxt/@nuxt/vite-builder@36266
npm i https://pkg.pr.new/nuxt/nuxt/@nuxt/vite-builder@36266
yarn add https://pkg.pr.new/nuxt/nuxt/@nuxt/vite-builder@36266.tgz

@nuxt/vite-server

pnpm add https://pkg.pr.new/nuxt/nuxt/@nuxt/vite-server@36266
npm i https://pkg.pr.new/nuxt/nuxt/@nuxt/vite-server@36266
yarn add https://pkg.pr.new/nuxt/nuxt/@nuxt/vite-server@36266.tgz

@nuxt/webpack-builder

pnpm add https://pkg.pr.new/nuxt/nuxt/@nuxt/webpack-builder@36266
npm i https://pkg.pr.new/nuxt/nuxt/@nuxt/webpack-builder@36266
yarn add https://pkg.pr.new/nuxt/nuxt/@nuxt/webpack-builder@36266.tgz

commit: 908346f

@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: cc7cb0c9-c55c-4a80-9c5b-650cc1df58c1

📥 Commits

Reviewing files that changed from the base of the PR and between 2cbde35 and 908346f.

📒 Files selected for processing (1)
  • packages/nuxt/src/imports/presets.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


Walkthrough

The Vue type auto-import preset now includes ShallowRef. This makes the Vue ShallowRef type available through auto-imports.

Merge Risk: ⚪ Minimal · up to 90834

ShallowRef is now available through Vue type auto-imports without changing runtime behavior. No current merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the main change: adding the ShallowRef type to the Nuxt Vue preset.
Description check ✅ Passed The description directly explains that ShallowRef becomes available without an explicit import, which matches the changeset and objectives.
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.
✨ 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 feat/shallowref-vue-preset

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.

@codspeed

codspeed Bot commented Sep 4, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 21 untouched benchmarks
⏩ 3 skipped benchmarks1


Comparing feat/shallowref-vue-preset (908346f) with main (2cbde35)

Open in CodSpeed

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@danielroe
danielroe added this pull request to the merge queue Sep 4, 2026
Merged via the queue into main with commit 3d3bbba Sep 4, 2026
39 checks passed
@danielroe
danielroe deleted the feat/shallowref-vue-preset branch September 4, 2026 19:35
@github-actions github-actions Bot mentioned this pull request Sep 3, 2026
@github-actions github-actions Bot mentioned this pull request Sep 5, 2026
@github-actions github-actions Bot mentioned this pull request Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5.x ✨ enhancement New feature or improvement to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants