adding api diff for preview 5 and preview 6 (#4868)
* adding api diff for preview 5 and preview 6 * Update 5.0-preview6_System.Text.Json.Serialization.md
This commit is contained in:
committed by
GitHub
parent
43986a2f19
commit
c6548d4aff
@@ -0,0 +1,14 @@
|
||||
# API Difference net5.0-preview4 vs net5.0-preview5
|
||||
|
||||
API listing follows standard diff formatting. Lines preceded by a '+' are
|
||||
additions and a '-' indicates removal.
|
||||
|
||||
* [System.Diagnostics.CodeAnalysis](5.0-preview5_System.Diagnostics.CodeAnalysis.md)
|
||||
* [System.Globalization](5.0-preview5_System.Globalization.md)
|
||||
* [System.IO](5.0-preview5_System.IO.md)
|
||||
* [System.Runtime.InteropServices](5.0-preview5_System.Runtime.InteropServices.md)
|
||||
* [System.Runtime.Intrinsics](5.0-preview5_System.Runtime.Intrinsics.md)
|
||||
* [System.Text](5.0-preview5_System.Text.md)
|
||||
* [System.Text.Json.Serialization](5.0-preview5_System.Text.Json.Serialization.md)
|
||||
* [System.Xml](5.0-preview5_System.Xml.md)
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
# System.Diagnostics.CodeAnalysis
|
||||
|
||||
``` diff
|
||||
namespace System.Diagnostics.CodeAnalysis {
|
||||
+ public sealed class DynamicallyAccessedMembersAttribute : Attribute {
|
||||
+ public DynamicallyAccessedMembersAttribute(DynamicallyAccessedMemberTypes memberTypes);
|
||||
+ public DynamicallyAccessedMemberTypes MemberTypes { get; }
|
||||
+ }
|
||||
+ public enum DynamicallyAccessedMemberTypes {
|
||||
+ All = -1,
|
||||
+ DefaultConstructor = 1,
|
||||
+ None = 0,
|
||||
+ NonPublicConstructors = 4,
|
||||
+ NonPublicEvents = 4096,
|
||||
+ NonPublicFields = 64,
|
||||
+ NonPublicMethods = 16,
|
||||
+ NonPublicNestedTypes = 256,
|
||||
+ NonPublicProperties = 1024,
|
||||
+ PublicConstructors = 3,
|
||||
+ PublicEvents = 2048,
|
||||
+ PublicFields = 32,
|
||||
+ PublicMethods = 8,
|
||||
+ PublicNestedTypes = 128,
|
||||
+ PublicProperties = 512,
|
||||
+ }
|
||||
+ public sealed class DynamicDependencyAttribute : Attribute {
|
||||
+ public DynamicDependencyAttribute(DynamicallyAccessedMemberTypes memberTypes, string typeName, string assemblyName);
|
||||
+ public DynamicDependencyAttribute(DynamicallyAccessedMemberTypes memberTypes, Type type);
|
||||
+ public DynamicDependencyAttribute(string memberSignature);
|
||||
+ public DynamicDependencyAttribute(string memberSignature, string typeName, string assemblyName);
|
||||
+ public DynamicDependencyAttribute(string memberSignature, Type type);
|
||||
+ public string AssemblyName { get; }
|
||||
+ public string Condition { get; set; }
|
||||
+ public string MemberSignature { get; }
|
||||
+ public DynamicallyAccessedMemberTypes MemberTypes { get; }
|
||||
+ public Type Type { get; }
|
||||
+ public string TypeName { get; }
|
||||
+ }
|
||||
+ public sealed class UnconditionalSuppressMessageAttribute : Attribute {
|
||||
+ public UnconditionalSuppressMessageAttribute(string category, string checkId);
|
||||
+ public string Category { get; }
|
||||
+ public string CheckId { get; }
|
||||
+ public string Justification { get; set; }
|
||||
+ public string MessageId { get; set; }
|
||||
+ public string Scope { get; set; }
|
||||
+ public string Target { get; set; }
|
||||
+ }
|
||||
}
|
||||
```
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
# System.Globalization
|
||||
|
||||
``` diff
|
||||
namespace System.Globalization {
|
||||
public sealed class CompareInfo : IDeserializationCallback {
|
||||
+ public int Compare(ReadOnlySpan<char> string1, ReadOnlySpan<char> string2, CompareOptions options = CompareOptions.None);
|
||||
+ public int GetSortKey(ReadOnlySpan<char> source, Span<byte> destination, CompareOptions options = CompareOptions.None);
|
||||
+ public int GetSortKeyLength(ReadOnlySpan<char> source, CompareOptions options = CompareOptions.None);
|
||||
+ public int IndexOf(ReadOnlySpan<char> source, ReadOnlySpan<char> value, CompareOptions options = CompareOptions.None);
|
||||
+ public int IndexOf(ReadOnlySpan<char> source, Rune value, CompareOptions options = CompareOptions.None);
|
||||
+ public bool IsPrefix(ReadOnlySpan<char> source, ReadOnlySpan<char> prefix, CompareOptions options = CompareOptions.None);
|
||||
+ public static bool IsSortable(ReadOnlySpan<char> text);
|
||||
+ public static bool IsSortable(Rune value);
|
||||
+ public bool IsSuffix(ReadOnlySpan<char> source, ReadOnlySpan<char> suffix, CompareOptions options = CompareOptions.None);
|
||||
+ public int LastIndexOf(ReadOnlySpan<char> source, ReadOnlySpan<char> value, CompareOptions options = CompareOptions.None);
|
||||
+ public int LastIndexOf(ReadOnlySpan<char> source, Rune value, CompareOptions options = CompareOptions.None);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
# System.IO
|
||||
|
||||
``` diff
|
||||
namespace System.IO {
|
||||
public class BinaryReader : IDisposable {
|
||||
- protected internal int Read7BitEncodedInt();
|
||||
+ public int Read7BitEncodedInt();
|
||||
+ public long Read7BitEncodedInt64();
|
||||
}
|
||||
public class BinaryWriter : IAsyncDisposable, IDisposable {
|
||||
- protected void Write7BitEncodedInt(int value);
|
||||
+ public void Write7BitEncodedInt(int value);
|
||||
+ public void Write7BitEncodedInt64(long value);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
# System.Runtime.InteropServices
|
||||
|
||||
``` diff
|
||||
namespace System.Runtime.InteropServices {
|
||||
public abstract class ComWrappers {
|
||||
- public void RegisterAsGlobalInstance();
|
||||
|
||||
+ public static void RegisterForMarshalling(ComWrappers instance);
|
||||
+ public static void RegisterForTrackerSupport(ComWrappers instance);
|
||||
}
|
||||
- public sealed class NativeCallableAttribute : Attribute {
|
||||
{
|
||||
- public CallingConvention CallingConvention;
|
||||
|
||||
- public string EntryPoint;
|
||||
|
||||
- public NativeCallableAttribute();
|
||||
|
||||
- }
|
||||
+ public sealed class UnmanagedCallersOnlyAttribute : Attribute {
|
||||
+ public CallingConvention CallingConvention;
|
||||
+ public string EntryPoint;
|
||||
+ public UnmanagedCallersOnlyAttribute();
|
||||
+ }
|
||||
}
|
||||
```
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
# System.Runtime.Intrinsics
|
||||
|
||||
``` diff
|
||||
namespace System.Runtime.Intrinsics {
|
||||
public readonly struct Vector128<T> : IEquatable<Vector128<T>> where T : struct {
|
||||
+ public static Vector128<T> AllBitsSet { get; }
|
||||
}
|
||||
public readonly struct Vector256<T> : IEquatable<Vector256<T>> where T : struct {
|
||||
+ public static Vector256<T> AllBitsSet { get; }
|
||||
}
|
||||
public readonly struct Vector64<T> : IEquatable<Vector64<T>> where T : struct {
|
||||
+ public static Vector64<T> AllBitsSet { get; }
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# System.Text.Json.Serialization
|
||||
|
||||
``` diff
|
||||
namespace System.Text.Json.Serialization {
|
||||
public abstract class JsonConverter<T> : JsonConverter {
|
||||
+ public virtual bool HandleNull { get; }
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# System.Text
|
||||
|
||||
``` diff
|
||||
namespace System.Text {
|
||||
public abstract class Encoding : ICloneable {
|
||||
+ public static Stream CreateTranscodingStream(Stream innerStream, Encoding innerStreamEncoding, Encoding outerStreamEncoding, bool leaveOpen = false);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# System.Xml
|
||||
|
||||
``` diff
|
||||
namespace System.Xml {
|
||||
- public abstract class XmlWriter : IDisposable {
|
||||
+ public abstract class XmlWriter : IAsyncDisposable, IDisposable {
|
||||
+ public ValueTask DisposeAsync();
|
||||
+ protected virtual ValueTask DisposeAsyncCore();
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# API Difference aspnet5.0-preview4 vs aspnet5.0-preview5
|
||||
|
||||
API listing follows standard diff formatting. Lines preceded by a '+' are
|
||||
additions and a '-' indicates removal.
|
||||
|
||||
* [Microsoft.AspNetCore.Server.HttpSys](5.0-preview5_Microsoft.AspNetCore.Server.HttpSys.md)
|
||||
* [Microsoft.AspNetCore.Server.Kestrel.Core](5.0-preview5_Microsoft.AspNetCore.Server.Kestrel.Core.md)
|
||||
* [Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http](5.0-preview5_Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.md)
|
||||
* [Microsoft.AspNetCore.WebUtilities](5.0-preview5_Microsoft.AspNetCore.WebUtilities.md)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Microsoft.AspNetCore.Server.HttpSys
|
||||
|
||||
``` diff
|
||||
namespace Microsoft.AspNetCore.Server.HttpSys {
|
||||
public sealed class AuthenticationManager {
|
||||
+ public string AuthenticationDisplayName { get; set; }
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
# Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http
|
||||
|
||||
``` diff
|
||||
namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http {
|
||||
public class HttpParser<TRequestHandler> where TRequestHandler : IHttpHeadersHandler, IHttpRequestLineHandler {
|
||||
- public bool ParseRequestLine(TRequestHandler handler, in ReadOnlySequence<byte> buffer, out SequencePosition consumed, out SequencePosition examined);
|
||||
|
||||
+ public bool ParseRequestLine(TRequestHandler handler, ref SequenceReader<byte> reader);
|
||||
}
|
||||
- public enum HttpVersion {
|
||||
+ public enum HttpVersion : sbyte {
|
||||
- Http10 = 0,
|
||||
+ Http10 = (sbyte)0,
|
||||
- Http11 = 1,
|
||||
+ Http11 = (sbyte)1,
|
||||
- Http2 = 2,
|
||||
+ Http2 = (sbyte)2,
|
||||
- Http3 = 3,
|
||||
+ Http3 = (sbyte)3,
|
||||
- Unknown = -1,
|
||||
+ Unknown = (sbyte)-1,
|
||||
}
|
||||
+ public struct HttpVersionAndMethod {
|
||||
+ public HttpVersionAndMethod(HttpMethod method, int methodEnd);
|
||||
+ public HttpMethod Method { get; }
|
||||
+ public int MethodEnd { get; }
|
||||
+ public HttpVersion Version { get; set; }
|
||||
+ }
|
||||
public interface IHttpRequestLineHandler {
|
||||
- void OnStartLine(HttpMethod method, HttpVersion version, Span<byte> target, Span<byte> path, Span<byte> query, Span<byte> customMethod, bool pathEncoded);
|
||||
|
||||
+ void OnStartLine(HttpVersionAndMethod versionAndMethod, TargetOffsetPathLength targetPath, Span<byte> startLine);
|
||||
}
|
||||
+ public readonly struct TargetOffsetPathLength {
|
||||
+ public TargetOffsetPathLength(int offset, int length, bool isEncoded);
|
||||
+ public bool IsEncoded { get; }
|
||||
+ public int Length { get; }
|
||||
+ public int Offset { get; }
|
||||
+ }
|
||||
}
|
||||
```
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Microsoft.AspNetCore.Server.Kestrel.Core
|
||||
|
||||
``` diff
|
||||
namespace Microsoft.AspNetCore.Server.Kestrel.Core {
|
||||
public class KestrelServerOptions {
|
||||
+ public KestrelConfigurationLoader Configure(IConfiguration config, bool reloadOnChange);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# Microsoft.AspNetCore.WebUtilities
|
||||
|
||||
``` diff
|
||||
namespace Microsoft.AspNetCore.WebUtilities {
|
||||
public sealed class FileBufferingWriteStream : Stream {
|
||||
+ public Task DrainBufferAsync(PipeWriter destination, CancellationToken cancellationToken = default(CancellationToken));
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
6
release-notes/5.0/preview/api-diff/preview5/README.md
Normal file
6
release-notes/5.0/preview/api-diff/preview5/README.md
Normal file
@@ -0,0 +1,6 @@
|
||||
# .NET 5.0 Preview 6 API Changes
|
||||
|
||||
The following API changes were made in .NET 5.0 Preview 6:
|
||||
|
||||
- [.NET](./.Net/5.0-preview6.md)
|
||||
- [ASP.NET](./Asp.Net/5.0-preview6.md)
|
||||
Reference in New Issue
Block a user