Skip to content

API diff between .NET 10 Preview 4 and .NET 10 Preview 5 #9906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# API difference between .NET 10.0 Preview 4 and .NET 10.0 Preview 5

API listing follows standard diff formatting.
Lines preceded by a '+' are additions and a '-' indicates removal.

* [Microsoft.AspNetCore.Components](10.0-preview5_Microsoft.AspNetCore.Components.md)
* [Microsoft.AspNetCore.Diagnostics](10.0-preview5_Microsoft.AspNetCore.Diagnostics.md)
* [Microsoft.AspNetCore.Http.Abstractions](10.0-preview5_Microsoft.AspNetCore.Http.Abstractions.md)
* [Microsoft.AspNetCore.Server.HttpSys](10.0-preview5_Microsoft.AspNetCore.Server.HttpSys.md)
* [Microsoft.AspNetCore.Server.Kestrel.Core](10.0-preview5_Microsoft.AspNetCore.Server.Kestrel.Core.md)
* [Microsoft.Extensions.Caching.Abstractions](10.0-preview5_Microsoft.Extensions.Caching.Abstractions.md)
* [Microsoft.Extensions.DependencyInjection.Abstractions](10.0-preview5_Microsoft.Extensions.DependencyInjection.Abstractions.md)
* [Microsoft.JSInterop](10.0-preview5_Microsoft.JSInterop.md)

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Microsoft.AspNetCore.Components

```diff
namespace Microsoft.AspNetCore.Components.Infrastructure
{
+ public static class ComponentsMetricsServiceCollectionExtensions
+ {
+ public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddComponentsMetrics(Microsoft.Extensions.DependencyInjection.IServiceCollection services);
+ public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddComponentsTracing(Microsoft.Extensions.DependencyInjection.IServiceCollection services);
+ }
}
namespace Microsoft.AspNetCore.Components.RenderTree
{
public abstract class Renderer
{
- protected virtual void SignalRendererToFinishRendering();
}
}
namespace Microsoft.AspNetCore.Components.Routing
{
public class Router : Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleAfterRender
{
+ public System.Type NotFoundPage { get; set; }
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Microsoft.AspNetCore.Diagnostics

```diff
namespace Microsoft.AspNetCore.Builder
{
public static class StatusCodePagesExtensions
{
+ public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStatusCodePagesWithReExecute(this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string pathFormat, bool createScopeForErrors, string? queryFormat = null);
}
public class StatusCodePagesOptions
{
+ public bool CreateScopeForErrors { get; set; }
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Microsoft.AspNetCore.Http.Abstractions

```diff
namespace Microsoft.AspNetCore.Http.Validation
{
public sealed class ValidateContext
{
- public System.ComponentModel.DataAnnotations.ValidationContext? ValidationContext { get; set; }
+ public required System.ComponentModel.DataAnnotations.ValidationContext ValidationContext { get; set; }
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Microsoft.AspNetCore.Server.HttpSys

```diff
namespace Microsoft.AspNetCore.Server.HttpSys
{
public class HttpSysOptions
{
+ public System.Security.AccessControl.GenericSecurityDescriptor? RequestQueueSecurityDescriptor { get; set; }
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Microsoft.AspNetCore.Server.Kestrel.Core

```diff
namespace Microsoft.AspNetCore.Server.Kestrel.Https
{
public class HttpsConnectionAdapterOptions
{
+ public System.Action<Microsoft.AspNetCore.Connections.ConnectionContext, System.Buffers.ReadOnlySequence<byte>> TlsClientHelloBytesCallback { get; set; }
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Microsoft.Extensions.Caching.Abstractions

```diff
namespace Microsoft.Extensions.Caching.Hybrid
{
public abstract class HybridCache
{
+ public System.Threading.Tasks.ValueTask<T> GetOrCreateAsync<T>(ref System.Runtime.CompilerServices.DefaultInterpolatedStringHandler? key, System.Func<System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<T>> factory, Microsoft.Extensions.Caching.Hybrid.HybridCacheEntryOptions? options = null, System.Collections.Generic.IEnumerable<string>? tags = null, System.Threading.CancellationToken? cancellationToken = null);
+ public System.Threading.Tasks.ValueTask<T> GetOrCreateAsync<T>(System.ReadOnlySpan<char> key, System.Func<System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<T>> factory, Microsoft.Extensions.Caching.Hybrid.HybridCacheEntryOptions? options = null, System.Collections.Generic.IEnumerable<string>? tags = null, System.Threading.CancellationToken? cancellationToken = null);
+ public System.Threading.Tasks.ValueTask<T> GetOrCreateAsync<TState, T>(ref System.Runtime.CompilerServices.DefaultInterpolatedStringHandler? key, TState state, System.Func<TState, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<T>> factory, Microsoft.Extensions.Caching.Hybrid.HybridCacheEntryOptions? options = null, System.Collections.Generic.IEnumerable<string>? tags = null, System.Threading.CancellationToken? cancellationToken = null);
+ public virtual System.Threading.Tasks.ValueTask<T> GetOrCreateAsync<TState, T>(System.ReadOnlySpan<char> key, TState state, System.Func<TState, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<T>> factory, Microsoft.Extensions.Caching.Hybrid.HybridCacheEntryOptions? options = null, System.Collections.Generic.IEnumerable<string>? tags = null, System.Threading.CancellationToken? cancellationToken = null);
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Microsoft.Extensions.DependencyInjection.Abstractions

```diff
namespace Microsoft.Extensions.DependencyInjection
{
public class FromKeyedServicesAttribute
{
- public FromKeyedServicesAttribute(object key);
- public object Key { get; }
+ public object? Key { get; }
+ public FromKeyedServicesAttribute();
+ public FromKeyedServicesAttribute(object? key);
+ public Microsoft.Extensions.DependencyInjection.ServiceKeyLookupMode? LookupMode { get; }
}
+ public sealed class ServiceKeyLookupMode
+ {
+ public const Microsoft.Extensions.DependencyInjection.ServiceKeyLookupMode ExplicitKey = 2;
+ public const Microsoft.Extensions.DependencyInjection.ServiceKeyLookupMode InheritKey = 0;
+ public const Microsoft.Extensions.DependencyInjection.ServiceKeyLookupMode NullKey = 1;
+ public int value__;
+ }
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Microsoft.JSInterop

```diff
namespace Microsoft.JSInterop
{
public abstract class JSInProcessRuntime : Microsoft.JSInterop.JSRuntime, Microsoft.JSInterop.IJSInProcessRuntime, Microsoft.JSInterop.IJSRuntime
{
- protected abstract string? InvokeJS(in Microsoft.JSInterop.Infrastructure.JSInvocationInfo? invocationInfo);
+ protected virtual string? InvokeJS(in Microsoft.JSInterop.Infrastructure.JSInvocationInfo? invocationInfo);
}
public abstract class JSRuntime : Microsoft.JSInterop.IJSRuntime
{
- protected abstract void BeginInvokeJS(in Microsoft.JSInterop.Infrastructure.JSInvocationInfo invocationInfo);
+ protected virtual void BeginInvokeJS(in Microsoft.JSInterop.Infrastructure.JSInvocationInfo invocationInfo);
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# API difference between .NET 10.0 Preview 4 and .NET 10.0 Preview 5

API listing follows standard diff formatting.
Lines preceded by a '+' are additions and a '-' indicates removal.

* [System.Collections.Immutable](10.0-preview5_System.Collections.Immutable.md)
* [System.Data.Common](10.0-preview5_System.Data.Common.md)
* [System.Numerics.Vectors](10.0-preview5_System.Numerics.Vectors.md)
* [System.Runtime](10.0-preview5_System.Runtime.md)
* [System.Runtime.InteropServices](10.0-preview5_System.Runtime.InteropServices.md)
* [System.Runtime.Intrinsics](10.0-preview5_System.Runtime.Intrinsics.md)
* [System.Security.Cryptography](10.0-preview5_System.Security.Cryptography.md)

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# System.Collections.Immutable

```diff
namespace System.Collections.Immutable
{
public static class ImmutableDictionary
{
+ public static System.Collections.Immutable.ImmutableDictionary<TKey, TValue> CreateRangeWithOverwrite<TKey, TValue>(System.Collections.Generic.IEqualityComparer<TKey>? keyComparer, params scoped System.ReadOnlySpan<System.Collections.Generic.KeyValuePair<TKey, TValue>> items);
+ public static System.Collections.Immutable.ImmutableDictionary<TKey, TValue> CreateRangeWithOverwrite<TKey, TValue>(params scoped System.ReadOnlySpan<System.Collections.Generic.KeyValuePair<TKey, TValue>> items);
}
+ [System.Runtime.CompilerServices.CollectionBuilderAttribute(typeof(System.Collections.Immutable.ImmutableDictionary), "CreateRangeWithOverwrite")]
public sealed class ImmutableDictionary<TKey, TValue> : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey, TValue>>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey, TValue>>, System.Collections.IEnumerable, System.Collections.Generic.IDictionary<TKey, TValue>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<TKey, TValue>>, System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>, System.Collections.ICollection, System.Collections.IDictionary, System.Collections.Immutable.IImmutableDictionary<TKey, TValue>
{
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# System.Data.Common

```diff
namespace System.Data
{
public enum SqlDbType
{
+ Vector = 36,
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# System.Numerics.Vectors

```diff
namespace System.Numerics
{
public struct Matrix3x2 : System.IEquatable<System.Numerics.Matrix3x2>
{
+ public static System.Numerics.Matrix3x2 Create(System.Numerics.Vector2 x, System.Numerics.Vector2 y, System.Numerics.Vector2 z);
+ public static System.Numerics.Matrix3x2 Create(System.Numerics.Vector2 value);
+ public static System.Numerics.Matrix3x2 Create(float m11, float m12, float m21, float m22, float m31, float m32);
+ public static System.Numerics.Matrix3x2 Create(float value);
+ public readonly float GetElement(int row, int column);
+ public readonly System.Numerics.Vector2 GetRow(int index);
+ public readonly System.Numerics.Matrix3x2 WithElement(int row, int column, float value);
+ public readonly System.Numerics.Matrix3x2 WithRow(int index, System.Numerics.Vector2 value);
+ public System.Numerics.Vector2 this[int row] {
+ get { }
+ set { }
+ }
+ public System.Numerics.Vector2 X { get; set; }
+ public System.Numerics.Vector2 Y { get; set; }
+ public System.Numerics.Vector2 Z { get; set; }
}
public struct Matrix4x4 : System.IEquatable<System.Numerics.Matrix4x4>
{
+ public static System.Numerics.Matrix4x4 Create(System.Numerics.Matrix3x2 value);
+ public static System.Numerics.Matrix4x4 Create(System.Numerics.Vector4 x, System.Numerics.Vector4 y, System.Numerics.Vector4 z, System.Numerics.Vector4 w);
+ public static System.Numerics.Matrix4x4 Create(System.Numerics.Vector4 value);
+ public static System.Numerics.Matrix4x4 Create(float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24, float m31, float m32, float m33, float m34, float m41, float m42, float m43, float m44);
+ public static System.Numerics.Matrix4x4 Create(float value);
+ public readonly float GetElement(int row, int column);
+ public readonly System.Numerics.Vector4 GetRow(int index);
+ public readonly System.Numerics.Matrix4x4 WithElement(int row, int column, float value);
+ public readonly System.Numerics.Matrix4x4 WithRow(int index, System.Numerics.Vector4 value);
+ public System.Numerics.Vector4 this[int row] {
+ get { }
+ set { }
+ }
+ public System.Numerics.Vector4 W { get; set; }
+ public System.Numerics.Vector4 X { get; set; }
+ public System.Numerics.Vector4 Y { get; set; }
+ public System.Numerics.Vector4 Z { get; set; }
}
public struct Plane : System.IEquatable<System.Numerics.Plane>
{
+ public static System.Numerics.Plane Create(System.Numerics.Vector3 normal, float d);
+ public static System.Numerics.Plane Create(System.Numerics.Vector4 value);
+ public static System.Numerics.Plane Create(float x, float y, float z, float d);
}
public struct Quaternion : System.IEquatable<System.Numerics.Quaternion>
{
+ public static System.Numerics.Quaternion Create(System.Numerics.Vector3 vectorPart, float scalarPart);
+ public static System.Numerics.Quaternion Create(float x, float y, float z, float w);
}
public static class Vector
{
+ public static System.Numerics.Vector<T> AddSaturate<T>(System.Numerics.Vector<T> left, System.Numerics.Vector<T> right);
+ public static System.Numerics.Vector2 AsVector2(this System.Numerics.Vector3 value);
+ public static System.Numerics.Vector3 AsVector3(this System.Numerics.Vector2 value);
+ public static System.Numerics.Vector3 AsVector3Unsafe(this System.Numerics.Vector2 value);
+ public static System.Numerics.Vector<T> CreateScalar<T>(T value);
+ public static System.Numerics.Vector<T> CreateScalarUnsafe<T>(T value);
+ public static System.Numerics.Vector<float> NarrowWithSaturation(System.Numerics.Vector<double> low, System.Numerics.Vector<double> high);
+ [System.CLSCompliantAttribute(false)]
+ public static System.Numerics.Vector<sbyte> NarrowWithSaturation(System.Numerics.Vector<short> low, System.Numerics.Vector<short> high);
+ public static System.Numerics.Vector<short> NarrowWithSaturation(System.Numerics.Vector<int> low, System.Numerics.Vector<int> high);
+ public static System.Numerics.Vector<int> NarrowWithSaturation(System.Numerics.Vector<long> low, System.Numerics.Vector<long> high);
+ [System.CLSCompliantAttribute(false)]
+ public static System.Numerics.Vector<byte> NarrowWithSaturation(System.Numerics.Vector<ushort> low, System.Numerics.Vector<ushort> high);
+ [System.CLSCompliantAttribute(false)]
+ public static System.Numerics.Vector<ushort> NarrowWithSaturation(System.Numerics.Vector<uint> low, System.Numerics.Vector<uint> high);
+ [System.CLSCompliantAttribute(false)]
+ public static System.Numerics.Vector<uint> NarrowWithSaturation(System.Numerics.Vector<ulong> low, System.Numerics.Vector<ulong> high);
+ public static System.Numerics.Vector<T> SubtractSaturate<T>(System.Numerics.Vector<T> left, System.Numerics.Vector<T> right);
}
public struct Vector2 : System.IEquatable<System.Numerics.Vector2>, System.IFormattable
{
+ public static System.Numerics.Vector2 CreateScalar(float x);
+ public static System.Numerics.Vector2 CreateScalarUnsafe(float x);
}
public struct Vector3 : System.IEquatable<System.Numerics.Vector3>, System.IFormattable
{
+ public static System.Numerics.Vector3 CreateScalar(float x);
+ public static System.Numerics.Vector3 CreateScalarUnsafe(float x);
}
public struct Vector4 : System.IEquatable<System.Numerics.Vector4>, System.IFormattable
{
+ public static System.Numerics.Vector4 CreateScalar(float x);
+ public static System.Numerics.Vector4 CreateScalarUnsafe(float x);
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# System.Runtime.InteropServices

```diff
namespace System.Runtime.InteropServices
{
public abstract class ComWrappers
{
+ protected virtual object? CreateObject(nint externalComObject, System.Runtime.InteropServices.CreateObjectFlags flags, object? userState, out System.Runtime.InteropServices.CreatedWrapperFlags wrapperFlags);
+ public object GetOrCreateObjectForComInstance(nint externalComObject, System.Runtime.InteropServices.CreateObjectFlags flags, object? userState);
}
+ [System.FlagsAttribute]
+ public enum CreatedWrapperFlags
+ {
+ None = 0,
+ TrackerObject = 1,
+ NonWrapping = 2,
+ }
}
namespace System.Runtime.InteropServices.Marshalling
{
public class GeneratedComInterfaceAttribute : System.Attribute
{
+ public System.Type? ExceptionToUnmanagedMarshaller { get; set; }
}
+ [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("android")]
+ [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")]
+ [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("ios")]
+ [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("tvos")]
public class StrategyBasedComWrappers : System.Runtime.InteropServices.ComWrappers
{
+ protected sealed override object? CreateObject(nint externalComObject, System.Runtime.InteropServices.CreateObjectFlags flags, object? userState, out System.Runtime.InteropServices.CreatedWrapperFlags wrapperFlags);
}
}
```
Loading