Skip to content
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 4 commits into from
Sep 12, 2024
Merged
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,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)

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; }
}
}
```

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);
}
}
```

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; }
}
}
```

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; }
}
}
```

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; }
}
}
```

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)

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);
}
}
```

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; }
}
}
```

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);
Comment on lines +5 to +31
Copy link
Member

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

}
}
```

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

System.Net LGTM

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; }
}
}
```

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, note that these are just a nullability change for one parameter Type returnType => Type? returnType

}
}
```

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);
}
}
```

Loading
Loading