Skip to content

Commit 6c7394f

Browse files
committed
Revise changelog
1 parent fffe793 commit 6c7394f

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

doc/changelog/1.4.0.md

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
## 1.4.0
22

3+
* React 16.6 & 16.7 support
4+
* Added `React.Suspense`.
5+
For technical reasons (types, power, constraints) `React.lazy` is not added nor needed in Scala;
6+
use the new `AsyncCallback` instead.
7+
* The new `getDerivedStateFromError` has *not* been implemented, and cannot be until facebook/react#13986 is merged.
8+
* Add `React.memo` to add reusability to "functional" components
9+
310
* VDOM modernisation
411

512
React's VDOM capabilities increased drastically over a year ago in the upgrade from React 15 to 16.
@@ -15,7 +22,7 @@
1522
* To compose two `TagMod`s, use `TagMod(a, b)` instead of `a(b)`
1623
* To compose `VdomNode`s, either use `React.Fragment(a, b)` to result in something immediately renderable, or `TagMod(a, b)` if you plan to apply it to a tag.
1724
* VDOM tags now extends `VdomElement` directly - no need to coerce or call `.render` when caching
18-
* Tag building now 30% faster (but we're talking microseconds so negligible so why am I writing this in to the changelog?... life's a mystery)
25+
* Tag building now 30% faster (but we're talking microseconds so it's negligible so why am I writing this in to the changelog?... life's a mystery)
1926
* Fix subtle bug/puzzler where you could think you're modifying a tag but weren't --
2027
the confusing behaviour responsible will now no longer compile. ([#508](https://github.com/japgolly/scalajs-react/issues/508))
2128
* Collections get new implicit methods `mkReactFragment` and `toReactFragment` (similar to existing `mkTagMod` and `toTagMod`)
@@ -29,17 +36,6 @@
2936
it can even be composed to run sequentially or concurrently. In fact you can see an example
3037
of running a bunch of AJAX calls in parallel [here in this new demo](https://japgolly.github.io/scalajs-react/#examples/ajax-2).
3138

32-
* React 16.6 & 16.7 support
33-
* Added `React.Suspense`.
34-
For technical reasons (types, power, constraints) `React.lazy` is not added nor needed in Scala;
35-
use the new `AsyncCallback` instead.
36-
* The new `getDerivedStateFromError` has *not* been implemented, and cannot be until facebook/react#13986 is merged.
37-
* Add `React.memo` to add reusability to "functional" components
38-
39-
* `Reusability` & `Reusable` have been moved from the `extra` module, into `core`.
40-
1. It was required to implement the new `React.memo`
41-
2. It's necessary for using core React feature `shouldComponentUpdate` reasonably
42-
4339
* `Callback` changes
4440
* `.attemptTry` now catches all types of exception
4541
* Add `.memo` which memoises the result
@@ -56,9 +52,15 @@
5652
* `def validateStatusIs (Int) (AjaxException => Callback): Ajax`
5753
* `def validateStatusIsSuccessful (AjaxException => Callback): Ajax`
5854

59-
* Removed methods deprecated < 1.2.0
55+
* `Reusability` & `Reusable` have been moved from the `extra` module, into `core`.
56+
1. It was required to implement the new `React.memo`
57+
2. It's necessary for using core React feature `shouldComponentUpdate` reasonably
6058

61-
* Add `.mapRaw(Raw => Raw)` to components
59+
* Add `ReactDOM.hydrate`
60+
61+
* Add to components: `.mapRaw(Raw => Raw)`
62+
63+
* Removed methods deprecated < 1.2.0
6264

6365
* Dependency upgrades:
6466
* Cats 1.5.0
@@ -68,7 +70,9 @@
6870

6971
# Migration
7072

71-
* `Reusability` & `Reusable` have been moved from package `japgolly.scalajs.react.extra` to `japgolly.scalajs.react`.
73+
* If you added `import japgolly.scalajs.react.vdom.Implicits._` or similar to use components in certain contexts
74+
(eg. router config) you can delete now. No replacement needed.
75+
* `Reusability` & `Reusable` have been moved from package `japgolly.scalajs.react.extra` to `japgolly.scalajs.react`
7276

7377
```
7478
find . -type f -name '*.scala' -exec perl -pi -e '
@@ -84,8 +88,3 @@ find . -type f -name '*.scala' -exec perl -pi -e '
8488
8589
' {} +
8690
```
87-
88-
89-
# TODO
90-
91-
* Rename `.runNow()` to `.unsafeRunNow()`?

0 commit comments

Comments
 (0)