- got rid of redux dependencies
- move react-dom and horizon-client to peer dependencies, remove src folder from npmignore
- Add documentation for mapDispatchToProps (#15)
- added contributors and boilerplate sections to readme, remove eslint-disable-line from prepublish.js
- fixes an issue where
setState
would be called before the Connector
was mounted
- updated to horizon/[email protected] #celebrate! https://horizon.io
- updated ready status indicator code and removed timeout
- added imports- and exports-loader until pr is merged
- fixes an issue which prevented from working in React Native (due to span element)
- added redux to
subscribe
with one function to state and data, connector is now a HOC instead of a wrapper function
- re-use existing queries if query didn't Change
- improved subscription query building
horizon
client can now be passed as horizon
prop to Connector
in order to define the client outside.
- always return an array - even if there's just one document
- fixes issue with old props being used in subscriptions on update
- allow passing objects with names as keys to subscribe:
{
todos: {
query: (horizon, props) => horizon('todos').find({ ... }).limit(props.limit)
}
}
- rolled back 'ready' check until rethinkdb/horizon#286 is merged
- added .eslintrc and eslint-config-airbnb package
- added horizon utils
createDoc
and deleteDoc
- using horizon constants which hopefully will be merged into master (PR #286)
- optimized
subscribe
enhancer
- now accepts either an object with collection + query definitions or an array of objects like:
{
query: (horizon, props) => horizon('todos').find({ ... }).limit(props.limit),
name: 'todos'
}
- fixes issue which prevented errors from being logged due to observables swallowing them
Connector
now uses "ready" state of horizon collection to determine whether app should be rendered or not
Connector
allows to pass or omit horizon props object