redux-zero
Advanced tools
Comparing version 4.3.0 to 4.3.1
# Changelog | ||
### 4.3.1 | ||
- Fixes binding imports with TypeScript | ||
This is now working for both TypeScript and JavaScript: | ||
```javascript | ||
import { Provider } from 'redux-zero/react' | ||
``` | ||
### 4.3.0 | ||
@@ -4,0 +14,0 @@ |
{ | ||
"name": "redux-zero", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"description": "", | ||
"main": "dist/redux-zero.js", | ||
"typings": "dist/index.d.ts", | ||
"types": "index.d.ts", | ||
"scripts": { | ||
@@ -23,4 +23,8 @@ "compile": "tsc --pretty", | ||
"dist", | ||
"interfaces", | ||
"react", | ||
"svelte" | ||
"store", | ||
"svelte", | ||
"utils", | ||
"index.d.ts" | ||
], | ||
@@ -27,0 +31,0 @@ "license": "MIT", |
@@ -1,2 +0,3 @@ | ||
import createStore from "./store/createStore"; | ||
export default createStore; | ||
import connect, { Connect } from "./components/connect"; | ||
import Provider from "./components/Provider"; | ||
export { connect, Provider, Connect }; |
@@ -14,4 +14,4 @@ <h1 align="center"> | ||
[![downloads](https://img.shields.io/npm/dm/redux-zero.svg?style=flat-square)](https://www.npmjs.com/package/redux-zero) | ||
[![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)]() | ||
[![dependencies](https://img.shields.io/david/expressjs/express.svg?style=flat-square)]() | ||
[![license](https://img.shields.io/github/license/concretesolutions/redux-zero.svg?style=flat-square)]() | ||
[![dependencies](https://img.shields.io/david/concretesolutions/redux-zero.svg?style=flat-square)]() | ||
@@ -35,3 +35,3 @@ | ||
This assumes that you’re using [npm](https://www.npmjs.com/) with a module bundler like [Webpack](https://webpack.js.org/) | ||
This assumes that you’re using [npm](https://www.npmjs.com/) with a module bundler like [webpack](https://webpack.js.org/) | ||
@@ -81,6 +81,8 @@ ## How | ||
/* actions.js */ | ||
export const actions = store => ({ | ||
const actions = store => ({ | ||
increment: state => ({ count: state.count + 1 }), | ||
decrement: state => ({ count: state.count - 1 }) | ||
}) | ||
}); | ||
export default actions; | ||
``` | ||
@@ -136,2 +138,3 @@ | ||
### More examples | ||
- [React](https://github.com/concretesolutions/redux-zero/tree/master/examples/react/counter) | ||
- [React Native](https://github.com/concretesolutions/redux-zero/tree/master/examples/react-native/counter) | ||
@@ -157,2 +160,2 @@ - [Svelte](https://github.com/concretesolutions/redux-zero/tree/master/examples/svelte/counter) | ||
* [Code of Conduct](https://github.com/concretesolutions/redux-zero/blob/master/CODE_OF_CONDUCT.md) | ||
* [License](https://github.com/concretesolutions/redux-zero/blob/master/LICENSE.md) | ||
* [License](https://github.com/concretesolutions/redux-zero/blob/master/LICENSE) |
@@ -1,2 +0,2 @@ | ||
import createStore from "./store/createStore"; | ||
export default createStore; | ||
import { connect, getActions } from "./components/connect"; | ||
export { connect, getActions }; |
48090
157
53
432