Skip to content

Releases: I-am-abdulazeez/stunk

Middleware API

21 Dec 06:25

Choose a tag to compare

chore: eliminate next call in middleware for simpler mental model

V2.7.1

05 Oct 07:01
7da10b9

Choose a tag to compare

Support for Inifinite Async Chunk

V2.6.0

04 Oct 07:37
62aacbf

Choose a tag to compare

AsyncChunk pagination issue fixed

#34

v2.5.0

12 Jun 07:12
550503d

Choose a tag to compare

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

Full Changelog: v2.4.0...v2.5.0

v2.4.0

08 Jun 19:20
fd6bedc

Choose a tag to compare

🎉 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

07 Jun 06:02
348e9bd

Choose a tag to compare

Set() should error on the console when the user sets unknown properties
patch fix for older react versions

v2.2.2

24 Mar 16:14
c0f1977

Choose a tag to compare

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

24 Mar 09:26
829efaf

Choose a tag to compare

What's Changed

Full Changelog: v2.2.0...v2.2.1

Stunk v2.2.0

23 Mar 18:59
e9b8dc0

Choose a tag to compare

Core optimizations

Stunk v2.1.0

12 Mar 11:51

Choose a tag to compare

Stunk v2.1.0 🚀

✨ New Features

  • Computed – computed is powerful and can handle diamond dependency problems.
  • Set – set is now enhanced and updated is deprecated for set.
  • Select – select is now use computed under 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