Skip to content

Commit f419617

Browse files
committed
Bumping version number to 2.0.0
Updates for PureScript 0.10
1 parent 631d7ce commit f419617

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

Diff for: bower.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"!src/**/*"
1717
],
1818
"dependencies": {
19-
"purescript-profunctor-lenses": "~1.0.0",
20-
"purescript-react": "~1.1.0"
19+
"purescript-profunctor-lenses": "^2.1.0",
20+
"purescript-react": "^2.0.0"
2121
}
2222
}

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "purescript-react-redux",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"private": true,
55
"files": [],
66
"scripts": {

Diff for: src/React/Redux.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use strict';
22

3-
// module React.Redux
4-
53
var Redux = require('redux');
64

75
var ReactRedux = require('react-redux');

Diff for: src/React/Redux.purs

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import Control.Monad.Eff.Class (class MonadEff, liftEff)
3030

3131
import Data.Either (Either, either)
3232
import Data.Function.Uncurried (Fn2, runFn2)
33-
import Data.Lens (GetterP, LensP, PrismP, matching, set, view)
33+
import Data.Lens (Getter', Lens', Prism', matching, set, view)
3434

3535
import Unsafe.Coerce (unsafeCoerce)
3636

@@ -92,7 +92,7 @@ spec getInitialState render =
9292
spec' :: forall props eff f action. Render props Unit eff f action -> Spec props Unit eff f action
9393
spec' = spec (\_ _ -> pure unit)
9494

95-
createClass :: forall props state eff f action state'. MonadEff (Effects eff) f => GetterP state' props -> Spec props state eff f action -> ReduxReactClass state' props
95+
createClass :: forall props state eff f action state'. MonadEff (Effects eff) f => Getter' state' props -> Spec props state eff f action -> ReduxReactClass state' props
9696
createClass lens spec_ = connect (view lens) reactClass
9797
where
9898
reactClass :: React.ReactClass props
@@ -122,7 +122,7 @@ createElement store reduxClass =
122122
createStore :: forall eff action state. Reducer action state -> state -> Eff (Effects eff) (Store action state)
123123
createStore = runFn2 createStore_
124124

125-
reducerOptic :: forall state state' action action'. LensP state state' -> PrismP action action' -> Reducer action' state' -> Reducer action state
125+
reducerOptic :: forall state state' action action'. Lens' state state' -> Prism' action action' -> Reducer action' state' -> Reducer action state
126126
reducerOptic lens prism k action state = either (const state) (\a -> set lens (k a state') state) action'
127127
where
128128
state' :: state'

0 commit comments

Comments
 (0)