Skip to content

Commit 36ed403

Browse files
committed
Update changelog and separate changelog for RCs
1 parent 2d1393a commit 36ed403

File tree

2 files changed

+104
-66
lines changed

2 files changed

+104
-66
lines changed

doc/changelog/2.0.0-RCs.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# 2.0.0-RC*x*
2+
3+
The full combined list of changes from v1.7.7 to v2.0.0 is [here](./2.0.0.md).
4+
5+
Contents:
6+
- [Changes in RC1](#changes-in-rc1)
7+
- [Changes in RC2](#changes-in-rc2)
8+
- [Changes in RC3](#changes-in-rc3)
9+
- [Changes in RC4](#changes-in-rc4)
10+
- [Changes in RC5](#changes-in-rc5)
11+
12+
13+
# Changes in RC1
14+
15+
[See here.](https://github.com/japgolly/scalajs-react/blob/v2.0.0-RC1/doc/changelog/2.0.0.md)
16+
17+
# Changes in RC2
18+
19+
* Bugfix in the `useCallbackWithDeps{,By}` hook
20+
21+
* Changed the pattern in hook signatures from `(mainArg: => A, deps: => D)` to `(deps: D)(mainArg: D => A)`.
22+
Affected methods:
23+
* `useCallbackWithDeps{,By}`
24+
* `useEffectWithDeps{,By}`
25+
* `useLayoutEffectWithDeps{,By}`
26+
* `useMemo{,By}`
27+
28+
# Changes in RC3
29+
30+
* Bugfixes:
31+
* Expose default sync effect instead of internal type in:
32+
* `SetStateFn(…)`
33+
* `ModStateFn(…)`
34+
* `ModStateWithPropsFn(…)`
35+
* `StateSnapshot` constructors should accept
36+
* `SetStateFn`
37+
* `ModStateFn`
38+
* `ModStateWithPropsFn`
39+
* `TimerSupport.install` had an infinite loop
40+
* `TriStateCheckbox`'s `onKeyDown` handler was calling `event.preventDefault()` on unhandled keys
41+
* Fix the Scala 3 version of `renderBackend` to support polymorphic backends
42+
*(e.g. `renderBackend[Backend[X]]` where `X` is a type already in scope)*
43+
* Support `CallbackOption[Unit]` being passed directly to event handling vdom
44+
45+
* Additions:
46+
* `TriStateCheckbox` now accepts an optional `Reusable[TagMod]` in its `Props` that will be applied to the `<input>`
47+
* Add `.dispatch` to `Callback` and `AsyncCallback` which schedules (-and-forgets) the callback to be run in the background
48+
49+
* Upgrade deps
50+
* Cats-effect to 3.2.2
51+
* Scala.js to 1.7.0
52+
* Microlibs to 3.0.1
53+
* UnivEq to 1.6.0
54+
55+
# Changes in RC4
56+
57+
* Support turning React warnings into runtime exceptions. There are a few ways to do this:
58+
* Via a [new config option](../CONFIG.md#testwarningsreact) for `ReactTestUtils`
59+
* [Manually](../TESTING.md#fatal-react-warnings)
60+
61+
* Document existing `debounce` methods to clarify you need to save them as a `val` and reuse them
62+
63+
* Add:
64+
* `AsyncCallback.debounce(duration): AsyncCallback[Unit]`
65+
* `Callback.debounce(duration): Callback`
66+
* `ScalaFnComponent.withReuse{,By}`
67+
* `ScalaFnComponent.withChildrenAndReuse{,By}`
68+
69+
* `ReactTestUtils` is now a `trait` as well as an `object` so that you can mix it into your own test utils collection
70+
71+
* Upgrade deps
72+
* Cats-effect to 3.2.9
73+
* Microlibs to 4.0.0
74+
* Scala.js to 1.7.1
75+
* scalajs-dom 2.0.0
76+
* UnivEq to 2.0.0
77+
78+
# Changes in RC5
79+
80+
* Add a new bundle called `core-bundle-cb_io` with provides core scalajs-react functionality with `Callback` as the default sync effect and `cats.effect.IO` as the default async effect. (Thanks [@rpiaggio](https://github.com/rpiaggio))

doc/changelog/2.0.0.md

Lines changed: 24 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 2.0.0-RC3
1+
# 2.0.0
22

33
Lots of big, juicy, modernising changes here.
44
Make sure you at least read the [migration](#migration) guide.
@@ -11,8 +11,7 @@ Contents:
1111
- [Changes: Backwards-Compatible](#changes-backwards-compatible)
1212
- [Changes: Auto-Migratable](#changes-auto-migratable)
1313
- [Migration](#migration)
14-
- [Changes in RC2](#changes-in-rc2)
15-
- [Changes in RC3](#changes-in-rc3)
14+
- [Changes in RCs](#changes-in-rcs)
1615
- [Thanks](#thanks)
1716

1817

@@ -55,6 +54,13 @@ Contents:
5554
* Global settings have been fixed and revamped. See the [new guide here](../CONFIG.md).
5655
This allows you to produce different dev and prod builds without making code changes.
5756

57+
* Support turning React warnings into runtime exceptions. There are a few ways to do this:
58+
* Via a [new config option](../CONFIG.md#testwarningsreact) for `ReactTestUtils`
59+
* [Manually](../TESTING.md#fatal-react-warnings)
60+
61+
* Upgrade scala-js-dom to 2.0.0. This is mostly source-compatible with v1.2.0, but isn't binary-compatible.
62+
See the [scala-js-dom v2 release notes](https://github.com/scala-js/scala-js-dom/releases/tag/v2.0.0).
63+
5864

5965
# Minor New Features
6066

@@ -155,7 +161,14 @@ Contents:
155161
* `CallbackTo`
156162
* `CallbackOption`
157163

158-
* Add `withFilter` to `Callback(To)` and `AsyncCallback`
164+
* Additions
165+
* `AsyncCallback.debounce(duration): AsyncCallback[Unit]`
166+
* `Callback.debounce(duration): Callback`
167+
* `ScalaFnComponent.withReuse{,By}`
168+
* `ScalaFnComponent.withChildrenAndReuse{,By}`
169+
* Add a `withFilter` method to `Callback(To)` and `AsyncCallback`
170+
* Add a `dispatch` method to `Callback` and `AsyncCallback` which schedules (-and-forgets) the callback to be run in the background
171+
* `TriStateCheckbox` now accepts an optional `Reusable[TagMod]` in its `Props` that will be applied to the `<input>`
159172

160173
* Bug fixes:
161174
* ScalaFnComponents now use `VdomNode`s instead of `VdomElement`s
@@ -165,14 +178,18 @@ Contents:
165178

166179
* Avoid boxing in `React.Context` and `getSnapshotBeforeUpdate`
167180

181+
* `ReactTestUtils` is now a `trait` as well as an `object` so that you can mix it into your own test utils collection
182+
168183
* `Px[A]#extract` now takes an implicit `Px.Extract[A](Px[A] => A)` argument instead of being a macro.
169184
If you're using this exotic feature, you can now provide your own `Px.Extract` typeclass instances.
170185

171186
* Backwards-compatible dependency upgrades:
172187
* Cats to 2.6.1
188+
* Cats Effect to 3.2.9
173189
* Monocle (v2) to 2.1.0
190+
* Monocle (v3) to 3.1.0
174191
* Scala to 2.13.6
175-
* Scala.js to 1.7.0
192+
* Scala.js to 1.7.1
176193
* Sourcecode to 0.2.7
177194

178195

@@ -314,70 +331,11 @@ You can run the script in the Migration section at the bottom of the page to aut
314331
```
315332

316333

317-
# Changes in RC2
318-
319-
* Bugfix in the `useCallbackWithDeps{,By}` hook
320-
* Changed the pattern in hook signatures from `(mainArg: => A, deps: => D)` to `(deps: D)(mainArg: D => A)`.
321-
Affected methods:
322-
* `useCallbackWithDeps{,By}`
323-
* `useEffectWithDeps{,By}`
324-
* `useLayoutEffectWithDeps{,By}`
325-
* `useMemo{,By}`
326-
327-
328-
# Changes in RC3
329-
330-
* Bugfixes:
331-
* Expose default sync effect instead of internal type in:
332-
* `SetStateFn(…)`
333-
* `ModStateFn(…)`
334-
* `ModStateWithPropsFn(…)`
335-
* `StateSnapshot` constructors should accept
336-
* `SetStateFn`
337-
* `ModStateFn`
338-
* `ModStateWithPropsFn`
339-
* `TimerSupport.install` had an infinite loop
340-
* `TriStateCheckbox`'s `onKeyDown` handler was calling `event.preventDefault()` on unhandled keys
341-
* Fix the Scala 3 version of `renderBackend` to support polymorphic backends
342-
*(e.g. `renderBackend[Backend[X]]` where `X` is a type already in scope)*
343-
* Support `CallbackOption[Unit]` being passed directly to event handling vdom
344-
345-
* Additions:
346-
* `TriStateCheckbox` now accepts an optional `Reusable[TagMod]` in its `Props` that will be applied to the `<input>`
347-
* Add `.dispatch` to `Callback` and `AsyncCallback` which schedules (-and-forgets) the callback to be run in the background
348-
349-
* Upgrade deps
350-
* Cats-effect to 3.2.2
351-
* Scala.js to 1.7.0
352-
* Microlibs to 3.0.1
353-
* UnivEq to 1.6.0
354-
355-
356-
# Changes in RC4
357-
358-
* Support turning React warnings into runtime exceptions. There are a few ways to do this:
359-
* Via a [new config option](../CONFIG.md#testwarningsreact) for `ReactTestUtils`
360-
* [Manually](../TESTING.md#fatal-react-warnings)
361-
362-
* Document existing `debounce` methods to clarify you need to save them as a `val` and reuse them
363-
* Add:
364-
* `AsyncCallback.debounce(duration): AsyncCallback[Unit]`
365-
* `Callback.debounce(duration): Callback`
366-
* `ScalaFnComponent.withReuse{,By}`
367-
* `ScalaFnComponent.withChildrenAndReuse{,By}`
368-
* `ReactTestUtils` is now a `trait` as well as an `object` so that you can mix it into your own test utils collection
369-
* Upgrade deps
370-
* Cats-effect to 3.2.9
371-
* Microlibs to 4.0.0
372-
* Scala.js to 1.7.1
373-
* scalajs-dom 2.0.0
374-
* UnivEq to 2.0.0
334+
# Changes in RCs
375335

336+
If you're interested in the changes between each RC release, [see here](./2.0.0-RCs.md).
376337
377-
# Changes in RC5
378-
* Add a new bundle called `core-bundle-cb_io` with provides core scalajs-react functionality with `Callback` as the default sync effect and `cats.effect.IO` as the default async effect. (Thanks [@rpiaggio](https://github.com/rpiaggio))
379338
380-
s
381339
# Thanks
382340
383341
A lot of this was kindly sponsored by [Gemini](https://www.gemini.edu/)/[NOIRLab](https://nationalastro.org/)/[AURA](https://www.aura-astronomy.org/).

0 commit comments

Comments
 (0)