Sep 25, 2018

@developit developit released this Sep 20, 2018 · 5 commits to master since this release

Assets 2

@developit developit released this May 25, 2018 · 25 commits to master since this release

Assets 2
  • Tiny fix for TypeScript allowing any arguments to be passed to an action.

@developit developit released this May 6, 2018 · 38 commits to master since this release

Assets 2

@developit developit released this Jan 29, 2018 · 44 commits to master since this release

Assets 2

This is a bugfix release, in particular addressing the React and Devtools integrations.

  • Fix the React implementation of connect() (#50, thanks @vincentaudebert & everyone)
  • Fix /devtools entry being missing from the published npm package in 3.0.3 (#55, thanks @dioptre)
  • devtools() now returns the store you pass it (#56, thanks @ouzhenkun)
  • Fix devtools ignoring state updates in some cases (#64, thanks @bjrnt)

@developit developit released this Dec 19, 2017 · 69 commits to master since this release

Assets 2
  • Fix contextTypes for React build (#38)
  • Fix modular react build being missing from package (#37)
  • Fix React setState(null) throwing warning (thanks @srph)
  • Fix actions invoked during componentWillMount() not triggering a re-render (#45, thanks @lilijialiang)
  • Allow spaces in comma-separated selectors (#36, thanks @srph)

@developit developit released this Dec 13, 2017 · 85 commits to master since this release

Assets 2

This release just fixes the build & package that was released for 3.0.0, which contained some errors.

Dec 12, 2017

@developit developit released this Dec 12, 2017 · 94 commits to master since this release

Assets 2

Unistore now supports React!

  • unistore is now purely the implementation of createStore()
  • unistore/preact is now { Provider, connect } for Preact.
  • unistore/react is { Provider, connect } for React.
  • You can still use unistore/full/preact to access the original single-file module

We've switched to Microbundle, check it out.

@developit developit released this Dec 8, 2017 · 102 commits to master since this release

Assets 2

šŸž Bug Fixes

šŸ”§ Tweaks

šŸŽ‰ New Features

  • store.subscribe() now returns an unsubscribe function! (#22, thanks @cristianbote)
  • New store.action(action) API for creating store-bound actions (like connect() does):
let store = createStore()
store.subscribe(console.log)  // log all store updates

// We start with a pure function, as you might pass to connect():
let increment = ({ count }) => ({ count: count + 1 });

// Passing that to createAction() returns a handler like you would get from connect():
let incrementAction = store.createAction(increment)

// Calling the action applies it to the store:
incrementAction()   // logs { count: 1 }