Releases: purescript-halogen/purescript-halogen
Releases · purescript-halogen/purescript-halogen
v0.6.1
v0.6.0 - Component lifecycles
Breaking changes:
- Dropped the old
Render
,Eval
,Peek
synonyms in favour of the less opaques -> 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 apeek :: Maybe ...
field nowInstalledState
andinstalledState
are now calledParentState
andparentState
initializer
andfinalizer
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 laterHalogen.Util
has been reworked to make it more useful with the newrunUI
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 thevirtual-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
v0.5.17
- Fixed
readonly
property name (@cryogenian)