Paul Krill
Editor at Large

Vue framework speeds template parsing, improves reactivity

news
Jan 9, 20241 min

Upgraded JavaScript framework features a rewritten template parser that is ‘2x faster’ and a refactored reactivity system that increases effect triggering accuracy.

shutterstock 1559577011 JavaScript web application lines of code including Vue routes
Credit: Yurich / Shutterstock

Vue 3.4 has been released. The upgrade to the JavaScript front-end framework features a faster, rewritten template parser and a refactored reactivity system.

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.

Vue is billed as a progressive, incrementally adaptable JavaScript framework for building user interfaces on the web. Vue 2.0, released in 2016, reached end of life on December 31, 2023.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author