0.9.2 (commit log)
- Support for JS components. See USAGE.md for details.
- Add
ReactComponentB.initialStateC
which provides access to the component (albeit without theBackend
type set).
An interesting application is self-managing state, a minimalistic example of which you can read in SelfManagedStateTest.scala. Note that self-managed state cannot be initialised withval
s in aBackend
, a significant limitation. - Add
onError
attribute for use with<img>
. - Add
ReusableVar.toExternalVar
.
- Added
Reusability.caseClass[A]
macro and deprecatedReusability.caseclassN(A.unapply)
.
Also comes withcaseClassDebug[A]
which shows you the code it generates. - In the Router2 route-building DSL, added
caseClass[A]
and deprecatedcaseclassN(A)(A.unapply)
.
Also comes withcaseClassDebug[A]
which shows you the code it generates. - Facades
React
andReactTestUtils
are now also traits. - On
ComponentScope
s, deprecated and renamed:focusState
tozoom
.focusStateL
tozoomL
.focusStateId
tolift
.
- Test simulation data objects
{Change,Keyboard,Mouse}EventData
no longer wrap args inUndefOr
withundefined
as the default, because it crashes PhantomJS. All args have default values now.
Migration commands: (run them in order) ```sh # Reusability.caseClass find . -name '*.scala' -type f -exec perl -pi -e 's/Reusability\.caseclass\d+\s*\(\s*(\S+)\s*\.\s*unapply\s*\)/Reusability.caseClass[$1]/' {} +
find . -name '.scala' -type f -exec perl -pi -e 's/.caseclass\d+\s(\s*(\S+)\s*)\s*([^)]+.\sunapply\s)/.caseClass[$1]/' {} +
find . -name '.scala' -type f -exec perl -pi -e 's/focusStateId/lift/g' {} + find . -name '.scala' -type f -exec perl -pi -e 's/focusState/zoom/g' {} +