Skip to content

Releases: rescript-lang/rescript-react

0.13.0

25 Jul 06:09
654aa4b
Compare
Choose a tag to compare

πŸ’₯ Breaking Change

  • Replace usages of %external by binding to globalThis. This is to support upcoming ReScript 12 versions. For older browsers, it may be necessary to polyfill globalThis.

πŸ› Bug Fix

  • Remove hardcoded require so it works in both common js and ES module modes. (#117)

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.