Skip to content

Releases: alexmingoia/purescript-pux

11.0

17 Aug 19:51
Compare
Choose a tag to compare
  • Support for purescript-smolder 10 (fixes tail-recursive/stack issue with
    large num of elements) #139.
  • Use create-react-class module to avoid deprecation warning #142.
  • Fix crash when React event object is null #136.
  • Add basic test suite #133.

9.2

20 May 02:23
Compare
Choose a tag to compare
9.2
  • Use React component class for memoized views.
    Significantly improves performance by avoiding unnecessary React VDOM
    subtree comparison. This brings performance characteristics in line with
    vanilla React and a single state atom and PureRenderMixin.
  • Check for target.value. Fixes #119

9.0

02 May 05:48
Compare
Choose a tag to compare
9.0
  • Update for PureScript 0.11
    #116
  • Starter app now uses Hyper instead of Express, and defaults to using purs ide for faster reloads.
  • Remove redundant arrays in rendered React VDOM
  • Fixed type error in devtool state serialization
    #117

8.7

07 Apr 23:10
Compare
Choose a tag to compare
8.7
  • Fix redundant initial render.
  • Add reactClassWithProps for using arbitrary props with external React classes.
  • Add HMR support to pux-devtool.

8.3

03 Apr 05:56
Compare
Choose a tag to compare
8.3

Improved React rendering performance by caching virtual DOM returned by memoized views. This provides the same performance optimization as React's shouldComponentUpdate.

Pux 8

30 Mar 19:53
Compare
Choose a tag to compare

This is a major upgrade and rewrite with breaking changes:

  • Markup now uses purescript-smolder and Html has been replaced with a new
    HTML type.
  • Event handlers now receive the raw DOM event from purescript-dom, and Pux no
    longer provides its own event types.
  • Type signatures for start, Config, App have changed to include a new
    type parameter and different labels.
  • Effects in the EffModel now return Maybe a instead of a.
  • Rendering is no longer tied to React. Other virtual DOM renderers can be
    implemented.
  • Added memoize function for views is provided to prevent unnecessary renders.
  • Added constructor for style element and attribute which takes CSS from
    purescript-css.
  • Added full isomorphic routing and rendering setup to pux-starter-app.
  • Actions are now referred to as events in source code and documentation.
  • The "update" function is now referred to as the "foldp" function in source
    code and documentation.

See the updated guide for help upgrading to Pux 8.

v1.0.0

27 Mar 08:31
Compare
Choose a tag to compare
  • The VirtualDOM monad has been replaced with # operator and rebindable
    do, which enables the use of both array notation or do notation for
    composing views.
  • VirtualDOM is now Html a and is parameterized by the component's action
    type.
  • One-to-one mapping between event types and React's synthetic events.
  • The Update function no longer receives an input Signal.Channel.
  • EffModel type has changed to
    { state: state, effects: Array (Aff eff action), and actions are
    automatically fed into the input channel.