Skip to content

Commit debc18b

Browse files
committed
Update change log
1 parent ed67a31 commit debc18b

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

HISTORY.md

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,31 @@
11
History
22
=======
33

4-
### 0.5.0
4+
### 0.5.0 ([commit log](https://github.com/japgolly/scalajs-react/compare/v0.4.1...v0.5.0))
55

6-
* Documented [most types](https://github.com/japgolly/scalajs-react/blob/master/TYPES.md).
6+
##### New features
7+
* 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`.
727
* Just as umounted Scala and JS components are denoted by `ReactComponentU` and `ReactComponentU_` respectively,
828
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`.
1029
* Type changes.
1130
* `ReactComponentB` innards reworked. Use `ReactComponentB[P,S,B]` in place of `ReactComponentB[P]#B2[S]#B3[B]#B4[C]`.
1231
* `CompCtor``ReactComponentC`
@@ -16,18 +35,13 @@ History
1635
* `ReactComponentM``ReactComponentM_`
1736
* `ComponentConstructor_``ReactComponentC_`
1837
* `ComponentConstructor``ReactComponentCU`
19-
* Renamed and deprecated the old:
38+
39+
##### Deprecated
40+
* The following have been renamed, the old names deprecated:
2041
* `ReactComponentB.create``build`
2142
* `ReactComponentB.createU``buildU`
2243
* `ReactComponentB.propsAlways``propsConst`
2344
* `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).
3145

3246
### 0.4.1 ([commit log](https://github.com/japgolly/scalajs-react/compare/v0.4.0...v0.4.1))
3347

0 commit comments

Comments
 (0)