|
1 | 1 | # @etherisc/ui-kit |
2 | 2 |
|
| 3 | +## 0.4.1 |
| 4 | + |
| 5 | +### Patch Changes |
| 6 | + |
| 7 | +- # Fix Release v0.4.1 - TypeScript Declarations & API Standardization |
| 8 | + |
| 9 | + ## 🔧 Critical Fixes |
| 10 | + |
| 11 | + ### TypeScript Declaration Issues Resolved |
| 12 | + |
| 13 | + - **Fixed bundle externalization**: All major dependencies (@radix-ui/_, @codemirror/_, utilities) now properly externalized |
| 14 | + - **Improved module resolution**: Changed from "bundler" to "node" for better consumer compatibility |
| 15 | + - **Reduced bundle sizes dramatically**: |
| 16 | + - ES Module: 335KB (24% reduction) |
| 17 | + - CommonJS: 356KB (63% reduction) |
| 18 | + - **Enhanced TypeScript configuration**: Added esModuleInterop and allowSyntheticDefaultImports |
| 19 | + - **Clean type definitions**: Properly externalized dependencies for better TypeScript IntelliSense |
| 20 | + |
| 21 | + ### API Consistency Improvements |
| 22 | + |
| 23 | + - **Standardized Button component**: Now supports both `variant` (recommended) and `intent` (deprecated) props |
| 24 | + - **Backward compatibility**: All existing `intent` usage continues to work unchanged |
| 25 | + - **Developer experience**: Clear deprecation warnings guide migration to `variant` prop |
| 26 | + - **Industry alignment**: `variant` prop aligns with Radix UI, Shadcn/ui standards |
| 27 | + |
| 28 | + ## 🚀 Benefits for Consumers |
| 29 | + |
| 30 | + - ✅ TypeScript compilation now works without errors |
| 31 | + - ✅ Faster npm install (smaller bundles) |
| 32 | + - ✅ Better tree-shaking and performance |
| 33 | + - ✅ Consistent API across all components |
| 34 | + - ✅ Zero breaking changes |
| 35 | + |
| 36 | + ## 📋 Migration Guide |
| 37 | + |
| 38 | + **Button Component (Optional Migration)**: |
| 39 | + |
| 40 | + ```tsx |
| 41 | + // Before (still works, but deprecated) |
| 42 | + <Button intent="primary">Submit</Button> |
| 43 | + |
| 44 | + // After (recommended) |
| 45 | + <Button variant="primary">Submit</Button> |
| 46 | + ``` |
| 47 | + |
| 48 | + All other components continue to work exactly as before. This release focuses on fixing critical infrastructure issues while maintaining 100% backward compatibility. |
| 49 | + |
3 | 50 | ## 0.4.0 |
4 | 51 |
|
5 | 52 | ### Minor Changes |
|
0 commit comments