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
unsafeComponent
function added by v3.0.0.
v3.0.0
Major changes
- Add an additional constraint to
component
to disallow thechildren
prop, 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
unsafeComponent
which is identical tocomponent
except for allowing unsafe usage of thechildren
prop. If you do need to use this, you will likely also need a little FFI and an opaquechildren
type 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 thechildren
prop.
v2.0.1
v2.0.0
Major changes
- Removed
CreateComponent
alias- more confusing than helpful
- Just use
Effect (ReactComponent props)
- Moved
Render
and 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
UseAff
is 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