Releases: idootop/ZenBox
Releases · idootop/ZenBox
v2.2.0
v2.1.0
🐛 Bug Fixes
- Core stability improvements - Fixed listener iteration to avoid modifying the set while iterating, preventing potential runtime errors
- Type system enhancements - Updated State type to Plain Object for better TypeScript compatibility and type inference
- Hook reliability - Improved
useCleanuphook implementation with better cleanup handling and updated test coverage
v2.0.0
✨ Features
- Brand new website - Comprehensive documentation optimization for easier onboarding
- Optimized build configuration - Migrated from tsup to tsdown for better bundle optimization and reduced package size
- Updated dependencies - Latest versions for better performance and security
🔄 Breaking Changes
- Removed deprecated
useStoreValue- Please migrate touseStore(deprecated since v1.1.0)
v1.1.0
✨ Features
useBox- Introduces a Vue-likerefAPI for easy local store creationuseProvide/useInject- Implements Vue'sprovide/injectpattern for dependency injection, allowing parent components to provide values to descendants without prop drilling
🔄 Breaking Changes
useStoreValue→useStore- Renamed for consistency
🎉 ZenBox v1.0.0 is Here!
After months of development and refinement, we're thrilled to announce ZenBox v1.0.0! This isn't just another state management library - it's a paradigm shift that brings the best of Vue's reactivity model to React with the simplicity that Zustand developers love.
📦 Why ZenBox?
- 🚀 Easy to Use - Intuitive API for immediate productivity
- ⚡ High Performance - Only re-renders what actually changed
- 💪 TypeScript First - Full type inference out of the box, zero boilerplate
- 🎯 Flexible Architecture - Works for both global and component-level state
- 📦 Lightweight - 100 lines of core code, under 3KB gzipped (without Immer)
🚀 Getting Started
We believe ZenBox will transform how you think about React state management.
npm install zenboxReady to experience state management that feels like magic? ✨
📚 Documentation & Support
- 📖 Documentation: https://zenbox.del.wang
- 🐙 GitHub: idootop/ZenBox
- 💬 Discussions: GitHub Discussions
- 🐛 Issues: GitHub Issues
✌️ ZenBox vs Zustand
| Feature | ZenBox | Zustand |
|---|---|---|
| Learning Curve | ✅ Minimal (Vue-friendly) | ✅ Low |
| Vue-like Reactivity | ✅ useComputed/useWatch |
❌ Manual handling |
| TypeScript Support | ✅ Complete auto-inference | |
| State Access | ✅ Unified store.value interface |
❌ Manual get()/set() |
| Cross-Store Computed | ✅ Automatic dependency tracking | |
| Store Scoping | ✅ Built-in Provider for isolation | ❌ Global by default |
| Immer Integration | ✅ Built-in support | |
| Bundle Size | < 3KB gzipped (without Immer) | < 1KB gzipped |
Built with ❤️ by Del Wang and the ZenBox community
