# Changelog

All notable changes to this project 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
- Dual module support (ESM + CommonJS) for better tree-shaking
- TypeDoc for API documentation generation (`npm run docs`)
- Bundle size monitoring with size-limit (`npm run size`)
- GitHub Actions CI/CD workflows for automated testing and publishing
- `.npmignore` to reduce package size
- Migration guide (MIGRATION.md)
- Enhanced TypeScript strictness (`noUnusedLocals`, `noUnusedParameters`, `noImplicitReturns`, `noFallthroughCasesInSwitch`)
- Added `subtitle` support to Catalog, Container, Product, and Unit models

### Changed
- Updated all dev dependencies to latest versions (eslint, @types/node, typescript-eslint, ts-jest)
- Package now exports both ESM (1.97 KB) and CommonJS (6.23 KB) builds
- Improved package.json exports field for better module resolution
- Documentation aligned with current active model exports after temporary model removals (Order, GiftCard, Till, Listing families)
- Quick reference and AI context now emphasize Unit `statuses` and shared `images` arrays using `Image` objects (`value`, `blurhash`)

### Fixed
- Package size reduced by excluding unnecessary files from npm distribution

## [0.3.0] - 2025-10-23

### Added
- Comprehensive README.md with installation, usage examples, and API documentation
- JSDoc comments to all models and utility functions
- Example files demonstrating common use cases:
  - Product management
  - Order processing
  - Inventory management
  - Gift card management
  - Custom configuration
- CHANGELOG.md for tracking version history
- Enhanced type exports for better IDE support

### Changed
- Improved documentation across the entire codebase
- Better type hints and IntelliSense support

## [0.2.0] - Earlier

### Added
- Core models: Product, Order, User, Catalog, etc.
- Utility functions for UUID, date, color, and alphanumeric generation
- Configuration system for custom UUID generation
- TypeScript support with full type definitions

## [0.1.0] - Initial

### Added
- Initial release of CashierFu-Kit
- Basic model structure
- Essential utility functions
