Releases: purescript-react/purescript-react-basic-hooks
Releases · purescript-react/purescript-react-basic-hooks
v4.2.2
v4.2.1
- Add some basic documentation to Render, Pure and Hook (@ford-prefect)
v4.2.0
Minor changes
- Expose reactChildren* functions (@i-am-the-slime)
v4.0.0
Major changes
- Nevermind, I added the ReactChildren type mentioned here. This is breaking because I removed the
unsafeComponentfunction added by v3.0.0.
v3.0.0
Major changes
- Add an additional constraint to
componentto disallow thechildrenprop, as it can cause runtime bugs when React chooses to wrap or unwrap arrays. This is easily mitigated in most cases by simply using another prop name, likecontent.
Minor changes
- Add
unsafeComponentwhich is identical tocomponentexcept for allowing unsafe usage of thechildrenprop. If you do need to use this, you will likely also need a little FFI and an opaquechildrentype to use with that FFI. Perhaps this library will support those types in the future, but this seems like a pretty uncommon edge case at the moment. For more info, see the React docs on interacting with thechildrenprop.
v2.0.1
v2.0.0
Major changes
- Removed
CreateComponentalias- more confusing than helpful
- Just use
Effect (ReactComponent props)
- Moved
Renderand related instances toReact.Basic.Hooks.Internal- probably won't break anything, it's all still re-exported from
React.Basic.Hooks
- probably won't break anything, it's all still re-exported from
UseAffis now a newtype instead of an alias- unlikely to break anything, improves error messages
Minor changes
- Added:
unsafeHook,unsafeRenderEffect,coerceHook- allows 3rd party hook creation and type aliasing