Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.57 KB

0.6.0.md

File metadata and controls

29 lines (24 loc) · 1.57 KB

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:

Scala 2.10 is no longer supported.

If this affects you please come to issue #39 to discuss, or continue to using the 0.5.x series.

Other changes in this release:
  • Deprecated ReactOutput and VDom in favour of ReactElement or in rare cases, ReactNode. (glossary)
  • .asJsArray: Seq[A] → JArray[A] renamed to toJsArray
  • .toJsArray: Seq[A] → JArray[ReactElement] is no longer needed.
  • Renamed ComponentSpec to ReactComponentSpec. (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' {} +