All Versions
85
Latest Version
Avg Release Cycle
20 days
Latest Release
1027 days ago

Changelog History
Page 5

  • v2.1.1 Changes

    June 14, 2020
    • Read the blog post: https://kea.js.org/blog/kea-2.1
    • Simplified the syntax even more! You don't need to pass () => ({ ... }) to actions, reducers, etc if there's nothing you want from the logic. Just pass {} instead.
    • Simplified syntax for selectors when not using the function syntax: javascript kea({ selectors: { doubleCounter: [ selectors => [selectors.counter], (counter) => counter * 2 ] } })
    • Listeners get the store's previousState as their 4th argument. You can use selectors (selectors.myData(previousState)) to get the any value as it was before the action was dispatched.
  • v2.0.1 Changes

    June 05, 2020
    • ๐Ÿ›  Fix error when calling old references to actions on unmounted logic via hooks.
  • v2.0.0 Changes

    May 12, 2020

    ๐Ÿ”– Version 2.0 brings a lot of convenience features and one breaking change. The changes are briefly described below. Read the announcement blog post to get more context: https://kea.js.org/blog/kea-2.0

    ๐Ÿ”Œ There's also a new babel plugin you might want to check out: https://github.com/keajs/babel-plugin-kea

    ๐Ÿ“„ Finally, Kea 2.0 comes with brand new docs on https://kea.js.org. ๐Ÿ“„ (Old docs for 1.0 and 0.28)

    ๐Ÿ’ฅ Breaking change

    • ๐Ÿ”Œ Listeners are now built in to Kea. That means if you were initialising the listenersPlugin before in resetContext, you need to remove it. Otherwise Kea won't start.

    Other changes

    • No more need to add the [actions. and ] in [actions.yourAction] when defining reducers and listeners
    • Auto-Connect: You can now write otherLogic.actions.doSomething() as keys for reducers and listeners and inside the executable part of listeners... instead of having to connect the values manually. The logic is automatically connected and mounted if it wasn't already.
    • It's possible to extend reducers with .extend. Before if you would define a new reducer with an existing name in the extend block, it would override the old one completely. Now thery merge and the actions on the old one still continue to work.
    • โœ… createStore is now true in resetContext. So if you don't need to specify the key at all if you don't have any custom redux middleware.
    • The path in your logic can start with anything. Previously it was just kea or scenes unless manually specified.
    • 0๏ธโƒฃ Instead of passing an array [default, {..}] to a reducer, now passing an object {..} works and sets the default to null.
  • v2.0.0-beta.8

    May 11, 2020
  • v2.0.0-beta.7

    May 06, 2020
  • v2.0.0-beta.6

    May 06, 2020
  • v2.0.0-beta.5

    April 27, 2020
  • v2.0.0-beta.4

    April 17, 2020
  • v2.0.0-beta.3

    April 17, 2020
  • v2.0.0-beta.2

    April 13, 2020