redux
5.0.1 · 23 Dec 2023MIT62.6M / weekRepositoryHomepagenpmAtom feed
68 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 0.8.x
0.8.0
6 Jun 2015Now there is just one top Store, but you may compose your Stores using
composeStoreshigher-order Store (seriously.)Dispatcher is now part of the public API and offers (de)hydration for isomorphic apps.
Fine-grained subscriptions via the new
<Connector select={fn}>prop
The Big Rewrite!
This release wouldn't have happened without this @acdlite's wonderful gist.
New:
Now there is just one top Store, but you may compose your Stores using
composeStoreshigher-order Store (seriously.)Dispatcher is now part of the public API and offers (de)hydration for isomorphic apps.
Fine-grained subscriptions via the new
<Connector select={fn}>propLess surprising, more consistent API
Read the discussion: #46
- 0.7.x
0.7.0
5 Jun 2015Change second parameter in callback-style action creator from
statetoread: (Store) => stateRename:
Container -> Injector, @container -> @inject, Root -> Dispatcher, @root -> @dispatch
- 0.6.x
0.6.2
4 Jun 2015@container's second parameter now also accepts thepropspassed to it<Container />and<Root />invoke theirthis.props.childrenfunctions withoutthis.propscontext
0.6.1
4 Jun 2015Fix incorrect ES6 Map usage
0.6.0
4 Jun 2015- breaking
storesnow accepts an object, just likeactions - breaking
Containerchildren function signature is now({ actions, state }) => ... More fine-grained
Containerprops validation
- breaking
storesnow accepts an object, just likeactions - breaking
Containerchildren function signature is now({ actions, state }) => ... More fine-grained
Containerprops validation
This fixes #22. There is no more prop shape difference between subscribing to a single or to many stores.
Your container may now look like this:<Container stores={{ counter: stores.counterStore }} actions={{ increment, decrement }}> {({ state, actions }) => <Counter {...state} {...actions} />} </Container>Note that you can change the
stateshape by giving arbitrary keys to your stores. It's also easier to choose what exactly you want to pass to the component. For example, you could writeactions={actions}instead of{...actions}, and get all actions inthis.props.actions.The decorator version is changed the same way:
@container({ actions: { increment, decrement }, stores: { counter: counterStore } }) export default class Counter {It also now accepts a second
transformPropsargument to be just as expressive as the component version:@container({ actions: { increment, decrement }, stores: { counter: counterStore } }, ({ actions, state}) => { ...actions, ...state })) // default shape; you can write your own- 0.5.x
0.5.1
3 Jun 2015Fix the remaining dependency on the function name
Add a few early invariants
- 0.4.x
0.4.0
3 Jun 2015- 0.3.x
0.3.1
3 Jun 2015Remove old files from build
0.3.0
3 Jun 2015No more strings, now using module bindings for injecting stores and actions
Only use decorator for top-level component, keep dumb components pure and testable (#5)
Remove transaction logic (will be re-implemented on top of #6)
Complete rewrite.
No more strings, now using module bindings for injecting stores and actions
Only use decorator for top-level component, keep dumb components pure and testable (#5)
Remove transaction logic (will be re-implemented on top of #6)
// The smart component may inject actions // and observe stores using <Container />: import React, { Component } from 'react'; import { Root, Container } from 'redux'; import { increment, decrement } from './actions/CounterActions'; import counterStore from './stores/counterStore'; import Counter from './Counter'; export default class CounterContainer { render() { // stores can be a single store or an array. // actions can only be a string -> function map. // props passed to children will combine these actions and state. return ( <Container stores={counterStore} actions={{ increment, decrement }}> {props => <Counter {...props} />} </Container> ); } }Minor caveat: Store function names are now significant.
- 0.2.x
0.2.2
2 Jun 2015Pass
stateas a second argument to callback-style action creators
0.2.1
2 Jun 2015Fix
@providesnot passing its props down
- 0.1.x
0.1.0
31 May 2015- 0.0.x
0.0.4
9 Oct 20110.0.3
8 Oct 2011Reading the note…
0.0.2
7 Oct 2011Reading the note…
0.0.1
7 Oct 2011Reading the note…