Releases: I-am-abdulazeez/stunk
Middleware API
chore: eliminate next call in middleware for simpler mental model
V2.7.1
Support for Inifinite Async Chunk
V2.6.0
v2.5.0
2.5.0
✨ Features
Allow undefined initial values: chunk() now accepts undefined as an initial value, making it easier to work with optional state
Enhanced middleware support: Middleware can now process and return undefined values throughout the chain
Improved TypeScript support: Better type inference for optional values like chunk<User | undefined>(undefined)
🔧 Technical Details
Removed restriction on undefined values in chunk creation and middleware processing
null values remain restricted to prevent common JavaScript pitfalls
All existing functionality remains unchanged
Usage Example
// ✅ Now possible
const userChunk = chunk<User | undefined>(undefined);
const statusChunk = chunk<"loading" | "success" | undefined>(undefined);
// ✅ Still works as before
const nameChunk = chunk("John");
const countChunk = chunk(0);
// ❌ Still throws (null remains restricted)
const badChunk = chunk(null);
What's Changed
- Allow undefine value for initial value by @I-am-abdulazeez in #29
- fix: update version to 2.5.0 in package.json by @I-am-abdulazeez in #30
Full Changelog: v2.4.0...v2.5.0
v2.4.0
🎉 What’s New in Stunk v2.4.0
✅ set() now validates keys
Trying to update a non-existent state property? Stunk will now warn you — no more silent bugs.
⚡️ asyncChunk() just got smarter
– Support for refresh, cacheTime, staleTime, and refetchInterval
– enabled flag for conditional fetching
– Internal caching & staleness logic
– Param-based reload, refresh, and setParams now fully supported
🧼 Built-in cleanup
Timers and intervals are automatically cleared — no memory leaks.
Still simple. Still reactive. Now even more powerful.
Update to v2.4.0 and level up your state game.
V2.3.1
Set() should error on the console when the user sets unknown properties
patch fix for older react versions
v2.2.2
What's Changed
- chore: enhance build process to include CommonJS output and update ex… by @I-am-abdulazeez in #13
Full Changelog: v2.2.1...v2.2.2
v2.2.1
Stunk v2.2.0
Core optimizations
Stunk v2.1.0
Stunk v2.1.0 🚀
✨ New Features
- Computed –
computedis powerful and can handle diamond dependency problems. - Set –
setis now enhanced and updated is deprecated forset. - Select –
selectis now usecomputedunder the hood.
🐛 Fixes & Improvements
- Improved: [Performance/UI/UX enhancement]
📖 Docs & DX Enhancements
Updated documentation for Computed and Set.
Improved TypeScript types and developer experience.
🔗 Upgrade Guide
Run:
npm install stunk@latest
or
yarn add stunk@latest