Skip to content

Releases: idootop/ZenBox

v2.2.0

28 Dec 03:26
e9391b5

Choose a tag to compare

  • fix: improve useStore inference for non-strict TypeScript

v2.1.0

11 Oct 13:27
47e815f

Choose a tag to compare

🐛 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 useCleanup hook implementation with better cleanup handling and updated test coverage

v2.0.0

07 Oct 12:23
d6554b0

Choose a tag to compare

https://zenbox.del.wang

✨ 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 to useStore (deprecated since v1.1.0)

v1.1.0

26 Aug 10:20
8ba9862

Choose a tag to compare

✨ Features

  • useBox - Introduces a Vue-like ref API for easy local store creation
  • useProvide / useInject - Implements Vue's provide / inject pattern for dependency injection, allowing parent components to provide values to descendants without prop drilling

🔄 Breaking Changes

  • useStoreValueuseStore - Renamed for consistency

🎉 ZenBox v1.0.0 is Here!

09 Jul 16:44
4b168bc

Choose a tag to compare

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 zenbox

Ready to experience state management that feels like magic?

📚 Documentation & Support

✌️ ZenBox vs Zustand

Feature ZenBox Zustand
Learning Curve ✅ Minimal (Vue-friendly) ✅ Low
Vue-like Reactivity useComputed/useWatch ❌ Manual handling
TypeScript Support ✅ Complete auto-inference ⚠️ Manual interface definition
State Access ✅ Unified store.value interface ❌ Manual get()/set()
Cross-Store Computed ✅ Automatic dependency tracking ⚠️ Requires pre-combination
Store Scoping ✅ Built-in Provider for isolation ❌ Global by default
Immer Integration ✅ Built-in support ⚠️ Middleware required
Bundle Size < 3KB gzipped (without Immer) < 1KB gzipped

Built with ❤️ by Del Wang and the ZenBox community