3.2.46

Latest release in branch 3.2
Released 3 years ago (February 02, 2023)

Software Vue.js
Branch 3.2
Status
End of life
End of support (OSS) May 11, 2023
First official release version 3.2.0
First official release date 4 years ago (August 09, 2021)
Release notes https://github.com/vuejs/core/releases/tag/v3.2.46
Source code https://github.com/vuejs/core/tree/v3.2.46
Documentation https://v3.vuejs.org
Migration guide https://v3-migration.vuejs.org
Vue.js 3.2 Releases View full list

What Is New in Vue.js 3.2

Category Key Updates
New Features Single-File Component (SFC) <script setup>, <style> v-bind, Web Components
Performance Faster reactivity, efficient virtual DOM, improved memory usage
Server-Side Rendering New @vue/server-renderer package, stream rendering API
Effect Scope API New effectScope and onScopeDispose APIs
Custom Elements Define custom elements via new defineCustomElement method

How does <script setup> improve component authoring?

The <script setup> syntax is a compile-time sugar that dramatically reduces boilerplate in Single-File Components. You no longer need to explicitly return variables and methods from the setup() function - everything declared at the top level is automatically available in the template.

This makes components more concise and easier to read. In practice, it feels similar to writing a normal script but with the full power of Composition API.

<script setup>
import { ref } from 'vue'
const msg = ref('Hello World!')
</script>

What are the performance enhancements in Vue 3.2?

Vue 3.2 delivers significant performance gains across multiple areas. The reactivity system has been optimized with faster dependency tracking and effect invalidation, resulting in up to 130% faster rendering in some scenarios.

Memory usage has been reduced through more efficient virtual DOM patching and component instance creation. These improvements are most noticeable in complex applications with many reactive objects and components.

How does v-bind in CSS work?

The new v-bind() function in <style> tags allows you to reference component state directly in CSS. This enables dynamic styling based on reactive data without needing to manually update class names or style attributes.

It's particularly useful for creating theme systems and dynamic UI elements. The binding is reactive, so changes to the referenced value automatically update the styles.

<script setup>
import { ref } from 'vue'
const color = ref('red')
</script>

<style scoped>
.text {
  color: v-bind(color);
}
</style>

What server-side rendering improvements were introduced?

Vue 3.2 includes a new @vue/server-renderer package that provides a streamlined API for server-side rendering. The new streaming API allows you to pipe rendered content to the response stream as it's generated, improving time-to-first-byte.

This is particularly valuable for Node.js servers where streaming responses can significantly improve perceived performance. The API also provides better error handling and integration patterns.

How does the Effect Scope API help with composition?

The new effectScope() and onScopeDispose() APIs provide better control over reactive effects. effectScope allows you to group multiple effects together and dispose them all at once, which is especially useful in programmatic scenarios and testing.

This solves the problem of manually tracking effects when creating reusable composition functions. It makes cleanup more predictable and prevents memory leaks in complex applications.

FAQ

Is <script setup> stable for production use?
Yes, <script setup> is now stable and recommended for production. It's compile-time syntax that transforms to standard Composition API code, so there's no runtime overhead or compatibility issues.

Do I need to rewrite my existing components to use new features?
No, all existing APIs remain fully supported. The new features are additive and can be adopted incrementally as you see fit for your project.

Can I use v-bind in CSS with preprocessors like SCSS?
Yes, v-bind() works with style preprocessors. The binding is resolved during Vue's compilation phase before passing to the preprocessor, so you can use it alongside other preprocessor features.

How does the Web Components support work?
Vue 3.2 introduces defineCustomElement(), which allows you to create native custom elements from Vue components. These can be used in any HTML environment, even without Vue.js loaded on the page.

Are there any breaking changes in 3.2?
Vue 3.2 maintains full backward compatibility with 3.0. The only changes that might affect existing code are rare edge cases in TypeScript type inference, which are documented in the release notes.

Releases In Branch 3.2

Version Release date
3.2.46 3 years ago
(February 02, 2023)
3.2.47 3 years ago
(February 02, 2023)
3.2.45 3 years ago
(November 11, 2022)
3.2.42 3 years ago
(November 09, 2022)
3.2.43 3 years ago
(November 09, 2022)
3.2.44 3 years ago
(November 09, 2022)
3.2.41 3 years ago
(October 14, 2022)
3.2.40 3 years ago
(September 28, 2022)
3.2.39 3 years ago
(September 08, 2022)
3.2.38 3 years ago
(August 30, 2022)
3.2.37 3 years ago
(June 06, 2022)
3.2.36 3 years ago
(May 23, 2022)
3.2.35 3 years ago
(May 20, 2022)
3.2.34 3 years ago
(May 19, 2022)
3.2.34-beta.1 3 years ago
(May 17, 2022)
3.2.33 4 years ago
(April 14, 2022)
3.2.32 4 years ago
(April 12, 2022)
3.2.31 4 years ago
(February 12, 2022)
3.2.30 4 years ago
(February 07, 2022)
3.2.29 4 years ago
(January 23, 2022)
3.2.28 4 years ago
(January 21, 2022)
3.2.27 4 years ago
(January 16, 2022)
3.2.25 4 years ago
(December 12, 2021)
3.2.26 4 years ago
(December 12, 2021)
3.2.24 4 years ago
(December 06, 2021)
3.2.23 4 years ago
(November 26, 2021)
3.2.22 4 years ago
(November 15, 2021)
3.2.21 4 years ago
(November 02, 2021)
3.2.20 4 years ago
(October 08, 2021)
3.2.19 4 years ago
(September 25, 2021)
3.2.17 4 years ago
(September 24, 2021)
3.2.18 4 years ago
(September 24, 2021)
3.2.15 4 years ago
(September 23, 2021)
3.2.16 4 years ago
(September 23, 2021)
3.2.14 4 years ago
(September 22, 2021)
3.2.13 4 years ago
(September 21, 2021)
3.2.12 4 years ago
(September 17, 2021)
3.2.11 4 years ago
(September 08, 2021)
3.2.10 4 years ago
(September 07, 2021)
3.2.9 4 years ago
(September 05, 2021)
3.2.8 4 years ago
(September 02, 2021)
3.2.7 4 years ago
(September 01, 2021)
3.2.5 4 years ago
(August 24, 2021)
3.2.6 4 years ago
(August 24, 2021)
3.2.4 4 years ago
(August 17, 2021)
3.2.3 4 years ago
(August 16, 2021)
3.2.2 4 years ago
(August 11, 2021)
3.2.0 4 years ago
(August 09, 2021)
3.2.1 4 years ago
(August 09, 2021)
3.2.0-beta.8 4 years ago
(August 07, 2021)
3.2.0-beta.7 4 years ago
(July 29, 2021)
3.2.0-beta.6 4 years ago
(July 27, 2021)
3.2.0-beta.5 4 years ago
(July 23, 2021)
3.2.0-beta.4 4 years ago
(July 21, 2021)
3.2.0-beta.3 4 years ago
(July 20, 2021)
3.2.0-beta.2 4 years ago
(July 19, 2021)
3.2.0-beta.1 4 years ago
(July 16, 2021)