Skip to content

Commit b53cdd4

Browse files
committed
9.0
1 parent e4e041a commit b53cdd4

5 files changed

Lines changed: 20 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Change Log
22

3+
## [v9.0] - 2017-05-01
4+
5+
- Update for PureScript 0.11
6+
[#116](https://github.com/alexmingoia/purescript-pux/pull/116)
7+
- Remove redundant arrays in rendered React VDOM
8+
- Fixed type error in devtool state serialization
9+
[#117](https://github.com/alexmingoia/purescript-pux/pull/117)
10+
311
## [v8.9] - 2017-04-08
412

513
- Fix rendering of `style` element contents.

docs/API/Pux.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ main = do
2323
#### `Config`
2424

2525
``` purescript
26-
type Config e ev st fx = { "initialState" :: st, "view" :: st -> Markup e, "foldp" :: FoldP st ev fx, "inputs" :: Array (Signal ev) }
26+
type Config e ev st fx = { initialState :: st, view :: st -> Markup e, foldp :: FoldP st ev fx, inputs :: Array (Signal ev) }
2727
```
2828

2929
The configuration of an app consists of foldp and view functions along
@@ -36,7 +36,7 @@ be merged into the app's input signal.
3636
#### `CoreEffects`
3737

3838
``` purescript
39-
type CoreEffects fx = ("channel" :: CHANNEL, "err" :: EXCEPTION | fx)
39+
type CoreEffects fx = (channel :: CHANNEL, exception :: EXCEPTION | fx)
4040
```
4141

4242
The set of effects every Pux app needs to allow through when using `start`.
@@ -53,7 +53,7 @@ main state = do
5353
#### `App`
5454

5555
``` purescript
56-
type App e ev st = { "markup" :: Signal (Markup e), "state" :: Signal st, "events" :: Signal (List ev), "input" :: Channel (List ev) }
56+
type App e ev st = { markup :: Signal (Markup e), state :: Signal st, events :: Signal (List ev), input :: Channel (List ev) }
5757
```
5858

5959
An `App` is a record consisting of:
@@ -76,7 +76,7 @@ Return an `EffModel` from the current event and state.
7676
#### `EffModel`
7777

7878
``` purescript
79-
type EffModel st ev fx = { "state" :: st, "effects" :: Array (Aff (CoreEffects fx) (Maybe ev)) }
79+
type EffModel st ev fx = { state :: st, effects :: Array (Aff (CoreEffects fx) (Maybe ev)) }
8080
```
8181

8282
`EffModel` is a container for state and asynchronous effects which return

docs/API/Pux/DOM/History.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#### `sampleURL`
44

55
``` purescript
6-
sampleURL :: forall eff. Window -> Eff ("channel" :: CHANNEL, "history" :: HISTORY, "dom" :: DOM | eff) (Signal String)
6+
sampleURL :: forall eff. Window -> Eff (channel :: CHANNEL, history :: HISTORY, dom :: DOM | eff) (Signal String)
77
```
88

99
Returns a signal containing the current window.location pathname and search query,

docs/API/Pux/Renderer/React.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#### `renderToDOM`
44

55
``` purescript
6-
renderToDOM :: forall ev fx. String -> Signal (HTML ev) -> Channel (List ev) -> Eff ("channel" :: CHANNEL | fx) Unit
6+
renderToDOM :: forall ev fx. String -> Signal (HTML ev) -> Channel (List ev) -> Eff (channel :: CHANNEL | fx) Unit
77
```
88

99
```purescript
@@ -20,7 +20,7 @@ main = do
2020
#### `renderToString`
2121

2222
``` purescript
23-
renderToString :: forall ev fx. Signal (HTML ev) -> Eff ("channel" :: CHANNEL | fx) String
23+
renderToString :: forall ev fx. Signal (HTML ev) -> Eff (channel :: CHANNEL | fx) String
2424
```
2525

2626
Return an HTML string from a component's HTML signal. The HTML returned
@@ -29,7 +29,7 @@ includes React-specific attributes for fast mounting in the browser.
2929
#### `renderToStaticMarkup`
3030

3131
``` purescript
32-
renderToStaticMarkup :: forall ev fx. Signal (HTML ev) -> Eff ("channel" :: CHANNEL | fx) String
32+
renderToStaticMarkup :: forall ev fx. Signal (HTML ev) -> Eff (channel :: CHANNEL | fx) String
3333
```
3434

3535
Return an HTML string from a component's HTML signal. The HTML returned is
@@ -38,7 +38,7 @@ stripped of all React-specific attributes.
3838
#### `renderToReact`
3939

4040
``` purescript
41-
renderToReact :: forall ev props fx. Signal (HTML ev) -> Channel (List ev) -> Eff ("channel" :: CHANNEL | fx) (ReactClass props)
41+
renderToReact :: forall ev props fx. Signal (HTML ev) -> Channel (List ev) -> Eff (channel :: CHANNEL | fx) (ReactClass props)
4242
```
4343

4444
Return a ReactClass from a component's HTML signal.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "purescript-pux",
3-
"description": "Pux is a library for building purely functional interactive UIs with PureScript.",
4-
"version": "8.9.0",
3+
"description": "Build purely functional type-safe web apps with PureScript.",
4+
"version": "9.0.0",
55
"scripts": {
66
"postinstall": "bower install",
77
"build:clean": "rm -rf dist output",
8-
"docs": "rm -rf docs/API && pulp docs && mkdir -p docs/API && mv docs/Pux docs/API/Pux && mv docs/Pux.md docs/API/Pux.md",
8+
"docs": "rm -rf docs/API && pulp docs && mkdir -p docs/API && mv generated-docs/Pux docs/API/Pux && mv generated-docs/Pux.md docs/API/Pux.md && rm -r generated-docs",
99
"publish:website": "npm run docs && cd website && npm run build && cd dist/www && git init && git commit --allow-empty -m 'Update website.' && git checkout -b gh-pages && touch .nojekyll && echo purescript-pux.org > CNAME && git add . && git commit -am 'Update website.' && git push git@github.com:alexmingoia/purescript-pux gh-pages --force",
1010
"publish:packages": "pulp publish && npm publish",
1111
"publish": "npm run publish:packages && npm run publish:website",

0 commit comments

Comments
 (0)