Skip to content

chore(deps): update @vue/repl to version 4.6.0 #13470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2025

Conversation

edison1105
Copy link
Member

@edison1105 edison1105 commented Jun 13, 2025

Summary by CodeRabbit

  • New Features

    • Added options to display SSR output and open source maps in the REPL interface.
  • Chores

    • Updated a dependency to improve compatibility and access to new features.

Copy link

coderabbitai bot commented Jun 13, 2025

Walkthrough

The changes update the "@vue/repl" dependency version in the SFC Playground package and enhance the <Repl> component in the main application by adding two new props: showSsrOutput (tied to SSR mode) and showOpenSourceMap (always enabled).

Changes

File(s) Change Summary
.../sfc-playground/package.json Updated "@vue/repl" dependency version from "^4.5.1" to "^4.6.0".
.../sfc-playground/src/App.vue Added showSsrOutput (bound to SSR mode) and showOpenSourceMap (set to true) props to <Repl>.

Poem

A hop to version four-point-six,
The playground’s code gets new tricks!
SSR output now on display,
Source maps open, hooray hooray!
With every update, big or small,
This bunny’s ready to code for all. 🐇✨


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 101 kB 38.4 kB 34.6 kB
vue.global.prod.js 159 kB 58.5 kB 52.2 kB

Usages

Name Size Gzip Brotli
createApp (CAPI only) 46.7 kB 18.2 kB 16.7 kB
createApp 54.6 kB 21.3 kB 19.4 kB
createSSRApp 58.9 kB 23 kB 21 kB
defineCustomElement 59.6 kB 22.9 kB 20.9 kB
overall 68.7 kB 26.4 kB 24.1 kB

Copy link

pkg-pr-new bot commented Jun 13, 2025

Open in StackBlitz

@vue/compiler-core

npm i https://pkg.pr.new/@vue/compiler-core@13470

@vue/compiler-dom

npm i https://pkg.pr.new/@vue/compiler-dom@13470

@vue/compiler-sfc

npm i https://pkg.pr.new/@vue/compiler-sfc@13470

@vue/compiler-ssr

npm i https://pkg.pr.new/@vue/compiler-ssr@13470

@vue/reactivity

npm i https://pkg.pr.new/@vue/reactivity@13470

@vue/runtime-core

npm i https://pkg.pr.new/@vue/runtime-core@13470

@vue/runtime-dom

npm i https://pkg.pr.new/@vue/runtime-dom@13470

@vue/server-renderer

npm i https://pkg.pr.new/@vue/server-renderer@13470

@vue/shared

npm i https://pkg.pr.new/@vue/shared@13470

vue

npm i https://pkg.pr.new/vue@13470

@vue/compat

npm i https://pkg.pr.new/@vue/compat@13470

commit: ee129af

Copy link

@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: 0

🧹 Nitpick comments (1)
packages-private/sfc-playground/src/App.vue (1)

144-146: Props wired correctly; consider fall-back UI for unsupported versions

showSsrOutput is bound to useSSRMode (a ref<boolean>), and showOpenSourceMap is statically enabled—both match the API introduced in @vue/[email protected]. Looks good.

One optional guard: if someone opens the playground with an older cached bundle of @vue/repl the new props will be unknown and Vue will emit warnings. A simple defensive pattern:

-  <Repl
+  <Repl
+    v-bind="{
+      showSsrOutput: useSSRMode,
+      showOpenSourceMap: true
+    }"

keeps template clean and can be wrapped in a version check if needed later.

Otherwise, no issues.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a6e2032 and 4ec93ba.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (2)
  • packages-private/sfc-playground/package.json (1 hunks)
  • packages-private/sfc-playground/src/App.vue (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: Redirect rules
  • GitHub Check: Header rules
  • GitHub Check: Pages changed
  • GitHub Check: test / unit-test-windows
🔇 Additional comments (1)
packages-private/sfc-playground/package.json (1)

16-16:

❓ Verification inconclusive

Verify lock-file & compatibility with new @vue/repl props

Bumping to ^4.6.0 is required for the new showSsrOutput / showOpenSourceMap props, but please double-check:

  1. pnpm-lock.yaml / package-lock.json / yarn.lock is updated so CI doesn’t pull 4.5.x.
  2. @vue/[email protected] keeps the same peer-dependency range for vue—otherwise the local workspace:* alias might be rejected.
  3. No breaking API changes were introduced between 4.5.x → 4.6.0 that affect existing playground behaviour.

If you need a quick diff:


🏁 Script executed:

npm diff @vue/[email protected] @vue/[email protected] | less

Length of output: 871


🏁 Script executed:

#!/bin/bash
set -e

echo "🔍 Searching lockfiles for @vue/repl version..."
rg "@vue/repl@" -n pnpm-lock.yaml package-lock.json yarn.lock || echo "No @vue/repl entries found in lockfiles."

echo
echo "📦 Peer dependencies for @vue/[email protected]:"
npm view @vue/[email protected] peerDependencies --json || echo "Fetch failed for 4.5.1"

echo
echo "📦 Peer dependencies for @vue/[email protected]:"
npm view @vue/[email protected] peerDependencies --json || echo "Fetch failed for 4.6.0"

Length of output: 763


🏁 Script executed:

#!/bin/bash
set -e

echo "🔍 Peer dependency for 'vue' in @vue/[email protected]:"
npm view @vue/[email protected] peerDependencies.vue --json || echo "none"

echo
echo "🔍 Peer dependency for 'vue' in @vue/[email protected]:"
npm view @vue/[email protected] peerDependencies.vue --json || echo "none"

Length of output: 352


Lockfile & Peer-Dependency Check

  • ✅ pnpm-lock.yaml now includes @vue/[email protected] (no leftover 4.5.x entries).
  • ✅ Running npm view @vue/[email protected] peerDependencies shows the same vue range as 4.5.x (no change).
  • 🧐 Although this is a minor bump (no semver-major), please give the playground a quick smoke test to ensure showSsrOutput / showOpenSourceMap work as expected and that no unintended API changes slipped in:
npm diff --diff @vue/[email protected] --diff @vue/[email protected]

@edison1105 edison1105 merged commit 4e9e9ce into main Jun 13, 2025
16 checks passed
@edison1105 edison1105 deleted the edison/chore/updateRepl branch June 13, 2025 03:03
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