Skip to content

Commit dcb683d

Browse files
jvliwanagdoolse
authored andcommitted
Upgrade to purescript 0.12, purescript-react 6.0.0 (#23)
* Upgrade bower deps for 0.12 * Upgrade to purescript-react 6.0.0 * Replace purescript-eff with purescript-effect * Replace purescript-maps with purescript-foreign-object * Add purescript-avar dev dependency * Upgrade to purescript 0.12, purescript-react 6.0.0 * Have to use createElementUnsafe, createLeafElementUnsafe due to purescript-contrib/purescript-react#151 * Change createNoChild to use createLeafElementUnsafe * Change from Eff eff to Effect * Fix imports * Change unsafe components to require record props * Upgrade test to 0.12 * Upgrade travis, package.json, package-lock.json to 0.12
1 parent bad2740 commit dcb683d

29 files changed

+881
-672
lines changed

.travis.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ sudo: false
33
node_js:
44
- 8
55
install:
6-
- npm install purescript@0.11.7 pulp bower -g
6+
- npm install purescript@0.12.0 pulp bower -g
77
- bower install
88
script:
99
- pulp build
10-
11-
12-

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ place to go for help. This will be acheived by:
2727
lagging behind or the component does not yet have a safe version, it's still possible to use
2828
the library without too much hassle.
2929

30-
- Stay event framework agnostic. This is acheived by using `EffFnX` to model the event callbacks.
30+
- Stay event framework agnostic. This is acheived by using `EffectFnX` to model the event callbacks.
3131
There will be additional libraries for your favourite action library - e.g. `purescript-reactnative-thermite`
3232
I have also made a very small and simple library for dispatching react actions [purescript-dispatcher-react](http://github.com/doolse/purescript-dispatcher-react).
3333

@@ -168,7 +168,7 @@ Replace the contents of `src/Main.purs` with
168168
module Main where
169169
170170
import Prelude
171-
import Control.Monad.Eff (Eff)
171+
import Effect (Eff)
172172
import React (ReactClass, ReactElement, Render, createClass, getProps, spec)
173173
import ReactNative.API (REGISTER, registerComponent)
174174
import ReactNative.Components.Text (text_)

bower.json

+11-8
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,18 @@
1919
"url": "git://github.com/doolse/purescript-reactnative.git"
2020
},
2121
"dependencies": {
22-
"purescript-react": "^5.1.0",
23-
"purescript-maybe": "^3.1.0",
24-
"purescript-newtype": "^2.0.0",
25-
"purescript-integers": "^3.2.0",
26-
"purescript-maps": "^3.6.0",
27-
"purescript-nullable": "^3.0.0",
28-
"purescript-eff": "^3.2.1"
22+
"purescript-prelude": "^4.0.0",
23+
"purescript-react": "^6.0.0",
24+
"purescript-maybe": "^4.0.0",
25+
"purescript-newtype": "^3.0.0",
26+
"purescript-integers": "^4.0.0",
27+
"purescript-foreign-object": "^1.0.0",
28+
"purescript-nullable": "^4.0.0",
29+
"purescript-effect": "^2.0.0"
2930
},
3031
"devDependencies": {
31-
"purescript-spec": "^2.0.0"
32+
"purescript-avar": "^3.0.0",
33+
"purescript-generics-rep": "^6.0.0",
34+
"purescript-spec": "^3.0.0"
3235
}
3336
}

0 commit comments

Comments
 (0)