Skip to content

v0.0.13: Reactive Side-Effects (effect()) & Lifecycle Hooks

Choose a tag to compare

@hrutavmodha hrutavmodha released this 29 Aug 09:47
· 133 commits to master since this release

What's Changed

  • feat(reactivity): First-class reactive side-effects (effect(() => { ... })) with compile-time dependency analysis, microtask batch execution, and automatic DOM synchronization.
  • feat(lifecycle): Full cleanup function lifecycle support (return () => void), executing prior to effect re-runs and during component unmounting.
  • feat(lifecycle): Programmatic onMount() and onUnmount() lifecycle hook support integrated into the client VM.
  • feat(compiler): Static extraction of effect dependencies in driftjs-compiler with emission of CompiledModule.effects: EffectBinding[].
  • feat(ssr): Safe SSR parity in driftjs-ssr ensuring zero-overhead server renders without executing client side-effects.
  • feat(vite-plugin): Build-time ESM serialization of effect bindings in driftjs-vite-plugin.
  • test: Added comprehensive unit and integration test suites for synchronous/async effects, cleanup lifecycles, and multi-effect components (385 tests passing).
  • docs: Benchmark matrix results across 6 frontend frameworks and updated roadmap in docs/RESULTS.md and docs/TODO.md.