Skip to content

v0.5.2

Choose a tag to compare

@AmiteK23 AmiteK23 released this 09 Feb 20:57
· 128 commits to main since this release
e95a7ed

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 nextjs field and NextJSMetadata definition to schema
    • Added missing style metadata fields (antd, chakraUI, shadcnUI, radixUI) to StyleSources definition
    • These fields were already being generated in context files but were missing from the schema, causing IDE validation errors
  • Schema validation - Schema validation now correctly validates all generated fields, eliminating false validation errors

Documentation

  • Fixed missing nextjs field documentation in schema reference
  • Fixed missing BundleNode.code field 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

  • #74 – Standardize styleExtractor tests with test-helpers
  • #75 – Standardize test helpers across extractor tests
  • #76 – JSON schema completeness and validation errors
  • #77 – Test flakiness and documentation consistency

👉 Full changelog