# Changelog

All notable changes to DSS (Design System Server) will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added
- Production-ready project structure
- Comprehensive documentation suite
- Testing infrastructure

## [0.5.2] - 2025-12-05

### Added
- Architecture review documentation
- Scalability analysis
- Security architecture recommendations
- 3 Architecture Decision Records (ADRs)

### Changed
- Improved deployment architecture guidance

## [0.5.1] - 2025-12-05

### Added
- Comprehensive code quality analysis
- Quality metrics documentation
- Technical debt tracking
- Maintenance recommendations

### Documentation
- CODE_QUALITY.md with detailed metrics
- Security best practices guide
- Code review checklist

## [0.5.0] - 2025-12-05

### Added
- Pytest test suite with 11 tests
- Test fixtures and configuration
- pytest.ini configuration
- Performance optimization with caching
- In-memory cache for project scans (60s TTL)
- PERFORMANCE.md documentation

### Fixed
- Token merge test (MergeResult.collection.tokens)
- Storybook scanner test (dict access)

### Documentation
- Testing guide in tests/README.md
- Performance benchmarks and best practices

## [0.3.1] - 2025-12-05

### Fixed
- Eliminated all bare except statements
- Added specific exception handling for:
  - JSON parsing errors
  - Network errors (httpx)
  - Socket errors
  - File I/O errors

### Improved
- Error messages now more descriptive
- Better debugging with specific exceptions

## [0.3.0] - 2025-12-05

### Added
- QUICKSTART.md with comprehensive usage guide
- 3 runnable code examples:
  - 01_basic_ingestion.py
  - 02_token_merge.py
  - 03_project_analysis.py
- examples/README.md

### Removed
- Archived outdated documentation/ folder

## [0.2.1] - 2025-12-05

### Added
- Core validation test suite (test_quick.py)
- test_tailwind.config.js fixture

### Fixed
- Token merge: Use result.collection.tokens
- Storybook scanner: Fixed dict key access
- Documented Tailwind parser known issue

### Testing
- 8/8 tests passing (100%)
- 1 known non-blocking issue documented

## [0.2.0] - 2025-12-05

### Added
- README.md with project overview
- PROJECT_MEMORY.md with architecture map
- docs/ARCHITECTURE.md with system design

### Removed
- 8 empty directories
- 5 redundant planning documents (archived)

### Documentation
- Complete module inventory
- API surface mapping
- Implementation status tracking

## [0.1.0] - 2025-12-04

### Added
- Initial MVP release
- 37 REST API endpoints
- MCP server with 10 tools
- TypeScript CLI
- Admin UI
- Token ingestion (CSS, SCSS, JSON, Tailwind, Figma)
- Token merging with 6 strategies
- Project analysis tools
- Storybook integration
- React component analysis
- Quick win detection
- SQLite storage
- Activity logging

### Core Features
- Multi-source token extraction
- Conflict resolution strategies
- Framework detection
- Component scanning
- Story generation
- Theme generation

## Types of Changes

- `Added` for new features
- `Changed` for changes in existing functionality
- `Deprecated` for soon-to-be removed features
- `Removed` for now removed features
- `Fixed` for any bug fixes
- `Security` for vulnerability fixes

## Links

- [Keep a Changelog](https://keepachangelog.com/)
- [Semantic Versioning](https://semver.org/)
- [DSS GitHub Repository](https://github.com/your-org/dss)
