Skip to content

chore(deps): update reactiveui to v28 - autoclosed - #509

Closed
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-reactiveui
Closed

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-reactiveui

Conversation

@renovate

@renovate renovate Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
ReactiveUI (source) 27.0.1 → 28.0.0 age confidence
ReactiveUI.Maui (source) 27.0.1 → 28.0.0 age confidence
ReactiveUI.Reactive (source) 27.0.1 → 28.0.0 age confidence

Release Notes

reactiveui/reactiveui (ReactiveUI)

v28.0.0

Compare Source

Overview

ReactiveUI 28.0.0 moves every reflection-based and AOT-unsafe API out of the core and platform packages into new opt-in .Unsafe packages. The main packages are now clean for trimming and Native AOT. ReactiveUI.SourceGenerators 7.1.0 adds compile-time replacements for the APIs that moved, so most apps can drop the reflection instead of carrying it.

💥 Why this release is breaking

Before 28.0.0, the core packages shipped APIs marked [RequiresUnreferencedCode] and [RequiresDynamicCode]. On Apple platforms the ...Unsafe view hosts raised IL3050 warnings in every Native AOT app, even apps that never used them, and the app could not suppress those warnings (#​4561).

The fix is to keep those APIs out of the assemblies that every app references. If your code calls one of them, it no longer compiles against the core package alone. You have two ways forward:

  1. Add the matching .Unsafe package. The types keep their names and namespaces, so in most cases a package reference and a rebuild is all you need.
  2. Switch to the compile-time alternative in ReactiveUI.SourceGenerators 7.1.0, described below. This is the recommended path for trimmed and Native AOT apps.
New opt-in packages
Package .Reactive variant
ReactiveUI.Unsafe ReactiveUI.Unsafe.Reactive
ReactiveUI.Wpf.Unsafe ReactiveUI.Wpf.Unsafe.Reactive
ReactiveUI.Winforms.Unsafe ReactiveUI.Winforms.Unsafe.Reactive
ReactiveUI.WinUI.Unsafe ReactiveUI.WinUI.Unsafe.Reactive
ReactiveUI.Maui.Unsafe ReactiveUI.Maui.Unsafe.Reactive
ReactiveUI.AndroidX.Unsafe ReactiveUI.AndroidX.Unsafe.Reactive

These packages are not trimmable and not AOT compatible by design. Apps that stay trim and AOT safe do not need them.

What moved, and what to use instead
API that moved Now in Compile-time alternative
ViewModelViewHostUnsafe, RoutedViewHostUnsafe, AutoDataTemplateBindingHookUnsafe, ViewModelControlHostUnsafe, RoutedControlHostUnsafe The platform .Unsafe package (ReactiveUI.Unsafe for Apple and Android) ViewModelViewHost and RoutedViewHost with [RegisterView]
RegisterViewsForViewModels(assembly) and WithViewsFromAssembly(assembly) ReactiveUI.Unsafe [RegisterView] and RegisterGeneratedViews()
AutoPersist and AutoPersistCollection overloads without metadata ReactiveUI.Unsafe [AutoPersist] and the overloads that take AutoPersistMetadata
ReactiveProperty<T>.AddValidation(() => Property) ReactiveUI.Unsafe [ReactiveValidation], or the new AddValidation(displayName, params ValidationAttribute[])
Untyped ISuspensionHost members: GetAppState<T>(), ObserveAppState<T>(), SetupDefaultSuspendResume() ReactiveUI.Unsafe ISuspensionHost<TAppState> with a source-generated JsonTypeInfo<TAppState>
Android ControlFetcherMixins (WireUpControls, GetControl), ResolveStrategy, LayoutViewHostUnsafe, ReactiveViewHostUnsafe ReactiveUI.Unsafe and ReactiveUI.AndroidX.Unsafe [WireUpControls]
Suspension drivers

ISuspensionDriver now only has the JsonTypeInfo<T> members. The reflection-based LoadState() and SaveState<T>(T) moved to a new interface, IUnsafeSuspensionDriver, in ReactiveUI.Unsafe.

  • A custom driver that only needs the typed members needs no change beyond removing the two reflection methods if you no longer want them.
  • A custom driver that must keep reflection-based serialization should implement IUnsafeSuspensionDriver.
  • DummySuspensionDriverUnsafe, BundleSuspensionDriverUnsafe (Android) and AppSupportJsonSuspensionDriverUnsafe (Apple) are the reflection-capable twins of the built-in drivers.
  • With ReactiveUI.Unsafe referenced, the untyped SetupDefaultSuspendResume() still finds the driver the platform registered, and the untyped GetAppState<T>() still loads state for a host that was set up through the typed overload.
Other changes in this release
  • New reflection-free ReactivePropertyMixins.AddValidation(params ValidationAttribute[]) and AddValidation(string? displayName, params ValidationAttribute[]) in the core package.
  • IReactiveUIBuilder.WithViewsFromAssembly is no longer an interface member. It is an extension method in ReactiveUI.Unsafe.
  • ReactiveUI.Binding is updated to 12.1.0 and ReactiveUI.Primitives to 10.2.3.

✨ Automating the wiring with ReactiveUI.SourceGenerators 7.1.0

ReactiveUI.SourceGenerators 7.1.0 adds four generators. Each one replaces a piece of wiring that used to need reflection at run time, or careful hand-written code, with code generated at build time.

[RegisterView]: view registration without assembly scanning

Mark each view. The generator writes one RegisterGeneratedViews() extension method that registers them all. [RegisterView<TViewModel>] also takes a contract and a singleton flag.

[RegisterView]
public sealed class PlaylistView : IViewFor<PlaylistViewModel> { /* ... */ }

[RegisterView<PlaylistViewModel>(Contract = "compact", IsSingleton = true)]
public sealed class CompactPlaylistView : IViewFor<PlaylistViewModel> { /* ... */ }

// At startup, in place of WithViewsFromAssembly(...):
builder.RegisterGeneratedViews().BuildApp();
[AutoPersist]: persistence metadata without reflection

Add [AutoPersist] to a partial [DataContract] class. The generator writes a static AutoPersistMetadata property that lists the [DataMember] properties, so AutoPersist never has to inspect the type at run time.

[DataContract]
[AutoPersist]
public sealed partial class Note : ReactiveObject
{
    [DataMember]
    public string Title { get; set => this.RaiseAndSetIfChanged(ref field, value); } = string.Empty;
}

note.AutoPersist(SaveAsync, Note.AutoPersistMetadata, TimeSpan.FromSeconds(3));
[ReactiveValidation]: DataAnnotations on ReactiveProperty<T> without expressions

Add [ReactiveValidation] to a partial class. The generator writes a ConfigureValidation() method that applies each property's validation attributes and its [Display(Name = ...)] through the new reflection-free AddValidation overload.

[ReactiveValidation]
public sealed partial class SignupModel
{
    public SignupModel() => ConfigureValidation();

    [Display(Name = "Student Name")]
    [Required(ErrorMessage = "Enter the student's name.")]
    public ReactiveProperty<string> Name { get; } = new(string.Empty);

    [Range(8, 18)]
    public ReactiveProperty<int> Age { get; } = new(5);
}
[WireUpControls]: Android control wiring without resource reflection

The attributes live in the ReactiveUI.SourceGenerators.Android namespace. The generator writes a WireUpControls() method that calls FindViewById<T>(Resource.Id.*) for each control property. Fragments get WireUpControls(View rootView). Use [WireUpResource("id")] when the resource name differs from the property name, and [IgnoreResource] to skip a property.

[WireUpControls]
public sealed partial class AbsenceActivity : ReactiveAppCompatActivity<AbsenceViewModel>
{
    [WireUpResource("statusLabel")]
    public TextView? StatusText { get; set; }

    [IgnoreResource]
    public TextView? ScratchLabel { get; set; }

    protected override void OnCreate(Bundle? savedInstanceState)
    {
        base.OnCreate(savedInstanceState);
        SetContentView(Resource.Layout.activity_absence);
        WireUpControls();
    }
}

Runnable versions of all four examples are in src/examples/Documentation.

🗞️ What's Changed

💥 Breaking Changes
🐛 Fixes
📦 Dependencies

🔗 Full Changelog: reactiveui/ReactiveUI@27.0.1...28.0.0

🙌 Contributions

💖 Thanks to all the contributors: @​glennawatson

Automated services that contributed: renovate[bot]


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/major-reactiveui branch 3 times, most recently from 37e08ad to 1bc796b Compare October 6, 2026 08:23
@renovate renovate Bot changed the title chore(deps): update reactiveui to v25 chore(deps): update reactiveui (major) Oct 6, 2026
@renovate
renovate Bot force-pushed the renovate/major-reactiveui branch 3 times, most recently from b563266 to 01da860 Compare October 13, 2026 04:40
@renovate
renovate Bot force-pushed the renovate/major-reactiveui branch from 01da860 to 39a8918 Compare October 27, 2026 00:46
@renovate renovate Bot changed the title chore(deps): update reactiveui (major) chore(deps): update reactiveui to v26 Oct 27, 2026
@renovate
renovate Bot force-pushed the renovate/major-reactiveui branch from 39a8918 to c7a38f6 Compare November 18, 2026 22:09
@renovate renovate Bot changed the title chore(deps): update reactiveui to v26 chore(deps): update reactiveui to v27 Nov 18, 2026
@renovate
renovate Bot force-pushed the renovate/major-reactiveui branch from c7a38f6 to 8c68e87 Compare November 20, 2026 03:58
@renovate renovate Bot changed the title chore(deps): update reactiveui to v27 chore(deps): update reactiveui to v27 - autoclosed Nov 21, 2026
@renovate renovate Bot closed this Nov 21, 2026
@renovate
renovate Bot deleted the renovate/major-reactiveui branch November 21, 2026 06:27
@renovate renovate Bot changed the title chore(deps): update reactiveui to v27 - autoclosed chore(deps): update reactiveui to v28 Nov 25, 2026
@renovate renovate Bot reopened this Nov 25, 2026
@renovate
renovate Bot force-pushed the renovate/major-reactiveui branch from 8c68e87 to bdbf814 Compare November 25, 2026 11:47
@sonarqubecloud

Copy link
Copy Markdown

@renovate renovate Bot changed the title chore(deps): update reactiveui to v28 chore(deps): update reactiveui to v28 - autoclosed Nov 27, 2026
@renovate renovate Bot closed this Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants