Skip to content

v0.4.0

Compare
Choose a tag to compare
@Nefsen402 Nefsen402 released this 30 Mar 22:28
· 452 commits to main since this release

This release was focused on performance and in some workloads performance can be increased 150-200%!

The major performance improvement comes from handling non reactive state separately from reactive state. We don't need to follow all the reactive code paths with high overhead for some static content. Unfortunately, the bundle size is higher, but well worth it.

Breaking changes:

  • the children prop is required to be a fixed javascript array. It can no longer be a generic mountable object. This is to allow the newly introduced performance optimizations to walk the tree statically.

Features:

  • Introduced new staticMount babel transpiler pass that will examine the dom for any static values and will pull those out as vanilla js to reduce overhead introduced by destam-dom.
  • dom.js has everything it needs for hydration/ssr to be implemented.