Packages

redux

5.0.1 · 23 Dec 2023MIT62.6M / weekRepositoryHomepagenpmAtom feed

Your version

0.10.1

13 Jun 2015Where it was published

0.12.0 is the newest release of 0.10.x.

In short

1 breaking2 changed

  • breaking

    (And that's actually a breaking change.)

Release note

Missing from the 0.10 release notes: React Native is now supported!
(And that's actually a breaking change.)

Now, to import React-specific parts (containers or decorators), you need to either import from redux/react or redux/react-native:

// Import utilities and functions from redux
import { createRedux, bindActionCreators } from 'redux';

// Import components and decorators from redux/react
import { provide, Connector } from 'redux/react';

// React Native: Import components and decorators from redux/react-native
import { provide, Connector } from 'redux/react-native';

0.10 release also had a problem with ES6 code inside redux/react and redux/react-native entry points, which is now fixed. Please upgrade if you had problems with 0.10.

Changes introduced in 0.10.1:

  • Connector now throws if select returns something other than a plain object (#85)

  • The custom dispatcher API is tweaked so setState now returns the state that was actually set. This makes custom dispatchers more composable. (#77)

Happy reducing!