Repository navigation
chore(deps): update reactiveui to v28 - autoclosed - #509
Closed
renovate[bot] wants to merge 1 commit into
Closed
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/major-reactiveui
branch
3 times, most recently
from
October 6, 2026 08:23
37e08ad to
1bc796b
Compare
renovate
Bot
force-pushed
the
renovate/major-reactiveui
branch
3 times, most recently
from
October 13, 2026 04:40
b563266 to
01da860
Compare
renovate
Bot
force-pushed
the
renovate/major-reactiveui
branch
from
October 27, 2026 00:46
01da860 to
39a8918
Compare
renovate
Bot
force-pushed
the
renovate/major-reactiveui
branch
from
November 18, 2026 22:09
39a8918 to
c7a38f6
Compare
renovate
Bot
force-pushed
the
renovate/major-reactiveui
branch
from
November 20, 2026 03:58
c7a38f6 to
8c68e87
Compare
renovate
Bot
force-pushed
the
renovate/major-reactiveui
branch
from
November 25, 2026 11:47
8c68e87 to
bdbf814
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This PR contains the following updates:
27.0.1→28.0.027.0.1→28.0.027.0.1→28.0.0Release Notes
reactiveui/reactiveui (ReactiveUI)
v28.0.0Compare 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
.Unsafepackages. The main packages are now clean for trimming and Native AOT.ReactiveUI.SourceGenerators7.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...Unsafeview hosts raisedIL3050warnings 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:
.Unsafepackage. The types keep their names and namespaces, so in most cases a package reference and a rebuild is all you need.ReactiveUI.SourceGenerators7.1.0, described below. This is the recommended path for trimmed and Native AOT apps.New opt-in packages
.ReactivevariantReactiveUI.UnsafeReactiveUI.Unsafe.ReactiveReactiveUI.Wpf.UnsafeReactiveUI.Wpf.Unsafe.ReactiveReactiveUI.Winforms.UnsafeReactiveUI.Winforms.Unsafe.ReactiveReactiveUI.WinUI.UnsafeReactiveUI.WinUI.Unsafe.ReactiveReactiveUI.Maui.UnsafeReactiveUI.Maui.Unsafe.ReactiveReactiveUI.AndroidX.UnsafeReactiveUI.AndroidX.Unsafe.ReactiveThese 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
ViewModelViewHostUnsafe,RoutedViewHostUnsafe,AutoDataTemplateBindingHookUnsafe,ViewModelControlHostUnsafe,RoutedControlHostUnsafe.Unsafepackage (ReactiveUI.Unsafefor Apple and Android)ViewModelViewHostandRoutedViewHostwith[RegisterView]RegisterViewsForViewModels(assembly)andWithViewsFromAssembly(assembly)ReactiveUI.Unsafe[RegisterView]andRegisterGeneratedViews()AutoPersistandAutoPersistCollectionoverloads without metadataReactiveUI.Unsafe[AutoPersist]and the overloads that takeAutoPersistMetadataReactiveProperty<T>.AddValidation(() => Property)ReactiveUI.Unsafe[ReactiveValidation], or the newAddValidation(displayName, params ValidationAttribute[])ISuspensionHostmembers:GetAppState<T>(),ObserveAppState<T>(),SetupDefaultSuspendResume()ReactiveUI.UnsafeISuspensionHost<TAppState>with a source-generatedJsonTypeInfo<TAppState>ControlFetcherMixins(WireUpControls,GetControl),ResolveStrategy,LayoutViewHostUnsafe,ReactiveViewHostUnsafeReactiveUI.UnsafeandReactiveUI.AndroidX.Unsafe[WireUpControls]Suspension drivers
ISuspensionDrivernow only has theJsonTypeInfo<T>members. The reflection-basedLoadState()andSaveState<T>(T)moved to a new interface,IUnsafeSuspensionDriver, inReactiveUI.Unsafe.IUnsafeSuspensionDriver.DummySuspensionDriverUnsafe,BundleSuspensionDriverUnsafe(Android) andAppSupportJsonSuspensionDriverUnsafe(Apple) are the reflection-capable twins of the built-in drivers.ReactiveUI.Unsafereferenced, the untypedSetupDefaultSuspendResume()still finds the driver the platform registered, and the untypedGetAppState<T>()still loads state for a host that was set up through the typed overload.Other changes in this release
ReactivePropertyMixins.AddValidation(params ValidationAttribute[])andAddValidation(string? displayName, params ValidationAttribute[])in the core package.IReactiveUIBuilder.WithViewsFromAssemblyis no longer an interface member. It is an extension method inReactiveUI.Unsafe.ReactiveUI.Bindingis updated to 12.1.0 andReactiveUI.Primitivesto 10.2.3.✨ Automating the wiring with ReactiveUI.SourceGenerators 7.1.0
ReactiveUI.SourceGenerators7.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 scanningMark each view. The generator writes one
RegisterGeneratedViews()extension method that registers them all.[RegisterView<TViewModel>]also takes a contract and a singleton flag.[AutoPersist]: persistence metadata without reflectionAdd
[AutoPersist]to a partial[DataContract]class. The generator writes a staticAutoPersistMetadataproperty that lists the[DataMember]properties, soAutoPersistnever has to inspect the type at run time.[ReactiveValidation]: DataAnnotations onReactiveProperty<T>without expressionsAdd
[ReactiveValidation]to a partial class. The generator writes aConfigureValidation()method that applies each property's validation attributes and its[Display(Name = ...)]through the new reflection-freeAddValidationoverload.[WireUpControls]: Android control wiring without resource reflectionThe attributes live in the
ReactiveUI.SourceGenerators.Androidnamespace. The generator writes aWireUpControls()method that callsFindViewById<T>(Resource.Id.*)for each control property. Fragments getWireUpControls(View rootView). Use[WireUpResource("id")]when the resource name differs from the property name, and[IgnoreResource]to skip a property.Runnable versions of all four examples are in
src/examples/Documentation.🗞️ What's Changed
💥 Breaking Changes
77a7449feat!: move reflection and AOT-unsafe APIs into opt-in .Unsafe packages (#4565) @glennawatson🐛 Fixes
0fc845ffix: preserve typed notifications after binding setup (#4559) @glennawatson📦 Dependencies
c5fc8e4chore(deps): update dependency microsoft.windowsappsdk to 2.7.0 (#4551) renovate[bot]🔗 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)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.