10
What to expect in the coming major release of Vue.js 3.0.?

What to Expect in the Coming Major Release of Vue.js 3.0.?

Embed Size (px)

DESCRIPTION

To make contributing to Vue.js easier, Vue.js 3.0 is being re-written from the ground up for a cleaner and more maintainable architecture. To do this, the developers are breaking some internal functionalities into individual packages to isolate the scope of complexity. For example, the observer module will be converted to its own package, with its own public API and tests. Check out the Presentation for more details.

Citation preview

Page 1: What to Expect in the Coming Major Release of Vue.js 3.0.?

What to expect in the

coming major release of

Vue.js 3.0.?

Page 2: What to Expect in the Coming Major Release of Vue.js 3.0.?

High-level API changes

● Template syntax will not see much changes,

except some tweaks in the scoped slots syntax.

● Vue.js 3.0 will come with native support for

class-based components.

Page 3: What to Expect in the Coming Major Release of Vue.js 3.0.?

High-level API changes

● The Vue.js 3.x codebase will be written in

TypeScript, providing improved support for

TypeScript.

Page 4: What to Expect in the Coming Major Release of Vue.js 3.0.?

Cleaner and more maintainable source

code architecture

To make contributing to Vue.js easier, Vue.js 3.0 is being re-written from the ground up for a cleaner and more maintainable architecture. To do this, the developers are breaking some internal functionalities into individual packages to isolate the scope of complexity. For example, the observer module will be converted to its own package, with its own public API and tests.

Page 5: What to Expect in the Coming Major Release of Vue.js 3.0.?

Proxy-based observation mechanism

Vue.js 3.0 will come with a Proxy-based observer implementation that provides reactivity tracking with full language coverage. This aims to eliminate a number of limitations of the current implementation of Vue.js 2, which is based on Object.defineProperty:

Page 6: What to Expect in the Coming Major Release of Vue.js 3.0.?

Proxy-based observation mechanism

● Detection of property addition or deletion

● Detection of Array index mutation or .length mutation

● Support for Map, Set, WeakMap and WeakSet

Page 7: What to Expect in the Coming Major Release of Vue.js 3.0.?

Smaller runtime

The new codebase is designed to be tree-shaking friendly. The built-in components and directive runtime helpers will be imported on-demand and are tree-shakable.

Page 8: What to Expect in the Coming Major Release of Vue.js 3.0.?

Improved performance

On initial benchmarks, the developers are observing up to 100% performance improvement across the board. Vue.js 3.0 will reduce the time spent in JavaScript when your app boots up.

Page 9: What to Expect in the Coming Major Release of Vue.js 3.0.?

Custom Renderer API

Using this API you will be able to create custom renderers. With this API, it will be easier for the render-to-native projects like Weex and NativeScript Vue to stay up-to-date with upstream changes. This API will also make the creation of custom renderers for various other purposes trivially easier.

Page 10: What to Expect in the Coming Major Release of Vue.js 3.0.?

THANK YOU!!