Skip to content

Releases: purescript-react/purescript-react-basic-hooks

v4.2.2

28 Feb 19:14
6314a92
Compare
Choose a tag to compare

v4.2.1

26 Feb 02:25
a797ad5
Compare
Choose a tag to compare
  • Add some basic documentation to Render, Pure and Hook (@ford-prefect)

v4.2.0

24 Feb 23:14
2ae2054
Compare
Choose a tag to compare

Minor changes

v4.0.0

06 Nov 19:45
b2b75a7
Compare
Choose a tag to compare

Major changes

v3.0.0

06 Nov 19:29
b99fc56
Compare
Choose a tag to compare

Major changes

  • Add an additional constraint to component to disallow the children 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, like content.

Minor changes

  • Add unsafeComponent which is identical to component except for allowing unsafe usage of the children prop. If you do need to use this, you will likely also need a little FFI and an opaque children 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 the children prop.

v2.0.1

14 Aug 21:24
c9b464f
Compare
Choose a tag to compare

Patch changes

  • Removed outdated/redundant docs

v2.0.0

14 Aug 21:23
80600ec
Compare
Choose a tag to compare

Major changes

  • Removed CreateComponent alias
    • more confusing than helpful
    • Just use Effect (ReactComponent props)
  • Moved Render and related instances to React.Basic.Hooks.Internal
    • probably won't break anything, it's all still re-exported from React.Basic.Hooks
  • 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

v1.0.1

14 Aug 21:06
eb95b6d
Compare
Choose a tag to compare
  • Allow react-basic 11

v1.0.0

02 Aug 17:25
a7961dd
Compare
Choose a tag to compare

🎉 v1! 🎉

  • Support for react-basic 10
    • Removed Ref and Context, as they are now provided by react-basic