dreamstack/compiler/ds-codegen/CHANGELOG.md

25 lines
1 KiB
Markdown
Raw Normal View History

# Changelog
All notable changes to this package will be documented in this file.
## [0.6.0] - 2026-03-10
### Changed
- Constructor match patterns now emit `s.tag === 'Ok'` with `.value` binding (was bare `=== "Ok"` with no binding)
- `emit_pattern_check()` supports all 7 Pattern variants including Tuple, IntLiteral, BoolLiteral
### Added
- **JS emitter**: 12 new tests — routes, layout constraints, timers (`every`), stream declaration, component slots, nested when/else, style bindings, exports, imports, reactive each, doc comments, minify flag
- **JS emitter**: 5 match codegen tests — constructor binding, wildcard fallback, let-match expression, int/bool literal codegen
- **Panel IR emitter**: 4 new tests — multi-signal, container children, empty view, button handler
- `emit_minified()` test helper
- Tuple destructuring → `Array.isArray` with indexed binding
- IntLiteral/BoolLiteral patterns → direct `===` comparisons
### Test Coverage
- **35 tests** (was 14 in v0.5.0)
## [0.5.0] - 2026-03-09
- Initial release with JS and Panel IR emitters