# 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).

## [1.0.0] - 2026-01-28

### Added
- 🎉 Initial release of License Manager SDK
- ✅ RSA 2048-bit signature support for license validation
- ✅ 8 predefined feature flags (aiAssistant, advancedAnalytics, etc.)
- ✅ Usage limits (users, requests, storage, concurrent sessions, etc.)
- ✅ Binding support (domain, IP, machine ID, MAC address)
- ✅ Grace period support for license expiration
- ✅ CLI tools for key generation and license management
- ✅ TypeScript type definitions
- ✅ Comprehensive documentation (Chinese and English)
- ✅ Express middleware integration
- ✅ Batch license generation
- ✅ Custom expiration date support

### Features
- **License Generation**: Create licenses with flexible configuration
- **License Validation**: Verify licenses with strict mode and grace period
- **Feature Flags**: Granular control over enabled features
- **Usage Limits**: Enforce restrictions on resource usage
- **Binding Validation**: Domain, IP, and hardware binding
- **CLI Tools**:
  - `license-generate-key`: Generate RSA key pairs
  - `license-generate`: Generate licenses from configuration
  - `license-validate`: Validate license files

### Documentation
- README.md with quick start guide
- 使用指南.md (Chinese user guide)
- API文档.md (API reference)
- Complete TypeScript type definitions

### Package Information
- **Package**: @flowerjunjie/license-manager
- **Version**: 1.0.0
- **License**: MIT
- **Dependencies**: node-rsa@^1.1.1
- **Node Version**: >=16.0.0

## [Unreleased]

### Planned
- Unit tests for core modules
- E2E tests for CLI tools
- Web dashboard for license management
- Plugin system for custom validation rules
- License template system
- Multi-language support

---

## Version History

| Version | Date | Description |
|---------|------|-------------|
| 1.0.0 | 2026-01-28 | Initial release |

## Upgrade Guide

### From 1.0.0 to Future Versions

Check this section for breaking changes and upgrade instructions when new versions are released.

---

## Links

- **NPM**: https://www.npmjs.com/package/@flowerjunjie/license-manager
- **GitHub**: https://github.com/flowerjunjie/license-manager
- **Issues**: https://github.com/flowerjunjie/license-manager/issues
