You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added `Simulation` for composition and abstraction of `ReactTestUtils.Simulate` procedures.
8
+
* Added `Sel` for easy DOM lookup in tests. Eg. `Sel(".inner a.active.new") findIn myComponent`.
9
+
* Experimental Scala-based component mixins. Three mixins are included:
10
+
*`OnUnmount` - Automatically run stuff when the component unmounts.
11
+
*`SetInterval` - Same as JS `window.setInterval` but automatically calls `clearInterval` on unmount.
12
+
*`Listenable` - A component is able to receive external data. Automatically registers to receive data on mount, and unregisters to stop on unmount.
13
+
14
+
See [ExperimentExamples](https://github.com/japgolly/scalajs-react/blob/master/example/src/main/scala/japgolly/scalajs/react/example/ExperimentExamples.scala) for a sample.
15
+
* Added `ScalazReact.ReactS.liftR` of type `(S ⇒ ReactST[M,S,A]) ⇒ ReactST[M,S,A]`.
16
+
* New method `ReactComponentB.domType` now allows you to specify the type returned by `.getDOMNode()` on your component.
17
+
18
+
##### Fixes & improvements
19
+
* Bugfix for tag attributes with primitive values.
20
+
Eg. `input(tpe := "checkbox", checked := false)` works now.
21
+
*`ScalazReact`'s `~~>` and `runState` functions are now lazy.
22
+
* Upgrade [Scalatags](https://github.com/lihaoyi/scalatags) to 0.4.2. Fixes sourcemap warnings.
23
+
24
+
##### API changes
25
+
Most people will be unaffected by this. Numerous changes were made to internal types making them more consistent _(see [TYPES.md](https://github.com/japgolly/scalajs-react/blob/master/TYPES.md))_.
26
+
*`ReactComponentB` accepts an optional DOM node type, which is propagated to `ReactComponentU` and `ReactComponentM`.
7
27
* Just as umounted Scala and JS components are denoted by `ReactComponentU` and `ReactComponentU_` respectively,
8
28
mounted Scala and JS components are now denoted by `ReactComponentM` and `ReactComponentM_`.
9
-
*`ReactComponentB` accepts an optional DOM node type, which is propagated to `ReactComponentU` and `ReactComponentM`.
10
29
* Type changes.
11
30
*`ReactComponentB` innards reworked. Use `ReactComponentB[P,S,B]` in place of `ReactComponentB[P]#B2[S]#B3[B]#B4[C]`.
12
31
*`CompCtor` → `ReactComponentC`
@@ -16,18 +35,13 @@ History
16
35
*`ReactComponentM` → `ReactComponentM_`
17
36
*`ComponentConstructor_` → `ReactComponentC_`
18
37
*`ComponentConstructor` → `ReactComponentCU`
19
-
* Renamed and deprecated the old:
38
+
39
+
##### Deprecated
40
+
* The following have been renamed, the old names deprecated:
20
41
*`ReactComponentB.create` → `build`
21
42
*`ReactComponentB.createU` → `buildU`
22
43
*`ReactComponentB.propsAlways` → `propsConst`
23
44
*`Nop` → `EmptyTag`
24
-
* Added `Simulation` for composition and abstraction of `ReactTestUtils.Simulate` procedures.
25
-
* Bugfix for tag attributes with primitive values.
26
-
Eg. `input(tpe := "checkbox", checked := false)` works now.
27
-
* Added `ScalazReact.ReactS.liftR` of type `(S ⇒ ReactST[M,S,A]) ⇒ ReactST[M,S,A]`.
28
-
*`ScalazReact`'s `~~>` and `runState` functions are now lazy.
29
-
* Upgrade [Scalatags](https://github.com/lihaoyi/scalatags) to 0.4.2.
30
-
* Added `Sel` to easily lookup DOM in your tests. [Examples](https://github.com/japgolly/scalajs-react/blob/master/test/src/test/scala/japgolly/scalajs/react/test/SelTest.scala).
0 commit comments