0.6.0 (commit log)
This release brings scalajs-react in line with React 0.12. React version 0.12.0 or later is now required.
Read about React 0.12 changes here:
- https://github.com/facebook/react/releases/tag/v0.12.0
- https://facebook.github.io/react/blog/2014/10/28/react-v0.12.html
- https://facebook.github.io/react/docs/glossary.html
If this affects you please come to issue #39 to discuss, or continue to using the 0.5.x series.
- Deprecated
ReactOutput
andVDom
in favour ofReactElement
or in rare cases,ReactNode
. (glossary) .asJsArray: Seq[A] → JArray[A]
renamed totoJsArray
.toJsArray: Seq[A] → JArray[ReactElement]
is no longer needed.- Renamed
ComponentSpec
toReactComponentSpec
. (Internal. Extremely unlikely anyone using it directly.) - Changed signatures of
ReactS.callback
and brethren from(c)(a)
to(a,c)
. - Renamed
ReactS
methods for consistency and added a few missing ones.
Here are a few commands to ease migration.
find -name '*.scala' -exec perl -pi -e 's/(?<!\w)(vdom\.)?ReactOutput(?!\w)/ReactElement/g' {} +
find -name '*.scala' -exec perl -pi -e 's/(?<!\w)VDom(?!\w)/ReactElement/g' {} +
find -name '*.scala' -exec perl -pi -e 's/(?<!\w)asJsArray(?!\w)/toJsArray/g' {} + // careful...
find -name '*.scala' -exec perl -pi -e 's/(?<=[ .]render)Component//g' {} +