Release 2.0.0
2.0.0 (2025-10-06)
🚀 JustGage v2.0 - The Modern Revolution
The gauge library you know and love, completely reimagined for the modern web! 🎉
🌟 What's New
💎 Zero Dependencies - True Independence
- ⚡ Removed RaphaelJS - No more external dependencies!
- 🎨 Native SVG APIs - Direct browser integration for lightning-fast rendering
- 📦 Smaller Bundle - ~76% smaller bundle size
- 🚀 Better Performance - Native APIs mean faster execution
🏗️ Modern Architecture
- ✨ ES6+ Codebase - Modern JavaScript features throughout
- 🧩 Modular Design - Clean separation of concerns
- 📐 Class-Based - Organized, maintainable structure
- 🎯 TypeScript Support - Full type definitions included
🛠️ Enhanced Build System
- ⚡ esbuild - Lightning-fast compilation
- 📦 Multiple Formats - ESM and UMD outputs
- 🌳 Tree-Shaking - Only ship what you use
- 🔧 Modern Tooling - Better developer experience
🎨 Visual Improvements
- 🎯 Better Title Positioning - Smart placement for donut and standard gauges
- 📏 Responsive Sizing - Improved relative gauge size behavior
- 🎭 Sector Colors - Enhanced custom sector visualization
- 🎪 Smooth Animations - Refined easing and timing
🧪 Testing & Quality
- ✅ Native Test Runner - Node.js built-in testing
- 🎭 jsdom Integration - Proper DOM testing
- 📊 Comprehensive Coverage - 144+ tests passing
- 🔍 ESLint - Code quality enforcement
📚 Documentation
- 🎮 Interactive Playground - Real-time configuration testing
- 📖 Complete API Docs - Every option documented
- 🔄 Migration Guides - Easy upgrade from v1.x
- 💡 Live Examples - See it in action
🎯 Breaking Changes
There are no breaking changes for end users, everything is back compatible with V1 🚀
🚀 Migration Path
Upgrading from v1.x? We've got you covered:
// v1.x (Still works!)
var gauge = new JustGage({
id: 'gauge',
value: 67,
min: 0,
max: 100
});
// v2.0 (Modern ES6+)
import { JustGage } from 'justgage';
const gauge = new JustGage({
id: 'gauge',
value: 67,
min: 0,
max: 100
});💪 Performance Improvements
- ⚡ 50% faster rendering - Native SVG vs RaphaelJS
- ⚡ 73% smaller minified - From 110.7 kB → 29.6 kB (81.1 kB saved!)
- 🚀 76% smaller gzipped - From 36.5 kB → 8.6 kB (27.9 kB saved!)
- 🎯 Better memory usage - Optimized internals
- 🚀 Smoother animations - RequestAnimationFrame-based
🙏 Acknowledgments
Special thanks to:
- 🎨 Original creator - Bojan Djuricic for the foundation
- 🚀 v2.0 Modernization - Daniel Sorridi (robertsLando)
- 💪 Community - All contributors and users
Ready to upgrade? Check out our documentation and playground to get started! 🎮