Skip to content

Remove JToken deserialization from an obsolete feature - #7458

Merged
Nigusu-Allehu merged 2 commits into
devfrom
dev-nyenework-remove-deserialization-from-obsolete
Jun 8, 2026
Merged

Nigusu-Allehu merged 2 commits into
devfrom
dev-nyenework-remove-deserialization-from-obsolete

Conversation

@Nigusu-Allehu

@Nigusu-Allehu Nigusu-Allehu commented Jun 5, 2026 •

Copy link
Copy Markdown
Member

Bug

Fixes: NuGet/Home#14935

Description

Raw search is an obsolete feature and this feature, It searches and store search results as JTokens but they are only deserialized into an actual object here in PakcageSearchResourceV3. This PR removes the support for an obsolete constructor which enabled SearchAsync to do Raw Search.

Note: In order for SearchAsync to be able to do raw search, the object created must have been created with the obsolete constructor in PackageSearchResourceV3. So this will only break users using the obsolete constructor.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@Nigusu-Allehu
Nigusu-Allehu requested a review from a team as a code owner June 5, 2026 23:49
@Nigusu-Allehu
Nigusu-Allehu requested review from nkolev92 and zivkan June 5, 2026 23:49
@Nigusu-Allehu Nigusu-Allehu self-assigned this Jun 8, 2026
@Nigusu-Allehu
Nigusu-Allehu requested a review from nkolev92 June 8, 2026 15:48

@nkolev92 nkolev92 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

Make sure we mark this as a breaking change in our SDK. An issue works best probably that explicitly says what exactly we're removing.

No need to do any of the other breaking change mechanics since those are unaffected.

@Nigusu-Allehu Nigusu-Allehu added the Breaking-change Label for .NET SDK breaking changes. label Jun 8, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Added needs-breaking-change-doc-created label because this PR has the breaking-change label.

When you commit this breaking change:

  1. Create and link to this issue a matching issue in the dotnet/docs repo using the breaking change documentation template, then remove this needs-breaking-change-doc-created label.
  2. Ask a committer to mail the .NET SDK Breaking Change Notification email list.

You can refer to the .NET SDK breaking change guidelines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Breaking-change Label for .NET SDK breaking changes. needs-breaking-change-doc-created

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove PackageSearchResourceV3(NuGet.Protocol.RawSearchResourceV3 searchResource) constructor

3 participants