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 8 RC 1 and .NET 8 RC 2 #8831

Merged
merged 4 commits into from
Oct 26, 2023
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,27 @@
# API Difference 8.0-rc1 vs 8.0-rc2

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

* [Microsoft.AspNetCore.Authentication.BearerToken](8.0-rc2_Microsoft.AspNetCore.Authentication.BearerToken.md)
* [Microsoft.AspNetCore.Builder](8.0-rc2_Microsoft.AspNetCore.Builder.md)
* [Microsoft.AspNetCore.Components](8.0-rc2_Microsoft.AspNetCore.Components.md)
* [Microsoft.AspNetCore.Components.Endpoints](8.0-rc2_Microsoft.AspNetCore.Components.Endpoints.md)
* [Microsoft.AspNetCore.Components.Endpoints.Infrastructure](8.0-rc2_Microsoft.AspNetCore.Components.Endpoints.Infrastructure.md)
* [Microsoft.AspNetCore.Components.Forms](8.0-rc2_Microsoft.AspNetCore.Components.Forms.md)
* [Microsoft.AspNetCore.Components.Forms.Mapping](8.0-rc2_Microsoft.AspNetCore.Components.Forms.Mapping.md)
* [Microsoft.AspNetCore.Components.Infrastructure](8.0-rc2_Microsoft.AspNetCore.Components.Infrastructure.md)
* [Microsoft.AspNetCore.Components.Rendering](8.0-rc2_Microsoft.AspNetCore.Components.Rendering.md)
* [Microsoft.AspNetCore.Components.RenderTree](8.0-rc2_Microsoft.AspNetCore.Components.RenderTree.md)
* [Microsoft.AspNetCore.Components.Routing](8.0-rc2_Microsoft.AspNetCore.Components.Routing.md)
* [Microsoft.AspNetCore.Components.Web](8.0-rc2_Microsoft.AspNetCore.Components.Web.md)
* [Microsoft.AspNetCore.Components.Web.HtmlRendering](8.0-rc2_Microsoft.AspNetCore.Components.Web.HtmlRendering.md)
* [Microsoft.AspNetCore.Http.HttpResults](8.0-rc2_Microsoft.AspNetCore.Http.HttpResults.md)
* [Microsoft.AspNetCore.HttpLogging](8.0-rc2_Microsoft.AspNetCore.HttpLogging.md)
* [Microsoft.AspNetCore.Identity](8.0-rc2_Microsoft.AspNetCore.Identity.md)
* [Microsoft.AspNetCore.Identity.Data](8.0-rc2_Microsoft.AspNetCore.Identity.Data.md)
* [Microsoft.AspNetCore.Mvc.Razor.Internal](8.0-rc2_Microsoft.AspNetCore.Mvc.Razor.Internal.md)
* [Microsoft.AspNetCore.Routing.Template](8.0-rc2_Microsoft.AspNetCore.Routing.Template.md)
* [Microsoft.AspNetCore.Server.IIS](8.0-rc2_Microsoft.AspNetCore.Server.IIS.md)
* [Microsoft.Extensions.DependencyInjection](8.0-rc2_Microsoft.Extensions.DependencyInjection.md)

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Microsoft.AspNetCore.Authentication.BearerToken

``` diff
namespace Microsoft.AspNetCore.Authentication.BearerToken {
+ public sealed class AccessTokenResponse {
+ public AccessTokenResponse();
+ public required string AccessToken { get; set; }
+ public required long ExpiresIn { get; set; }
+ public required string RefreshToken { get; set; }
+ public string TokenType { get; }
+ }
}
```

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

``` diff
namespace Microsoft.AspNetCore.Builder {
public static class ExceptionHandlerExtensions {
+ public static IApplicationBuilder UseExceptionHandler(this IApplicationBuilder app, string errorHandlingPath, bool createScopeForErrors);
}
public class ExceptionHandlerOptions {
+ public bool CreateScopeForErrors { get; set; }
}
public sealed class RazorComponentsEndpointConventionBuilder : IEndpointConventionBuilder {
- public void AddRenderMode(IComponentRenderMode renderMode);
- public RazorComponentsEndpointConventionBuilder AddServerRenderMode();
}
+ public static class ServerRazorComponentsEndpointConventionBuilderExtensions {
+ public static RazorComponentsEndpointConventionBuilder AddInteractiveServerRenderMode(this RazorComponentsEndpointConventionBuilder builder);
+ }
}
```

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

``` diff
namespace Microsoft.AspNetCore.Components.Endpoints.Infrastructure {
+ public static class ComponentEndpointConventionBuilderHelper {
+ public static void AddRenderMode(RazorComponentsEndpointConventionBuilder builder, IComponentRenderMode renderMode);
+ }
}
```

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

``` diff
namespace Microsoft.AspNetCore.Components.Endpoints {
- public class RazorComponentResult : IResult {
- public RazorComponentResult(Type componentType);
- public RazorComponentResult(Type componentType, IReadOnlyDictionary<string, object?>? parameters);
- public RazorComponentResult(Type componentType, object? parameters);
- public Type ComponentType { get; }
- public string? ContentType { get; set; }
- public IReadOnlyDictionary<string, object?> Parameters { get; }
- public bool PreventStreamingRendering { get; set; }
- public int? StatusCode { get; set; }
- public Task ExecuteAsync(HttpContext httpContext);
- }
- public class RazorComponentResult<TComponent> : RazorComponentResult where TComponent : IComponent {
- public RazorComponentResult();
- public RazorComponentResult(IReadOnlyDictionary<string, object?> parameters);
- public RazorComponentResult(object parameters);
- }
- public class RazorComponentResultExecutor {
- public static readonly string DefaultContentType;
- public RazorComponentResultExecutor();
- public virtual Task ExecuteAsync(HttpContext httpContext, RazorComponentResult result);
- }
- public sealed class RazorComponentsOptions {
- public RazorComponentsOptions();
- public int MaxFormMappingCollectionSize { get; set; }
- public int MaxFormMappingErrorCount { get; set; }
- public int MaxFormMappingKeySize { get; set; }
- public int MaxFormMappingRecursionDepth { get; set; }
- }
+ public sealed class RazorComponentsServiceOptions {
+ public RazorComponentsServiceOptions();
+ public bool DetailedErrors { get; set; }
+ public int MaxFormMappingCollectionSize { get; set; }
+ public int MaxFormMappingErrorCount { get; set; }
+ public int MaxFormMappingKeySize { get; set; }
+ public int MaxFormMappingRecursionDepth { get; set; }
+ public TimeSpan TemporaryRedirectionUrlValidityDuration { get; set; }
+ }
}
```

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

``` diff
namespace Microsoft.AspNetCore.Components.Forms.Mapping {
- public class FormMappingError
+ public sealed class FormMappingError
- public class FormValueMappingContext {
+ public sealed class FormValueMappingContext {
- public FormValueMappingContext(string acceptMappingScopeName, string? acceptFormName, Type valueType, string parameterName);
}
}
```

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

``` diff
namespace Microsoft.AspNetCore.Components.Forms {
public class EditForm : ComponentBase {
+ [ParameterAttribute]
+ public bool Enhance { get; set; }
}
}
```

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

``` diff
namespace Microsoft.AspNetCore.Components.Infrastructure {
public class ComponentStatePersistenceManager {
- public Task PersistStateAsync(IPersistentComponentStateStore store, Dispatcher dispatcher);
}
}
```

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

``` diff
namespace Microsoft.AspNetCore.Components.RenderTree {
public abstract class Renderer : IAsyncDisposable, IDisposable {
+ protected internal virtual IComponentRenderMode? GetComponentRenderMode(IComponent component);
+ protected internal ComponentState GetComponentState(IComponent component);
}
public abstract class WebRenderer : Renderer {
- protected virtual void UpdateRootComponents(string operationsJson);
}
}
```

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

``` diff
namespace Microsoft.AspNetCore.Components.Rendering {
public sealed class RenderTreeBuilder : IDisposable {
+ public void AddComponentRenderMode(IComponentRenderMode renderMode);
- public void AddComponentRenderMode(int sequence, IComponentRenderMode renderMode);
- public void AddNamedEvent(int sequence, string eventType, string assignedName);
+ public void AddNamedEvent(string eventType, string assignedName);
}
}
```

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

``` diff
namespace Microsoft.AspNetCore.Components.Routing {
public class Router : IComponent, IDisposable, IHandleAfterRender {
- [ParameterAttribute]
- public bool PreferExactMatches { get; set; }
+ [ObsoleteAttribute("This property is obsolete and configuring it has not effect.")]
+ [ParameterAttribute]
+ public bool PreferExactMatches { get; set; }
}
}
```

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

``` diff
namespace Microsoft.AspNetCore.Components.Web.HtmlRendering {
public readonly struct HtmlRootComponent {
- public int ComponentId { get; }
}
}
```

Loading