Repository navigation
Releases
Releases · driftjs-org/driftjs
v0.0.16
Full Changelog: v0.0.15...v0.0.16
v0.0.15: Compiler Reactive Bindings & Scope Optimization
What's Changed
- Compiler Reactive Bindings (BUG-117): Registered
@forloop alias variables (item,index, and destructured pattern identifiers) into sub-modulereactiveBindingsand expressiondeps, enabling precise dynamic instruction execution. - Streamlined Identifier Codegen (BUG-118): Replaced 4-tier nested ternary fallback chains in
astToJSidentifier code generation with direct, CSP-safegetScopeValue(scope, name)lookups, significantly reducing constant pool bloat and bundle size. - Runtime Optimization: Removed the ad-hoc
getDynamicPcs()instruction set scanner and its cache fromDriftClientVM, executing dynamic row updates directly through compiler-emittedreactiveBindings. - 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
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()andonUnmount()lifecycle hook support integrated into the client VM. - feat(compiler): Static extraction of effect dependencies in
driftjs-compilerwith emission ofCompiledModule.effects: EffectBinding[]. - feat(ssr): Safe SSR parity in
driftjs-ssrensuring 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.mdanddocs/TODO.md.
v0.0.8: Component Children ({children}) & Computed State (derive)
What's Changed
- feat(component): Support passing custom component children (
{children}) with direct, independent<script>variable access (separate fromprops). - 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
inScopeChainandgetScopeValue. - 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
What's Changed
- fix(vm): Resolve
CREATE_ELEMENTopcode collision with constant pool objects on regular HTML elements inDriftClientVMandDriftServerVM. - 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
What's Changed
- docs: add social media posts for DriftJS by @google-labs-jules[bot] in #1
- docs: update social media posts with deep technical details by @hrutavmodha in #2
- route files by @veer09-glitch in #4
New Contributors
- @google-labs-jules[bot] made their first contribution in #1
- @hrutavmodha made their first contribution in #2
- @veer09-glitch made their first contribution in #4
Full Changelog: https://github.com/hrutavmodha/driftjs/commits/v0.0.6