github purescript-halogen/purescript-halogen v0.6.0
v0.6.0 - Component lifecycles

latest releases: v7.0.0, v6.1.3, v6.1.2...
8 years ago

Breaking changes:

  • Dropped the old Render, Eval, Peek synonyms in favour of the less opaque s -> ComponentHTML f / Natural f (ComponentDSL s f g) types
  • The component construction functions use a record now
  • parentComponent' is unnecessary, instead the expected record for a parent component has a peek :: Maybe ... field now
  • InstalledState and installedState are now called ParentState and parentState
  • initializer and finalizer properties have gone, but there are now "lifecycle component" constructors
  • The ref property enables capturing a reference to a HTML element
  • runUI now requires an element rather than providing one that can be attached later
  • Halogen.Util has been reworked to make it more useful with the new runUI

Other changes

  • The guide has been moved to its own file an updated for the new changes, including a section on how component lifecycles work
  • A package.json is now included in each of the example projects so the virtual-dom dependency is present for each and so that they can be built individually

Much of the credit for this release goes to @natefaubion who did all the work for component lifecycles and has provided insightful commentary throughout.

Don't miss a new purescript-halogen release

NewReleases is sending notifications on new releases.