Skip to content

Releases

v0.0.16

Choose a tag to compare

@hrutavmodha hrutavmodha released this 26 Sep 06:43

Full Changelog: v0.0.15...v0.0.16

v0.0.15: Compiler Reactive Bindings & Scope Optimization

Choose a tag to compare

@hrutavmodha hrutavmodha released this 21 Sep 13:37

What's Changed

  • Compiler Reactive Bindings (BUG-117): Registered @for loop alias variables (item, index, and destructured pattern identifiers) into sub-module reactiveBindings and expression deps, enabling precise dynamic instruction execution.
  • Streamlined Identifier Codegen (BUG-118): Replaced 4-tier nested ternary fallback chains in astToJS identifier code generation with direct, CSP-safe getScopeValue(scope, name) lookups, significantly reducing constant pool bloat and bundle size.
  • Runtime Optimization: Removed the ad-hoc getDynamicPcs() instruction set scanner and its cache from DriftClientVM, executing dynamic row updates directly through compiler-emitted reactiveBindings.
  • Bundle Size Reduction: Total uncompressed bundle size decreased by 22.4% (down from 41.5 kB to 32.2 kB) and compressed gzip size decreased to 10.6 kB.
  • Benchmark & Test Suite: Aligned benchmark suite methodology and verified across 426 unit/integration tests with full strict TypeScript compilation.

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

Choose a tag to compare

@hrutavmodha hrutavmodha released this 29 Aug 09:47

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.

v0.0.8: Component Children ({children}) & Computed State (derive)

Choose a tag to compare

@hrutavmodha hrutavmodha released this 25 Aug 13:53

What's Changed

  • feat(component): Support passing custom component children ({children}) with direct, independent <script> variable access (separate from props).
  • feat(reactivity): First-class computed reactive state (derive()) with automatic dependency tracking, lazy evaluation, and cascading invalidation across DOM and SSR.
  • fix(scope): Fixed prototype traversal and global object property resolution in inScopeChain and getScopeValue.
  • build(vite): Configured unified ESM & CJS module outputs across all monorepo packages using rolldownOptions.
  • test: Added comprehensive unit and integration test suites across Compiler, Client VM DOM, and Server SSR for component children and computeds.

v0.0.7

Choose a tag to compare

@hrutavmodha hrutavmodha released this 18 Aug 04:18

What's Changed

  • fix(vm): Resolve CREATE_ELEMENT opcode collision with constant pool objects on regular HTML elements in DriftClientVM and DriftServerVM.
  • feat(core): Type-safe global Context API (createContext, provide, inject) with nested component inheritance across client & server VMs.
  • ci: Install Playwright Chromium browser dependencies in CI test runner workflows.
  • chore: Add package descriptions, keywords, and metadata across all workspace packages.

v0.0.6

Choose a tag to compare

@hrutavmodha hrutavmodha released this 16 Aug 15:43

What's Changed

New Contributors

Full Changelog: https://github.com/hrutavmodha/driftjs/commits/v0.0.6