Skip to content

Releases: purescript-halogen/purescript-halogen

v0.6.1

15 Mar 13:26
Compare
Choose a tag to compare
  • Fixed a bug with the type of ref in Halogen.HTML.Properties.Indexed

v0.6.0 - Component lifecycles

15 Mar 12:25
Compare
Choose a tag to compare

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.

v0.5.18

26 Feb 11:12
Compare
Choose a tag to compare
  • Added multiple property (@zudov)

v0.5.17

24 Feb 22:40
Compare
Choose a tag to compare

v0.5.16

14 Feb 12:18
Compare
Choose a tag to compare
  • Added runChildF helper to extract the query from ChildF values

v0.5.15

06 Feb 19:20
Compare
Choose a tag to compare
  • Added the ability to send queries to every child of a component (@zudov)

v0.5.14

16 Jan 14:25
Compare
Choose a tag to compare
  • Relaxed eventSource and eventSource_ to use a MonadAff constraint rather than a concrete Aff
  • Relaxed the type of event handler properties to be of type i rather than f Unit

v0.5.13

11 Jan 16:21
Compare
Choose a tag to compare
  • Added set combinator for HalogenF queries

v0.5.12

09 Jan 17:42
Compare
Choose a tag to compare
  • Additional instances for transformers for the FunctorAff & FunctorEff classes

v0.5.11

09 Jan 17:06
Compare
Choose a tag to compare
  • Added FunctorEff and FunctorAff classes and instances to enable more convenient liftEff / liftAff usages