Repository navigation
Bump ActualLab.Core from 15.1.15 to 16.0.50 - #190
Open
dependabot[bot] wants to merge 1 commit into
Open
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
--- updated-dependencies: - dependency-name: ActualLab.Core dependency-version: 16.0.50 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
This branch has not been deployed
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.
Updated ActualLab.Core from 15.1.15 to 16.0.50.
Release notes
Sourced from ActualLab.Core's releases.
16.0.50
A fix release on top of 16.0.47.
Fixed
AddCommander()works without RPC. A container withAddCommander()but noAddRpc()/AddFusion()failed on its first command with "No service for type'ActualLab.Rpc.RpcHub'";
RpcCommandHandlernow passes commands through when there's noRpcHub. The bug predates v16.More details: https://fusion.actuallab.net/CHANGELOG#_16-0-50-910509349-npm-16-0-50
16.0.47
Release date: 2026-11-23
The first v16 release with a changelog entry; it covers 16.0.4 as well. v16 moves the optional
serializers out of
ActualLab.Core, makes RPC wire formats per-container, adds frame compressioncodecs and lets the source generator root what serializers need under NativeAOT. Read the
v15 → v16 migration guide: it opens with a complete "What's new" and
walks through every breaking change step by step.
Breaking Changes
ActualLab.Serialization.*packages;ApiOption/ApiNullable/ApiNullable8moved withMemoryPack. RPC wire formats are configured per DI container via
rpc.ConfigureWireFormats(f => ...).AddLZ4Variants/WithLZ4are replaced withAddCompressedVariants(suffix, codec, mode)/WithCompression(...); compression is configuredwith
ByteCodecrecords (LZ4ByteCodec,ZstdByteCodec,SelectingByteCodec). The-lz4/-lz4fkeys are unchanged, so v15 and v16 peers still agree.RpcStreammust implement the newOnItemDeserializationError.ActivatorExt.New<T>()is removed;Microsoft.Extensions.HostingandOptions.DataAnnotationsare no longer referenced (reference the hosting packages you use).Added
ACTUALLAB_SERIALIZATION_ROOTSdefined,ActualLab.Generatorsroots the closed generic MessagePack formatters and System.Text.Json converters RPC contracts
need, and checks contracts against
JsonSerializerContexts; alsoACTUALLAB_NO_PROXIESand theNativeAotFullsample.selection, and presets such as
SelectingByteCodec.LZ4HL16_And_Zstd_At1K.msgpack6k/msgpack6ck(f.AddKeyedMessagePack()).Changed
RpcCompressionOptions.MinCompressedFrameSizedefaults to 256 bytes (was 512).MemoryPack.Core, K4os.Compression.LZ4, CommunityToolkit.HighPerformance, System.Linq.Async,
Ulid / Ulid.MessagePack, Microsoft.Extensions.Hosting (now
.Hosting.Abstractions) orMicrosoft.Extensions.Options.DataAnnotations packages.
Fixed
instead of being resent forever (.NET and TypeScript).
EncoderExt/DecoderExtnull-pointer and empty-input fixes,TypeRefresolves GAC assemblies,
TickSourcewaiters resume on the thread pool,PruningCacheworks,and
ActualLab.Rpc.Server.NetFxrejects an unsupported format with a terminal close code (4001)instead of HTTP 400.
... (truncated)
16.0.4
NuGet and npm packages 16.0.4. Changelog: https://fusion.actuallab.net/CHANGELOG
15.1.62
Release date: 2026-11-19
A small cleanup release for
ActualLab.Fusion.Blazor: clearer exception messages, no behaviorchanges. The npm packages are identical to 15.1.59 except for the version.
Changed
ComponentInfoandParameterComparerProviderreject a type that isn't anIComponent/ aParameterComparerwith anArgumentOutOfRangeExceptionthat names theexpected type; before, it had no message.
ActualLab.Fusion.Blazor.Internal.Errors; the messages are unchanged.More details: https://fusion.actuallab.net/CHANGELOG#_15-1-62-bbb4b64e4-npm-15-1-62
15.1.59
Release date: 2026-11-19
An idle-CPU release for the .NET packages, worth taking for mobile and other battery-powered clients:
an idle app on Fusion no longer wakes up several times per second. Thanks to @crui3er for
finding and fixing the idle wakeups (#174) and for
reporting the
GetStateOptionsissue (#167).The npm packages are identical to 15.1.38 except for the version.
Breaking Changes
Core:
CoarseSystemClock,CoarseClockHelper,NonCapturingTimerandMomentClockSet.CoarseSystemClockare removed, and theMomentClockSetconstructor no longer takesa coarse clock. Fusion never read this clock, yet every process using RPC ran its 20 Hz timer. If you
used it, switch to
MomentClockSet.SystemClock. If you need something cheaper thanMoment.Now:CpuTimestampwithMoment.Now, re-readingMoment.Nowperiodically;Environment.TickCount64for a very cheap value straight from the OS. It changes every~15.6 ms on Windows and every 4 ms on a 250 Hz Linux kernel, and doesn't advance during device
sleep on Android or on Windows with .NET 11.
Read costs (BenchmarkDotNet, .NET 11, Windows x64, Ryzen 9 9950X3D):
Environment.TickCount641.77 ns,
CpuTimestamp.Now15.30 ns,Moment.Now20.31 ns.Performance
Core: an idle
TimerSetsleeps until its earliest timer instead of ticking every quantum.Timeouts.KeepAliveandTimeouts.Genericused to wake up 5 times per second for the wholeprocess lifetime, since on a client neither of them ever empties.
(#174 by @crui3er)
Core: an idle
BatchProcessor(e.g. the one behind everyDbEntityResolver) checks its queueonce per
CollectorCycle(5 s) instead of every 150 ms. The first item dequeued after idle wakesit up, so the start of a load is still noticed within ~150 ms.
(#174 by @crui3er)
Together with the coarse clock removal, this took an idle, backgrounded Android app from 6.9% to
~1.15% CPU, and its .NET timer thread from ~123 to ~5.6 wakeups per second. Android kills cached
processes that exceed 2-25% CPU, which is how this was found.
Added
ComputedStateComponent.GetStateOptions(Type, factory)throwsInvalidOperationExceptionwhen the factory captures the component instance or a local. Optionsare cached per component type, so such a factory gave every later instance the first instance's
options. Set
ComputedStateComponent.StateOptionsFactoryValidator = nullto turn the check off.(#175, reported by @crui3er in
#167)
TimerSetOptions.MaxSleepDuration(30 s by default, at most 1 hour, zero = tick everyquantum) caps how long an idle
TimerSetsleeps. It's also the longest a change ofClock.Nowthat
Clock.Delaydoesn't see (aServerClockoffset change, a system sleep on Windows) maydelay a timer.
... (truncated)
15.1.38
Release date: 2026-11-13
A performance release for the .NET RPC stack: no fixes or new APIs. The npm packages are identical
to 15.1.30 except for the version.
Performance
RpcStreambatch is handed to the reader as a whole instead of item by item:about +5-7% on the
Stream1test ofRpcBenchmark.cache lookup per list instead of one per argument: about +2% on the
Sumtest ofRpcBenchmark.NoWaitsystem calls (Ok,I,B,Ack,Invalidate) no longer write theAsyncLocalbehindRpcInboundContext.Current, which allocated anExecutionContextper inboundmessage.
token; the peer cancels its inbound calls with a single registration instead: about +1-3% on
Sum.Changed
RpcPeer.Resetcancels the inbound calls it drops. Before, it only unregistered themand left the cancellation to the peer change or the disconnect around it.
NoWaitsystem call has to readRpcInboundContext.Currentbefore itsfirst
await. This matters only if you add your own system calls.RpcInboundCallTracker.Clear()is removed, useAbort(), which also cancels the calls.ExecutionContextof the peer's message processing loop.
More details: https://fusion.actuallab.net/CHANGELOG#_15-1-38-b373fd2eb-npm-15-1-38
15.1.30
Release date: 2026-11-13
A bug-fix release for the .NET packages: errors swallowed by
SilentAwaitno longer surface later asunobserved task exceptions. Worth taking if you report
TaskScheduler.UnobservedTaskException(e.g.to Sentry) and see
ChannelClosedException: Connection is closed prematurely.there. The npmpackages are identical to 15.1.26 except for the version.
Fixed
SilentAwait()on a faultedTaskdidn't mark its error as observed, so the GC laterreported it via
TaskScheduler.UnobservedTaskException. RPC transports await their completionthis way on shutdown, so a connection closed with an error could produce such a report. The
parameterless
SuppressExceptions()overloads had the same problem. Both now observe the error,and
SilentAwait()on aValueTask/ValueTask<T>does too.ResultAwait()andSuppressCancellationAwait()on aValueTasknow consume it exactlyonce, so a pooled
IValueTaskSourcebehind it is always released. Before,ResultAwait()skippeda successfully completed non-generic
ValueTask, andSuppressCancellationAwait()skipped acanceled one and consumed a faulted one twice.
ValueTaskExt.ToResultSynchronously()is fixedthe same way.
More details: https://fusion.actuallab.net/CHANGELOG#_15-1-30-6deb7cbc6-npm-15-1-30
15.1.26
Release date: 2026-11-11
The
net11.0assets now depend on the released .NET 11 packages instead of RC2. No API or behaviorchanges; the npm packages are identical to 15.1.24 except for the version.
Changed
11.0.100SDK). Onnet11.0, ASP.NET Core, Blazor andMicrosoft.Extensions.*dependencies are11.0.0(was11.0.0-rc.2.26504.105), so anet11.0app on the released packages no longer gets a prerelease floor from Fusion.
11.0.0-rc.3.26522.148onnet11.0(was RC1), not
11.0.0:Npgsql.EntityFrameworkCore.PostgreSQLhas no11.0.0release yet, andits
11.0.0-rc.3pins that exact EF Core build. SoActualLab.Fusion.EntityFramework.Npgsqlrequires
Npgsql.EntityFrameworkCore.PostgreSQL11.0.0-rc.3or later onnet11.0.ActualLab.Fusion.EntityFrameworkitself still accepts any EF Core 10+ there.More details: https://fusion.actuallab.net/CHANGELOG#_15-1-26-0452192c1-npm-15-1-26
15.1.24
Release date: 2026-11-07
A small follow-up to 15.1.22: a shorter way to invalidate only the consolidation sources of
consolidating compute methods. Nothing else changed.
Added
Invalidation.Begin(bool bypassConsolidation, ...)overloads (with an explicitInvalidationSource, or with caller info likeInvalidation.Begin()).Invalidation.Begin(bypassConsolidation: true)starts an invalidation block where consolidatingcompute methods invalidate only their consolidation sources, so their targets compare the recomputed
output - the same as
Invalidation.Begin()+Consolidation.Bypass(). Other invalidations in theblock work as usual.
Consolidation.Bypass()remains for invalidation blocks you don't start yourself,e.g. a command handler's.
More details: https://fusion.actuallab.net/CHANGELOG#_15-1-24-22b84116c-npm-15-1-24
15.1.22
Release date: 2026-11-07
Check this one if you use
ConsolidationDelay. Invalidating a consolidating compute method nowacts as if there is no consolidation, and the new
Consolidation.Bypass()gives you the old"invalidate the source and compare" behavior where you need it. The release also fixes a race that let
a read issued right after an invalidation return the pre-invalidation value of any compute method.
Breaking Changes
Invalidation.Begin()+ call)invalidates both its consolidation source and the consolidation target, the source first, like a
dependency and its dependant. It used to invalidate only the source, so the target compared the
recomputed output and could swallow the invalidation. Migration: a consolidating method without
Fusion dependencies (e.g. one reading the database) relies on that comparison, since an explicit
invalidation is the only thing triggering it, so wrap its invalidation calls into
Consolidation.Bypass()(inside the invalidation block - it has to be the inner scope):InMemoryTodoApidoes exactly that. Invalidations captured byReplicatedandDistributedoperations are replayed without it, so they invalidate both.ConsolidationDelaycombined withInvalidationDelay > 0on the same method is rejectedwhen the service is resolved: a consolidating method is always invalidated immediately, and
ConsolidationDelayis the way to postpone its update. RemoveInvalidationDelaythere.Added
CallOptions.BypassConsolidation- a call of a consolidating method acts on itsconsolidation source, combined with the other options: a regular call depends on the source,
Capture/GetExistingreturn it, andInvalidateinvalidates only it.Consolidation.Bypass(bool isolate = false)adds it to the current context, so it worksinside compute methods (the calls still become dependencies, unless
isolate: true) and insideinvalidation blocks, including the ones Fusion runs for command handlers. A compute method can now
read the non-consolidated variant of a consolidating method instead of having a separate twin method.
Computed.Capture(bool bypassConsolidation, ...)overloads andComputed.BeginCapture(bool bypassConsolidation)capture the consolidation source computed.Fixed
Consistentwith the outputit had already been invalidated for, until the deferred invalidation was applied. A lock-free read in
that window - the fast path of every compute method call - could use it, i.e. a read issued after the
invalidation call returned could still get the old value. Such a computed now goes straight to
Invalidated(unless itsInvalidationDelayis positive, which still delays the invalidation).meantime, and it skips the recompute if the target is already inconsistent.
Documentation
... (truncated)
Commits viewable in compare view.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)