-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
API diff between .NET 9 Preview 7 and .NET 9 RC 1 #9497
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
release-notes/9.0/preview/rc1/api-diff/Microsoft.AspNetCore.App/9.0-rc1.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# API Difference 9.0-preview7 vs 9.0-rc1 | ||
|
||
API listing follows standard diff formatting. | ||
Lines preceded by a '+' are additions and a '-' indicates removal. | ||
|
||
* [Microsoft.AspNetCore.Builder](9.0-rc1_Microsoft.AspNetCore.Builder.md) | ||
* [Microsoft.AspNetCore.Components](9.0-rc1_Microsoft.AspNetCore.Components.md) | ||
* [Microsoft.AspNetCore.Components.Routing](9.0-rc1_Microsoft.AspNetCore.Components.Routing.md) | ||
* [Microsoft.AspNetCore.Components.Web.Virtualization](9.0-rc1_Microsoft.AspNetCore.Components.Web.Virtualization.md) | ||
* [Microsoft.AspNetCore.Http](9.0-rc1_Microsoft.AspNetCore.Http.md) | ||
|
10 changes: 10 additions & 0 deletions
10
...w/rc1/api-diff/Microsoft.AspNetCore.App/9.0-rc1_Microsoft.AspNetCore.Builder.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Microsoft.AspNetCore.Builder | ||
|
||
``` diff | ||
namespace Microsoft.AspNetCore.Builder { | ||
public class WebSocketOptions { | ||
+ public TimeSpan KeepAliveTimeout { get; set; } | ||
} | ||
} | ||
``` | ||
|
10 changes: 10 additions & 0 deletions
10
...iff/Microsoft.AspNetCore.App/9.0-rc1_Microsoft.AspNetCore.Components.Routing.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Microsoft.AspNetCore.Components.Routing | ||
|
||
``` diff | ||
namespace Microsoft.AspNetCore.Components.Routing { | ||
public class FocusOnNavigate : ComponentBase { | ||
+ protected override void BuildRenderTree(RenderTreeBuilder builder); | ||
} | ||
} | ||
``` | ||
|
11 changes: 11 additions & 0 deletions
11
...ft.AspNetCore.App/9.0-rc1_Microsoft.AspNetCore.Components.Web.Virtualization.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Microsoft.AspNetCore.Components.Web.Virtualization | ||
|
||
``` diff | ||
namespace Microsoft.AspNetCore.Components.Web.Virtualization { | ||
public sealed class Virtualize<TItem> : ComponentBase, IAsyncDisposable, IVirtualizeJsCallbacks { | ||
+ [ParameterAttribute] | ||
+ public int MaxItemCount { get; set; } | ||
} | ||
} | ||
``` | ||
|
11 changes: 11 additions & 0 deletions
11
...c1/api-diff/Microsoft.AspNetCore.App/9.0-rc1_Microsoft.AspNetCore.Components.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Microsoft.AspNetCore.Components | ||
|
||
``` diff | ||
namespace Microsoft.AspNetCore.Components { | ||
public sealed class ImportMap : IComponent { | ||
+ [ParameterAttribute(CaptureUnmatchedValues=true)] | ||
+ public IReadOnlyDictionary<string, object>? AdditionalAttributes { get; set; } | ||
} | ||
} | ||
``` | ||
|
10 changes: 10 additions & 0 deletions
10
...view/rc1/api-diff/Microsoft.AspNetCore.App/9.0-rc1_Microsoft.AspNetCore.Http.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Microsoft.AspNetCore.Http | ||
|
||
``` diff | ||
namespace Microsoft.AspNetCore.Http { | ||
public class WebSocketAcceptContext { | ||
+ public TimeSpan? KeepAliveTimeout { get; set; } | ||
} | ||
} | ||
``` | ||
|
16 changes: 16 additions & 0 deletions
16
release-notes/9.0/preview/rc1/api-diff/Microsoft.NETCore.App/9.0-rc1.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# API Difference 9.0-preview7 vs 9.0-rc1 | ||
|
||
API listing follows standard diff formatting. | ||
Lines preceded by a '+' are additions and a '-' indicates removal. | ||
|
||
* [System](9.0-rc1_System.md) | ||
* [System.Collections.Generic](9.0-rc1_System.Collections.Generic.md) | ||
* [System.Drawing](9.0-rc1_System.Drawing.md) | ||
* [System.IO.Compression](9.0-rc1_System.IO.Compression.md) | ||
* [System.Net.WebSockets](9.0-rc1_System.Net.WebSockets.md) | ||
* [System.Reflection.Emit](9.0-rc1_System.Reflection.Emit.md) | ||
* [System.Reflection.Metadata](9.0-rc1_System.Reflection.Metadata.md) | ||
* [System.Runtime.Intrinsics.Arm](9.0-rc1_System.Runtime.Intrinsics.Arm.md) | ||
* [System.Runtime.Intrinsics.X86](9.0-rc1_System.Runtime.Intrinsics.X86.md) | ||
* [System.Security.Cryptography](9.0-rc1_System.Security.Cryptography.md) | ||
|
21 changes: 21 additions & 0 deletions
21
...review/rc1/api-diff/Microsoft.NETCore.App/9.0-rc1_System.Collections.Generic.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# System.Collections.Generic | ||
|
||
``` diff | ||
namespace System.Collections.Generic { | ||
public static class CollectionExtensions { | ||
- public static HashSet.AlternateLookup<TAlternate> GetAlternateLookup<T, TAlternate>(this HashSet<T> @set); | ||
- public static Dictionary.AlternateLookup<TAlternateKey> GetAlternateLookup<TKey, TValue, TAlternateKey>(this Dictionary<TKey, TValue> dictionary); | ||
- public static bool TryGetAlternateLookup<T, TAlternate>(this HashSet<T> @set, out HashSet.AlternateLookup<TAlternate> lookup); | ||
- public static bool TryGetAlternateLookup<TKey, TValue, TAlternateKey>(this Dictionary<TKey, TValue> dictionary, out Dictionary.AlternateLookup<TAlternateKey> lookup); | ||
} | ||
public class Dictionary<TKey, TValue> : ICollection, ICollection<KeyValuePair<TKey, TValue>>, IDeserializationCallback, IDictionary, IDictionary<TKey, TValue>, IEnumerable, IEnumerable<KeyValuePair<TKey, TValue>>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>, IReadOnlyDictionary<TKey, TValue>, ISerializable { | ||
+ public Dictionary.AlternateLookup<TAlternateKey> GetAlternateLookup<TAlternateKey>(); | ||
+ public bool TryGetAlternateLookup<TAlternateKey>(out Dictionary.AlternateLookup<TAlternateKey> lookup); | ||
} | ||
public class HashSet<T> : ICollection<T>, IDeserializationCallback, IEnumerable, IEnumerable<T>, IReadOnlyCollection<T>, IReadOnlySet<T>, ISerializable, ISet<T> { | ||
+ public HashSet.AlternateLookup<TAlternate> GetAlternateLookup<TAlternate>(); | ||
+ public bool TryGetAlternateLookup<TAlternate>(out HashSet.AlternateLookup<TAlternate> lookup); | ||
} | ||
} | ||
``` | ||
|
11 changes: 11 additions & 0 deletions
11
...-notes/9.0/preview/rc1/api-diff/Microsoft.NETCore.App/9.0-rc1_System.Drawing.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# System.Drawing | ||
|
||
``` diff | ||
namespace System.Drawing { | ||
public static class SystemColors { | ||
+ [ExperimentalAttribute("SYSLIB5002", UrlFormat="https://aka.ms/dotnet-warnings/{0}")] | ||
+ public static bool UseAlternativeColorSet { get; set; } | ||
} | ||
} | ||
``` | ||
|
35 changes: 35 additions & 0 deletions
35
...9.0/preview/rc1/api-diff/Microsoft.NETCore.App/9.0-rc1_System.IO.Compression.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# System.IO.Compression | ||
|
||
``` diff | ||
namespace System.IO.Compression { | ||
+ public sealed class BrotliCompressionOptions { | ||
+ public BrotliCompressionOptions(); | ||
+ public int Quality { get; set; } | ||
+ } | ||
public sealed class BrotliStream : Stream { | ||
+ public BrotliStream(Stream stream, BrotliCompressionOptions compressionOptions, bool leaveOpen = false); | ||
} | ||
public class DeflateStream : Stream { | ||
+ public DeflateStream(Stream stream, ZLibCompressionOptions compressionOptions, bool leaveOpen = false); | ||
} | ||
public class GZipStream : Stream { | ||
+ public GZipStream(Stream stream, ZLibCompressionOptions compressionOptions, bool leaveOpen = false); | ||
} | ||
+ public sealed class ZLibCompressionOptions { | ||
+ public ZLibCompressionOptions(); | ||
+ public int CompressionLevel { get; set; } | ||
+ public ZLibCompressionStrategy CompressionStrategy { get; set; } | ||
+ } | ||
+ public enum ZLibCompressionStrategy { | ||
+ Default = 0, | ||
+ Filtered = 1, | ||
+ Fixed = 4, | ||
+ HuffmanOnly = 2, | ||
+ RunLengthEncoding = 3, | ||
+ } | ||
public sealed class ZLibStream : Stream { | ||
+ public ZLibStream(Stream stream, ZLibCompressionOptions compressionOptions, bool leaveOpen = false); | ||
} | ||
} | ||
``` | ||
|
14 changes: 14 additions & 0 deletions
14
...9.0/preview/rc1/api-diff/Microsoft.NETCore.App/9.0-rc1_System.Net.WebSockets.md
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. System.Net LGTM |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# System.Net.WebSockets | ||
|
||
``` diff | ||
namespace System.Net.WebSockets { | ||
public sealed class ClientWebSocketOptions { | ||
+ [UnsupportedOSPlatformAttribute("browser")] | ||
+ public TimeSpan KeepAliveTimeout { get; set; } | ||
} | ||
public sealed class WebSocketCreationOptions { | ||
+ public TimeSpan KeepAliveTimeout { get; set; } | ||
} | ||
} | ||
``` | ||
|
19 changes: 19 additions & 0 deletions
19
....0/preview/rc1/api-diff/Microsoft.NETCore.App/9.0-rc1_System.Reflection.Emit.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# System.Reflection.Emit | ||
|
||
``` diff | ||
namespace System.Reflection.Emit { | ||
public abstract class TypeBuilder : TypeInfo { | ||
- public PropertyBuilder DefineProperty(string name, PropertyAttributes attributes, CallingConventions callingConvention, Type returnType, Type[]? parameterTypes); | ||
+ public PropertyBuilder DefineProperty(string name, PropertyAttributes attributes, CallingConventions callingConvention, Type? returnType, Type[]? parameterTypes); | ||
- public PropertyBuilder DefineProperty(string name, PropertyAttributes attributes, CallingConventions callingConvention, Type returnType, Type[]? returnTypeRequiredCustomModifiers, Type[]? returnTypeOptionalCustomModifiers, Type[]? parameterTypes, Type[][]? parameterTypeRequiredCustomModifiers, Type[][]? parameterTypeOptionalCustomModifiers); | ||
+ public PropertyBuilder DefineProperty(string name, PropertyAttributes attributes, CallingConventions callingConvention, Type? returnType, Type[]? returnTypeRequiredCustomModifiers, Type[]? returnTypeOptionalCustomModifiers, Type[]? parameterTypes, Type[][]? parameterTypeRequiredCustomModifiers, Type[][]? parameterTypeOptionalCustomModifiers); | ||
- public PropertyBuilder DefineProperty(string name, PropertyAttributes attributes, Type returnType, Type[]? parameterTypes); | ||
+ public PropertyBuilder DefineProperty(string name, PropertyAttributes attributes, Type? returnType, Type[]? parameterTypes); | ||
- public PropertyBuilder DefineProperty(string name, PropertyAttributes attributes, Type returnType, Type[]? returnTypeRequiredCustomModifiers, Type[]? returnTypeOptionalCustomModifiers, Type[]? parameterTypes, Type[][]? parameterTypeRequiredCustomModifiers, Type[][]? parameterTypeOptionalCustomModifiers); | ||
+ public PropertyBuilder DefineProperty(string name, PropertyAttributes attributes, Type? returnType, Type[]? returnTypeRequiredCustomModifiers, Type[]? returnTypeOptionalCustomModifiers, Type[]? parameterTypes, Type[][]? parameterTypeRequiredCustomModifiers, Type[][]? parameterTypeOptionalCustomModifiers); | ||
- protected abstract PropertyBuilder DefinePropertyCore(string name, PropertyAttributes attributes, CallingConventions callingConvention, Type returnType, Type[]? returnTypeRequiredCustomModifiers, Type[]? returnTypeOptionalCustomModifiers, Type[]? parameterTypes, Type[][]? parameterTypeRequiredCustomModifiers, Type[][]? parameterTypeOptionalCustomModifiers); | ||
+ protected abstract PropertyBuilder DefinePropertyCore(string name, PropertyAttributes attributes, CallingConventions callingConvention, Type? returnType, Type[]? returnTypeRequiredCustomModifiers, Type[]? returnTypeOptionalCustomModifiers, Type[]? parameterTypes, Type[][]? parameterTypeRequiredCustomModifiers, Type[][]? parameterTypeOptionalCustomModifiers); | ||
Comment on lines
+6
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. LGTM, note that these are just a nullability change for one parameter |
||
} | ||
} | ||
``` | ||
|
17 changes: 17 additions & 0 deletions
17
...review/rc1/api-diff/Microsoft.NETCore.App/9.0-rc1_System.Reflection.Metadata.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# System.Reflection.Metadata | ||
|
||
``` diff | ||
namespace System.Reflection.Metadata { | ||
public sealed class TypeName { | ||
- public TypeName? DeclaringType { get; } | ||
+ public TypeName DeclaringType { get; } | ||
+ public TypeName MakeArrayTypeName(int rank); | ||
+ public TypeName MakeByRefTypeName(); | ||
+ public TypeName MakeGenericTypeName(ImmutableArray<TypeName> typeArguments); | ||
+ public TypeName MakePointerTypeName(); | ||
+ public TypeName MakeSZArrayTypeName(); | ||
+ public TypeName WithAssemblyName(AssemblyNameInfo? assemblyName); | ||
} | ||
} | ||
``` | ||
|
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
System.IO.Compression part LGTM