Skip to content

Releases: rescript-lang/rescript-react

0.12.2

26 May 17:41
15c7f0d
Compare
Choose a tag to compare
  • Fix incorrect usage of @uncurry.
  • bsconfig.json -> rescript.json.

0.12.1

02 Mar 18:16
bc0d138
Compare
Choose a tag to compare
  • Undeprecate numbered hooks for a smoother upgrading experience.

0.12.0

02 Mar 18:15
a8a4a2f
Compare
Choose a tag to compare
  • Requires ReScript 11.0.0 or newer.

0.12.0-alpha.3

03 Jul 09:53
a51c275
Compare
Choose a tag to compare
0.12.0-alpha.3 Pre-release
Pre-release

💥 Breaking Change

  • Deprecated use*N functions in favor of changing the signature of the main hook function.
    • For example, useEffect instead of useEffectN e.g. useEffect3(f, (a, b, c)) -> useEffect(f, (a, b, c))
    • The affected hooks include useEffect, useLayoutEffect, useCallback, useMemo, useImperativeHandle, useInsertionEffect
    • With this change, it is now possible to pass any value as the second argument 'deps. In case you pass an invalid value, you will get a warning from React at runtime. You should be using one of the following values for the dependency array:
      • 0 dependencies: []
      • 1 dependency: [a]
      • more than 1 dependency: (a, b, ...)
  • For calling useEffect, useLayoutEffect etc. without a dependency array (meaning that the effect is executed on every render), there are now separate bindings useEffectOnEveryRender, useLayoutEffectOnEveryRender etc.

0.12.0-alpha.2

03 May 17:52
Compare
Choose a tag to compare
0.12.0-alpha.2 Pre-release
Pre-release

🚀 New Feature

  • Added React.lazy_.

💥 Breaking Change

  • Requires ReScript 11.0.0-alpha.6 or newer.

🐛 Bug Fix

  • Fixed children type for Fragment, StrictMode and Suspense.

💅 Polish

  • Removed experimental SuspenseList component.

0.12.0-alpha.1

03 May 17:52
Compare
Choose a tag to compare
0.12.0-alpha.1 Pre-release
Pre-release

🚀 New Feature

  • Compatibility with ReScript 11 uncurried mode.
  • Added gap prop to ReactDOMStyle.make.

💥 Breaking Change

  • Removed React.callback type.

🐛 Bug Fix

  • Updated React_V3 compatibility module to define record field current for ref.

0.11.0

29 Jan 20:28
Compare
Choose a tag to compare

No changes compared to rc.3.

0.11.0-rc.3

01 Nov 07:24
Compare
Choose a tag to compare
0.11.0-rc.3 Pre-release
Pre-release
  • Changed React.jsxKeyed(s), ReactDOM.jsxKeyed(s) having key as optional argument.
  • Changed React.fragmentProps children field to optional.
  • Removed the helper functions for JSX v4 from React.res.
  • Made React.component conversion function zero cost.

0.11.0-rc.2

21 Oct 08:37
Compare
Choose a tag to compare
0.11.0-rc.2 Pre-release
Pre-release
  • Fixed JSX PPX V3 backward compatibility.

0.11.0-rc.1

19 Oct 08:54
Compare
Choose a tag to compare
0.11.0-rc.1 Pre-release
Pre-release
  • Added React 18 bindings.
  • Added binding for React.isValidElement.
  • Added backgroundFilter prop in ReactDOMStyle.
  • Relaxed React version requirement to v18.0.0+.
  • ReactDOM.domProps is now an alias for JsxDOM.domProps (defined in the compiler repo)
  • Deprecated types ReactDOM.props, ReactDOM.Props.props, ReactDOM.Props.domProps.
  • Deprecated ReactDOM.stringToComponent.