vuejs

core

๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

by vuejs

TypeScript

TypeScript97%
JavaScript1.5%
HTML1%
Vue0.4%
CSS0%

Commit activity

Last 12 weeks ยท 133 commits

Full graph โ†’

Community health

3 of 6 standards met

Community profile โ†’
62
โœ“READMEโœ“Licenseโœ“Contributingโ—‹Code of Conductโ—‹Issue Templateโ—‹PR Template

Recent PRs & issues

Active ยท Last activity 4h ago
See all on GitHub โ†’
pengzh1

Problem throws when it meets an object without a prototype, which crashes the render of any component that interpolates such a value. This is the same blast radius as the case fixed in #16250 / #16251, hitting two more spots in the shared serializer: 1. Map keys โ€” the replacer builds entry keys with , which triggers ToPrimitive on the key. A prototype-less key (e.g. an identity object from a library that uses ) provides no / / and throws. 2. Nested native objects with internal slots โ€” the replacer stringifies non-plain objects with . A built-in whose prototype has been stripped (, same for / ) keeps its internal slots (so it is not treated as a plain object) but loses all conversion methods, so throws. User-visible paths: / interpolation throws during render and takes the whole tree down, does the same, and on SSR turns it into a 500. Repro Solution Follows the null-prototype hardening from #16251; continues the arc of #4335 / #9727. A guard (object is prototype-less and exposes none of / / ) falls back to , mirroring in : Map keys that cannot be coerced now render as , exactly like regular object keys. Nested prototype-less built-ins render as their type string, e.g. , , . All values that previously produced output are untouched โ€” the fallback only applies where the previous behavior was a . Tests : new "objects without a prototype" block covering Map keys (bare / with properties / nested Map), prototype-less (bare / in array / in Set / as Map value), prototype-less and . : a component render equivalent to a compiled interpolation with a prototype-less Map key no longer crashes and serializes the expected output. Summary by CodeRabbit Bug Fixes** Improved text formatting for Maps with object keys, including objects without prototypes, so they render without errors and display readable values. Corrected display of built-in values such as dates, regular expressions, and errors when their prototypes are removed. These values now retain recognizable type labels when shown directly or within arrays, Sets, and Maps.

pengzh1 ยท 1h ago
DaZuiZui

fix #16262 Summary in `useCssVarsv-ifv-forTeleportSuspenseKeepAlivessrWithSlotCssVarsssrRenderSlotInnerstyle_cssVarspassedstyle="--7ba5bd90-color:red;"`. Summary by CodeRabbit Bug Fixes** CSS variables defined by a component now appear on content rendered into its root slots, including provided slot content and fallback content. Server-rendered slot content retains existing inline styles while incorporating CSS variables, including when rendered through fragments, transitions, or teleports. CSS variables are applied to slot-content roots rather than nested descendants. Hydration preserves slot elements and their CSS variables without reporting a style mismatch.

DaZuiZui ยท 2h ago
linzch3

close #16133 When a element is toggled before the first leave's runs, both leave callbacks see (the second leave set it again). If the element has no CSS transition (, or none at all), the first, already cancelled leave resolves synchronously and calls , which clears . The second leave's frame then thinks it was cancelled and returns, so is never applied and never fires. Elements with a real duration aren't affected because drops stale ends via . This tags each leave with an id and has the frame callback bail out when a newer leave has started on the element, mirroring the check. Added an e2e case in the v-show block: it fails on main (element stays visible) and passes with the change. AI-assisted; I reviewed the change and the test. Summary by CodeRabbit Bug Fixes** Fixed an issue where rapidly toggling a element during a transition could let an outdated leave operation interfere with the latest visibility state. The element now finishes in the correct hidden state, preserves its original class, and triggers the leave-completion callback only once.

linzch3 ยท 9h ago
Structured data for AI agents

Repository: vuejs/core. Description: ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web. Stars: 55014, Forks: 9337. Primary language: TypeScript. Languages: TypeScript (97%), JavaScript (1.5%), HTML (1%), Vue (0.4%), CSS (0%). License: MIT. Homepage: https://vuejs.org/ Latest release: v3.5.45 (1w ago). Open PRs: 100, open issues: 865. Last activity: 4h ago. Community health: 62%. Top contributors: yyx990803, dependabot-preview[bot], renovate[bot], edison1105, sxzz, HcySunYang, pikax, dependabot[bot], underfin, Alfred-Skyblue and others.