-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Blazor] Remove obsolete APIs from Components #62755
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
81d19f6
57a002d
6d839b3
a1d12ed
6d7ae8c
ae83527
5542a4d
7a9270e
b773e74
e0a3d4d
388e4c3
b1f3a4d
b86f4e4
72de494
5df2b0b
ac7e0aa
ca2cc12
7a915e5
7f6edda
c587cd6
7b9353d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Co-authored-by: javiercn <[email protected]>
- Loading branch information
There are no files selected for viewing
|
Member
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. Undo the change to this file.
Contributor
Author
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. Fixed in 7f6edda. Undid the change to PublicAPI.Shipped.txt as requested. The NotifyLocationChanged method entry has been restored to the file. Note: This creates an API analyzer error RS0017 since the method was removed from the code but remains listed in Shipped.txt.
Member
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. The way to fix this is to add an entry on the |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -115,6 +115,6 @@ static Microsoft.AspNetCore.Components.WebAssembly.Http.WebAssemblyHttpRequestMe | |
| static Microsoft.AspNetCore.Components.WebAssembly.Http.WebAssemblyHttpRequestMessageExtensions.SetBrowserRequestOption(this System.Net.Http.HttpRequestMessage! requestMessage, string! name, object! value) -> System.Net.Http.HttpRequestMessage! | ||
| static Microsoft.AspNetCore.Components.WebAssembly.Http.WebAssemblyHttpRequestMessageExtensions.SetBrowserRequestStreamingEnabled(this System.Net.Http.HttpRequestMessage! requestMessage, bool streamingEnabled) -> System.Net.Http.HttpRequestMessage! | ||
| static Microsoft.AspNetCore.Components.WebAssembly.Http.WebAssemblyHttpRequestMessageExtensions.SetBrowserResponseStreamingEnabled(this System.Net.Http.HttpRequestMessage! requestMessage, bool streamingEnabled) -> System.Net.Http.HttpRequestMessage! | ||
| static Microsoft.AspNetCore.Components.WebAssembly.Infrastructure.JSInteropMethods.NotifyLocationChanged(string! uri, bool isInterceptedLink) -> void | ||
|
|
||
|
||
| static Microsoft.AspNetCore.Components.WebAssembly.Infrastructure.JSInteropMethods.NotifyLocationChanged(string! uri, string? state, bool isInterceptedLink) -> void | ||
| static Microsoft.AspNetCore.Components.WebAssembly.Infrastructure.JSInteropMethods.NotifyLocationChangingAsync(string! uri, string? state, bool isInterceptedLink) -> System.Threading.Tasks.ValueTask<bool> | ||
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.
This file should not be changed at all
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.
Fixed in 72de494. Restored PublicAPI.Shipped.txt to its original state as required. However, this creates an API analyzer error RS0017 because the removed obsolete method is still listed in Shipped.txt but no longer exists in the code. Need guidance on the proper approach for handling this scenario while maintaining the API baseline policy.
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.
The proper approach is to add an entry to the associated
*.Unshipped.txtfile including the*REMOVED*prefix on the entry.