Skip to content

Commit f9ffc57

Browse files
committed
CHANGELOG: Minor revision
1 parent e1e059d commit f9ffc57

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

doc/CHANGELOG-0.7.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
To ease migration, here is a script that perform 98% of the required changes for you:
44
https://gist.github.com/japgolly/c68482dbadb0077f550c
55

6+
#### Changes:
67

7-
#### Changes
8-
* Added a router! _(See the `extra` module)_.
98
* Moved `.experiment` into a new module called `extra`.
109
* Added a `ext-monocle` module with a few extensions for [Monocle](https://github.com/julien-truffaut/Monocle).
1110
* More supported React tags and attributes.
@@ -19,15 +18,20 @@ https://gist.github.com/japgolly/c68482dbadb0077f550c
1918
* `_modStateIOF`
2019
* Attr operator `~~>?` which is `~~>` but for optional callbacks.
2120
* Removed deprecated methods marked for removal in 0.7.0.
22-
* Deprecated `modStateO` and `modStateU`.
21+
* Deprecated `modStateO`, `modStateU`, `attr runs callback`.
2322

24-
##### Refs
23+
#### Router
24+
New in this release is a router, type-safe and written entirely in Scala.js, for Single-Page Applications.
25+
26+
See [extra/ROUTER.md](https://github.com/japgolly/scalajs-react/blob/master/extra/ROUTER.md) for details.
27+
28+
#### Refs
2529
* Refs can now be applied to components from the outside, prior to mounting. ([#44](https://github.com/japgolly/scalajs-react/issues/44))
2630
* Refs can now refer to components and keep their types intact.
2731
* Scala-based ReactComponent constructors now have `.set(key = ?, ref = ?)` with `.withKey(k)` being an alias for `.set(key = k)`.
2832
* Instances (not objects) of `Ref` renamed to `RefSimple`, `RefP` renamed to `RefParam`. Creating refs is unchanged, so `val r = Ref("hehe")` still works.
2933

30-
##### Scalatags / `.vdom` major changes
34+
#### Scalatags / `.vdom` major changes
3135
Scalatags has been removed as a dependency.
3236
It is instead now embedded directly and highly customised for React.
3337

@@ -67,6 +71,13 @@ def eg(key: String, name: String) =
6771
it is now recommended that you use prefixes to access tags and attributes.
6872
This means that you don't run into confusing error messages and IDE refactoring issues when using names like
6973
`id`, `a`, `key` for your variables.
74+
75+
The default prefixes (recommended) is available via `vdom.prefix_<^._` and it provides two prefixes.
76+
77+
1. `<` for tags. _(Example: `<.div`)_
78+
2. `^` for attributes and styles. _(Example: `^.onClick`)_
79+
80+
The above example becomes:
7081
```scala
7182
import japgolly.scalajs.react.vdom.prefix_<^._
7283

@@ -77,8 +88,7 @@ def eg(key: String, name: String) =
7788
"Hello ", name)
7889
```
7990

80-
If you prefer having all tags and attributes in scope without a prefix, then you can still do that.
81-
Just change your two `vdom` imports to this one:
91+
If you prefer having all tags and attributes in scope without a prefix, then you can still do that by using this import:
8292
```scala
8393
import japgolly.scalajs.react.vdom.all._
8494
```

0 commit comments

Comments
 (0)