New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

kea

Package Overview
Dependencies
Maintainers
1
Versions
233
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kea - npm Package Versions

1
24

2.0.0

Diff

Changelog

Source

2.0.0 - 2020-05-12

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://v2.keajs.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.
  • Instead of passing an array [default, {..}] to a reducer, now passing an object {..} works and sets the default to null.
mariusandra
published 2.0.0-beta.8 •

mariusandra
published 2.0.0-beta.7 •

mariusandra
published 2.0.0-beta.6 •

mariusandra
published 2.0.0-beta.5 •

mariusandra
published 2.0.0-beta.4 •

mariusandra
published 2.0.0-beta.3 •

mariusandra
published 2.0.0-beta.2 •

mariusandra
published 2.0.0-beta.1 •

mariusandra
published 1.0.1 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc