Skip to content

🚀 v1.1.2 - Package Export Standardization & TypeScript Fixes

Choose a tag to compare

@toozuuu toozuuu released this 11 Nov 22:33
· 32 commits to main since this release

This release standardizes all packages to use modern export patterns, fixes all TypeScript compilation errors, and ensures full compatibility with modern bundlers. All packages now have consistent exports, proper type definitions, and improved developer experience.

✨ Key Improvements

Package Exports Standardization

  • ✅ Standardized all packages to use modern export pattern (type: module with .cjs/.js extensions)
  • ✅ Fixed Vue package exports configuration (removed redundant default field)
  • ✅ Fixed Angular package exports configuration (removed redundant default field and duplicate typings field)
  • ✅ All packages now consistently export both CommonJS (.cjs) and ESM (.js) formats
  • ✅ Improved compatibility with modern bundlers (Vite, Webpack 5+, Rollup)

TypeScript Fixes

  • ✅ Fixed all 12 TypeScript compilation errors
  • ✅ Added missing generateReport() method to TokenAnalytics class
  • ✅ Added missing exportJSON() method to FigmaDiff class
  • ✅ Added missing validateAliases() method to TokenParser class
  • ✅ Added missing getContrastRatio() method to ColorUtils class
  • ✅ Added missing generateReport() method to CICDValidator class
  • ✅ Fixed unused variables and imports
  • ✅ Updated CLI commands with correct API methods and type annotations

Build System Improvements

  • ✅ All packages build successfully
  • ✅ Type definitions generated for all packages
  • ✅ Source maps generated for better debugging
  • ✅ Build configurations standardized across all packages

📦 Packages Updated

All packages updated to version 1.1.2:

  • @tokiforge/core@1.1.2
  • @tokiforge/vue@1.1.2
  • @tokiforge/react@1.1.2
  • @tokiforge/svelte@1.1.2
  • @tokiforge/angular@1.1.2
  • @tokiforge/tailwind@1.1.2
  • @tokiforge/figma@1.1.2
  • tokiforge-cli@1.1.2

🔧 Technical Details

Export Structure

All packages now use:

  • "type": "module" for explicit ESM support
  • index.cjs for CommonJS exports
  • index.js for ESM exports
  • Proper exports field without redundant default entries
  • Type definitions (.d.ts) for full TypeScript support

🐛 Bug Fixes

  • Fixed Vue package resolution errors caused by incorrect exports configuration
  • Fixed Angular package resolution errors caused by redundant export fields
  • Fixed TypeScript compilation errors in CLI commands
  • Fixed missing method implementations in core package
  • Fixed unused variables and imports

📚 Documentation

  • Updated all documentation to reflect version 1.1.2
  • Updated installation instructions
  • Updated troubleshooting guide
  • Updated API documentation

🚀 Migration

No migration required. This release is fully backward compatible.

📥 Installation

ash
npm install @tokiforge/core@1.1.2
npm install @tokiforge/vue@1.1.2
npm install @tokiforge/react@1.1.2
npm install @tokiforge/svelte@1.1.2
npm install @tokiforge/angular@1.1.2
npm install @tokiforge/tailwind@1.1.2
npm install @tokiforge/figma@1.1.2
npm install tokiforge-cli@1.1.2---

Full Changelog: v1.1.1...v1.1.2