0.10.2 (commit log)
Adds new attributes:
integrity
nonce
reversed
React is now published to Bower in such a way that ReactDOMServer
is accessible.
ReactDOMServer
now appears in scalajs-react and its methods on React
have been deprecated.
To upgrade:
- Update your codebase to use
ReactDOMServer
with:
find . -name '*.scala' -type f -exec perl -pi -e \
's/(?<=React)([ .]+renderTo(?:String|StaticMarkup))(?!\w)/DOMServer$1/g' {} +
- Ensure that you change your dependencies in SBT to use Bower instead of NPM.
SBT snippet here.
- Added shortcuts for
<input>
DOM with type:<.input.{type}
.
Example:<.input.text(…)
can replace<.input(^.`type` := "text", …)
- Bugfix:
CallbackTo(…).flatten
usage wouldn't compile. - Bugfix: There were a number of
Event
methods missing and with incorrect signatures. (diff) - Added
ReactMouseEvent.targetsNewTab_?
to determine whether a mouse event (applied to a link), would open it in a new tab? - Added to
CallbackTo
object:sequence
sequenceO
traverse
traverseO
- Added to
CallbackOption
object:liftOptionCallback
liftOptionLikeCallback
sequence
sequenceO
traverse
traverseO
- Added type aliases to CompState:
{,Read,Write}Access{,D}, AccessRD
. - Deprecated and renamed:
StateAccessCB
→CompState.Access
StateAccessDirect
→CompState.AccessD
- Allow router-provided links to be opened in new tabs via the normal browser mechanisms (middle-click, ctrl-click).
- Add convenience methods to
router.BaseUrl
:BaseUrl.fromWindowUrl(String => String)
BaseUrl.until(String)
BaseUrl.until_#
← ReplacesBaseUrl(dom.window.location.href.takeWhile(_ != '#'))
- Add to
ExternalVar
andReusableVar
objects:s$(state, $)
.
- Add to component scopes:
modStateL
andsetStateL
. - Add to
ExternalVar
andReusableVar
objects:at(lens)(state, $)
.
- Add
Monad[CallbackOption]
.