Announcing Vue 3.4

2023年12月28日

AI 摘要 AI 生成,可能有误

Vue 3.4 'Slam Dunk' 现已发布,其中包含完全重写的模板解析器,速度提升了一倍,同时重构了响应式系统,使副作用的触发更加精准和高效。此次发布还将 defineModel 宏提升为稳定版本,引入了 v-bind 的同名简写语法,并改进了水合(hydration)不匹配的错误信息。此外,还移除了若干已废弃的特性,包括全局 JSX 命名空间和实验性的响应式转换(Reactivity Transform)。

Today we're excited to announce the release of Vue 3.4 "🏀 Slam Dunk"!

This release includes some substantial internal improvements - most notably a rewritten template parser that is 2x faster, and a refactored reactivity system that makes effect triggering more accurate and efficient. It also packs a number of quality-of-life API improvements, including the stabilization of defineModel and a new same-name shorthand when binding props.

This post provides an overview of the highlighted features in 3.4. For the full list of changes, please consult the full changelog on GitHub.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 The Vue Point

Announcing Vue 3.5

AI 摘要Vue 3.5, codenamed "Tengen Toppa Gurren Lagann," has been released as a minor update with no breaking changes. Key highlights include major reactivity system optimizations (up to 56% memory reduction and faster tracking for large reactive arrays), stabilization of Reactive Props Destructure, and SSR improvements such as lazy hydration, useId(), and data-allow-mismatch. The release also adds new features including useTemplateRef(), Deferred Teleport, onWatcherCleanup(), and various custom element enhancements.

Announcing VitePress 1.0

AI 摘要VitePress 1.0 has been released—a static site generator built on Vite and Vue that serves as the modern successor to VuePress, converting Markdown content into themed static HTML pages. It is well-suited for technical documentation (powering docs for Vite, Rollup, Pinia, and the official Vue.js docs) as well as fully customizable blogs, portfolios, and marketing sites. The tool offers strong performance by serving pre-rendered HTML for fast initial loads and optimal SEO, then switching to a single-page application model for near-instant subsequent navigation and interactivity.

Vue 2 is Approaching End Of Life

AI 摘要Vue 2 will reach End of Life on December 31, 2023, after which it will no longer receive new features, updates, or fixes, though it will remain available through existing distribution channels. The Vue team is shifting its full focus to Vue 3, which offers better performance, enhanced TypeScript support, a Proxy-based reactivity system, and new built-in components. Users still on Vue 2 can update to the final release (2.7.16), purchase extended support through HeroDevs' Never-Ending Support offering, or communicate their post-EOL security plans to stakeholders.

Announcing Vue 3.3

AI 摘要Vue 3.3 'Rurouni Kenshin' is a release focused on developer experience improvements, particularly for using SFC

Volar: a New Beginning

AI 摘要Volar, the official Vue.js VSCode extension, has extracted its framework-agnostic components into a new standalone project called Volar.js, an embedded language tooling framework that supports not only Vue but also Astro, Svelte, Angular, and regular single-language LSP servers. The original Volar extension and vue-tsc code have moved to the vuejs/language-tools repo, and a new Volar.js Core Team has been formed, with StackBlitz supporting full-time development. Future plans include Monaco support, better support for IDEs beyond VSCode, a Bun-based language server, a monoserver architecture, a Rules API for linting, and a Scripts API for CI usage.