Skip to content

Commit

Permalink
9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmingoia committed May 2, 2017
1 parent e4e041a commit b53cdd4
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 12 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change Log

## [v9.0] - 2017-05-01

- Update for PureScript 0.11
[#116](https://github.com/alexmingoia/purescript-pux/pull/116)
- Remove redundant arrays in rendered React VDOM
- Fixed type error in devtool state serialization
[#117](https://github.com/alexmingoia/purescript-pux/pull/117)

## [v8.9] - 2017-04-08

- Fix rendering of `style` element contents.
Expand Down
8 changes: 4 additions & 4 deletions docs/API/Pux.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ main = do
#### `Config`

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

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

``` purescript
type CoreEffects fx = ("channel" :: CHANNEL, "err" :: EXCEPTION | fx)
type CoreEffects fx = (channel :: CHANNEL, exception :: EXCEPTION | fx)
```

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

``` purescript
type App e ev st = { "markup" :: Signal (Markup e), "state" :: Signal st, "events" :: Signal (List ev), "input" :: Channel (List ev) }
type App e ev st = { markup :: Signal (Markup e), state :: Signal st, events :: Signal (List ev), input :: Channel (List ev) }
```

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

``` purescript
type EffModel st ev fx = { "state" :: st, "effects" :: Array (Aff (CoreEffects fx) (Maybe ev)) }
type EffModel st ev fx = { state :: st, effects :: Array (Aff (CoreEffects fx) (Maybe ev)) }
```

`EffModel` is a container for state and asynchronous effects which return
Expand Down
2 changes: 1 addition & 1 deletion docs/API/Pux/DOM/History.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#### `sampleURL`

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

Returns a signal containing the current window.location pathname and search query,
Expand Down
8 changes: 4 additions & 4 deletions docs/API/Pux/Renderer/React.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#### `renderToDOM`

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

```purescript
Expand All @@ -20,7 +20,7 @@ main = do
#### `renderToString`

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

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

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

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

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

Return a ReactClass from a component's HTML signal.
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "purescript-pux",
"description": "Pux is a library for building purely functional interactive UIs with PureScript.",
"version": "8.9.0",
"description": "Build purely functional type-safe web apps with PureScript.",
"version": "9.0.0",
"scripts": {
"postinstall": "bower install",
"build:clean": "rm -rf dist output",
"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",
"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",
"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 [email protected]:alexmingoia/purescript-pux gh-pages --force",
"publish:packages": "pulp publish && npm publish",
"publish": "npm run publish:packages && npm run publish:website",
Expand Down

0 comments on commit b53cdd4

Please sign in to comment.