Repository navigation
Commit c9645bb
authored
build(deps): bump ReactiveUI.Binding to 8.3.0 (#4520)
## Summary
**ReactiveUI now brings ReactiveUI.Binding 8.3.0, which reads members
ReactiveUI.SourceGenerators writes.**
- Bump `BindingVersion` to 8.3.0 in `src/Directory.Packages.props`,
covering `ReactiveUI.Binding` and `ReactiveUI.Binding.Reactive`.
- README: drop the advice to use a `[Reactive]` partial property for
anything passed to `WhenAnyValue` (Binding 8.3.0 fixes that gap), and
mention the new diagnostic RXUIBIND021 where the README covers Binding's
analyzers.
- Fix a real RXUIBIND021 hit the new analyzer found in
`ReactiveUI.Samples.Maui`: `Username`, `Password`, `LoginButton` and
`CancelButton` are fields the MAUI XAML compiler writes into
`LoginPage`, not members ReactiveUI.SourceGenerators writes, so
`Bind`/`BindCommand` had no generated binding for them. Switch those
four calls to `BindUnsafe`/`BindCommandUnsafe`, and convert
`LoginViewModel`'s hand-rolled `UserName`/`Password` properties to
`[Reactive]` partial properties.
## Why
Picks up ReactiveUI.Binding 8.3.0, whose source generator now writes
bindings for `[Reactive]` fields and partial properties,
`[ReactiveCollection]`, `[BindableDerivedList]`, `[ReactiveCommand]` and
`[IReactiveObject]` members that ReactiveUI.SourceGenerators adds.
Building the repo against it with `-warnaserror` surfaced one real
RXUIBIND021 case, fixed above.
## Breaking changes
None.
## How this was verified
Full solution build with `-warnaserror` is clean on every target
framework, including the Windows-only ones cross-compiled on Linux.
Built and ran every test project and the Windows-only examples (WPF,
WinForms, WinUI, MAUI) on a real Windows host, including the fixed
`ReactiveUI.Samples.Maui`. Ran the documentation example output checks
against every example project that runs on Linux; all match their
expected output. `ReactiveUI.Device.Tests` was not run; it needs an
emulator, per this repo's own CI split.
## Notes for the reviewer
The `Directory.Packages.props` change only touches `BindingVersion`, to
avoid a merge conflict with the concurrent `ReactiveUI.SourceGenerators`
version bump on another branch. The `ReactiveUI.Samples.Maui` fix is the
only behavior change outside dependency and doc updates; the rest is
mechanical.
## Checklist
- [x] I have read the [Contribute
guide](https://www.reactiveui.net/contribute/index.html)
- [x] The PR title follows [Conventional
Commits](https://www.conventionalcommits.org/)
- [x] Tests cover this change, or the summary says why they do not
- [ ] New or changed public API has XML documentation1 parent a4baf2a commit c9645bb
4 files changed
Lines changed: 18 additions & 20 deletions
File tree
- src
- examples/ReactiveUI.Samples.Maui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | 150 | | |
154 | 151 | | |
155 | 152 | | |
156 | 153 | | |
157 | 154 | | |
158 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
159 | 158 | | |
160 | 159 | | |
161 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
30 | 34 | | |
31 | 35 | | |
32 | | - | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | | - | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | | - | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 56 | + | |
| 57 | + | |
60 | 58 | | |
61 | 59 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 60 | + | |
| 61 | + | |
67 | 62 | | |
68 | 63 | | |
69 | 64 | | |
| |||
0 commit comments