v0.5.2
This release fixes JSON schema completeness issues, standardizes test infrastructure, and improves documentation consistency.
🐞 Fixed
JSON Schema Completeness
- Missing schema fields - Fixed validation errors caused by missing fields in JSON schema:
- Added
nextjsfield andNextJSMetadatadefinition to schema - Added missing style metadata fields (
antd,chakraUI,shadcnUI,radixUI) toStyleSourcesdefinition - These fields were already being generated in context files but were missing from the schema, causing IDE validation errors
- Added
- Schema validation - Schema validation now correctly validates all generated fields, eliminating false validation errors
Documentation
- Fixed missing
nextjsfield documentation in schema reference - Fixed missing
BundleNode.codefield documentation - Improved documentation consistency across schema and usage docs
Test Infrastructure
- Fixed test flakiness in AST parser tests
- Improved test reliability and consistency
🔧 Refactored
Test Infrastructure Standardization
- Centralized test helpers - Created standardized test helper utilities (
test-helpers.ts) to eliminate duplicate code across all test suites - Style extractor tests - Refactored all style extractor tests (Ant Design, Chakra UI, Material UI, Tailwind, etc.) to use centralized helpers
- AST parser tests - Standardized all AST parser and extractor tests (component, prop, state, event, backend, etc.) with shared test utilities
- Improved maintainability - Reduced code duplication and improved consistency across 40+ test files
⚙️ Changed
- Schema validation - Now correctly validates all generated fields
- Test infrastructure - Centralized test helpers eliminate duplicate code and improve maintainability
🧪 Improved
- Strengthened test infrastructure with standardized helpers
- Improved test reliability and reduced flakiness
- Enhanced documentation consistency across all docs
✅ Non-Breaking Release
- Schema fixes are additive - no breaking changes
- Test refactoring is internal - no API changes
- Documentation improvements are non-breaking
🔗 Related PRs