Skip to content

Releases: houfio/dakpan

2.3.2

06 Jun 08:14
Compare
Choose a tag to compare

Features

  • Add React 18 support 🍃

2.3.1

19 Nov 22:34
Compare
Choose a tag to compare

Features

  • Add React 17 support 🍃

2.3.0

01 Feb 00:17
Compare
Choose a tag to compare

Features

  • Add state getter function to keep state updates in async action 🚗
  • Add reinitialize prop to the providers to make updating the state easier 🚉

2.2.0

11 Sep 08:04
Compare
Choose a tag to compare

Features

  • The good ol' HOC makes a grand return 🚀
  • TypeScript types are now exposed ☘️
  • Added provider fallback for the initial state 🏭
  • Added nullable flag to hooks 🏴

Fixes

  • Fixed multiple providers of same type in tree not working correctly
  • Fixed actions not regenerating with current state

Other

  • Small performance improvements

2.1.0 Alpha 5

07 Aug 11:12
Compare
Choose a tag to compare
2.1.0 Alpha 5 Pre-release
Pre-release

Features

  • Added nullable flag to hooks 🏴

2.1.0 Alpha 4

01 Aug 12:01
Compare
Choose a tag to compare
2.1.0 Alpha 4 Pre-release
Pre-release

Fixes

  • Fixed simultaneous state updates

2.1.0 Alpha 3

24 Jul 10:40
Compare
Choose a tag to compare
2.1.0 Alpha 3 Pre-release
Pre-release

Features

  • Added provider fallback for the initial state 🏭

When creating a dakpan, the initial state is no longer a required variable. Now you can also provide it directly to the provider:

const [CountProvider] = createDakpan<{ count: number }>()({});

const initial = { count: 0 };

function Count() {
  return (
    <CountProvider value={initial}/>
  );
}

2.1.0 Alpha 2

22 Jul 08:03
Compare
Choose a tag to compare
2.1.0 Alpha 2 Pre-release
Pre-release

Fixes

  • Fixed actions not regenerating with current state

2.1.0 Alpha 1

19 Jul 11:20
Compare
Choose a tag to compare
2.1.0 Alpha 1 Pre-release
Pre-release

Fixes

  • Fixed multiple providers of same type in tree not working correctly

2.1.0 Alpha 0

19 Jul 09:33
Compare
Choose a tag to compare
2.1.0 Alpha 0 Pre-release
Pre-release

Features

  • The good ol' HOC makes a grand return 🚀
  • TypeScript types are now exposed ☘️

Other

  • Small performance improvements