Releases: rescript-lang/rescript-react
Releases · rescript-lang/rescript-react
0.12.0-alpha.2
🚀 New Feature
- Added
React.lazy_.
💥 Breaking Change
- Requires ReScript 11.0.0-alpha.6 or newer.
🐛 Bug Fix
- Fixed children type for
Fragment,StrictModeandSuspense.
💅 Polish
- Removed experimental
SuspenseListcomponent.
0.12.0-alpha.1
🚀 New Feature
- Compatibility with ReScript 11 uncurried mode.
- Added
gapprop toReactDOMStyle.make.
💥 Breaking Change
- Removed
React.callbacktype.
🐛 Bug Fix
- Updated
React_V3compatibility module to define record fieldcurrentforref.
0.11.0
0.11.0-rc.3
- Changed
React.jsxKeyed(s),ReactDOM.jsxKeyed(s)having key as optional argument. - Changed
React.fragmentPropschildren field to optional. - Removed the helper functions for JSX v4 from
React.res. - Made
React.componentconversion function zero cost.
0.11.0-rc.2
- Fixed JSX PPX V3 backward compatibility.
0.11.0-rc.1
- Added React 18 bindings.
- Added binding for
React.isValidElement. - Added backgroundFilter prop in
ReactDOMStyle. - Relaxed React version requirement to v18.0.0+.
ReactDOM.domPropsis now an alias forJsxDOM.domProps(defined in the compiler repo)- Deprecated types
ReactDOM.props,ReactDOM.Props.props,ReactDOM.Props.domProps. - Deprecated
ReactDOM.stringToComponent.
0.11.0-alpha.1
RescriptReactErrorBoundarycomponent now implemented using@react.component, so it is compatible with JSX V4.ReactV3module added for backward compatibility to JSX V3. See the V3 compatibility mode- Fixed
react-dom/serverandreact-dom/test-utilsimports. - Fixed
createRootbindings. - Added
Keyboard.codebinding. - Renamed
Changes.mdtoCHANGELOG.mdto align with the rescript-compiler repo.
Breaking:
-
IMPORTANT The
Reactmodule has been modified in a breaking way to support the new JSX PPX V4. -
Removed the deprecation attribute from apis of the new jsx transform (introduced in React v17).
-
New version requirements:
- ReScript compiler V10.1+
- ReactJS v18.2.0+