Repository navigation
v2.0.0
2.0.0 (2026-11-22)
⚠ BREAKING CHANGES
- ZeroAlloc.Pipeline no longer ships a netstandard2.0 asset, so a netstandard2.0 consumer must move to net10.0 or later, and ZeroAlloc.Pipeline.Generators no longer depends on ZeroAlloc.Pipeline, so a project that relied on getting the contracts through it must reference ZeroAlloc.Pipeline itself and a generator project must stop shipping ZeroAlloc.Pipeline.dll. See the Behaviour change section of the PR for migration steps.
- the ZeroAlloc.Pipeline net8.0 asset is no longer shipped; PipelineShape.EmitStaticLambdas, PipelineEmitter.EmitCachedChain and PipelineCachedChain are removed and every emitted lambda is static, so a chain body that reads instance state must take it through PipelineShape.State. See the Behaviour change section of the release for the migration steps.
Features
- add a FindMissingHandleMethod overload that checks behaviors against a PipelineShape (bac8d4b)
- drop the unused ZeroAlloc.Pipeline reference from Pipeline.Generators and the netstandard2.0 target (08386ef)
- remove EmitStaticLambdas, EmitCachedChain and PipelineCachedChain in favour of PipelineShape.State (bac8d4b)
- target net10.0 and net11.0 in ZeroAlloc.Pipeline, drop net8.0 (bac8d4b)
- thread pipeline state through next so every emitted lambda is static (bac8d4b)
Behaviour changes
From #189:
net8.0asset dropped fromZeroAlloc.Pipeline. Anet8.0ornet9.0project now resolves thenetstandard2.0asset. Move tonet10.0or later to get the net build. .NET 8 and .NET 9 are out of support.PipelineShape.EmitStaticLambdasremoved. Every lambda the emitter writes is nowstatic. If you setEmitStaticLambdas = falseso that the innermost body could read instance fields, pass that state instead, for exampleState = new PipelineState { TypeName = "global::System.IServiceProvider", Argument = "_services" }. Read it in the body ass{depth}, and have your behaviors takeTStateas their last type parameter andstateas their second parameter, passing it on tonext. A body that still readsthisfails to compile with CS8821. If you setEmitStaticLambdas = true, delete the assignment; that is now the only behaviour.PipelineEmitter.EmitCachedChainandPipelineCachedChainremoved. ReplaceEmitCachedChain(behaviors, shape, nextDelegateType, prefix)withEmitChain(behaviors, shape with { State = ... }), and delete the emitted cache-field declarations. The state chain allocates nothing per call and needs no fields.
Closes #121
From #192:
ZeroAlloc.Pipelinehas nonetstandard2.0asset. Migration: a project that consumed it fromnetstandard2.0must move tonet10.0or later, or stay on 1.x. A generator or analyzer project must not referenceZeroAlloc.Pipeline; it has no use for it.ZeroAlloc.Pipeline.Generatorsno longer depends onZeroAlloc.Pipeline. Migration: a project that got the contracts transitively through the Generators package addsZeroAlloc.Pipelineitself. A generator project stops copying and shippingZeroAlloc.Pipeline.dllinanalyzers/dotnet/cs: remove the pack item and any copy step for it, and keep shippingZeroAlloc.Pipeline.Generators.dll.
Closes #190