Announced December 28, 2023, Vue 3.4 promises “substantial internal improvements.” Most notable is the rewritten template parser, which uses a state-machine tokenizer in htmlparser2 that iterates through the entire template string just once. The result is a parser twice as fast for templates of all sizes, Vue creator Evan You wrote in the blog post announcing the release. Along with the parser, SFC build performance has been improved.
Also featured in Vue 3.4 is a substantial refactor of the reactivity system, with a goal of re-compute efficiency of computed properties. The release also stabilizes
defineModel, a new
<script setup> macro intended to simplify the implementation of components that support the
v-model. Other features in Vue.js 3.4 include improved hydration mismatch error messages, the addition of a production error reference page to Vue documentation, and the removal of deprecated features such as the global
JSX namespace and Reactivity Transform.
Copyright © 2024 IDG Communications, Inc.