Repository navigation
Extract the engine into Nullean.PublicApi and Nullean.PublicApi.Diff - #93
Merged
Merged
Conversation
The reader and the comparison move out of the tool into two packages that target netstandard2.0 and net10.0: Nullean.PublicApi reads an assembly's API into records (ApiReader.Read from a path or a stream), and Nullean.PublicApi.Diff compares two of them (ApiDiff.Compare from paths or models), classifies a difference (VersionChange.Classify, which was AssemblyComparison.Classify) and narrows a diff to what code uses. The diff items keep their behaviour but are only built inside the library, every public member is documented, and the build packs and validates both packages next to the tool. The tool's reports are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The first step towards the public API files and snapshots: the reader and the comparison leave the tool and become two packages, both targeting netstandard2.0 and net10.0 (PolySharp for the language features on netstandard2.0).
ApiReader.Read(path)andRead(stream)read an assembly's API into records (ApiAssembly,ApiType,ApiMethod, ...).ApiDiff.Comparefrom two paths or two models,VersionChange.Classify(wasAssemblyComparison.Classifyin the tool),UsedApiandUsageFilter.The diff items' constructors are internal now, so the library alone builds them, and every public member has an XML doc.
build.sh packpacks both packages and checks their strong names, so the next release publishes them with the tool.Behaviour
The tool's reports are unchanged:
ReferenceTestsmatch a build of main (ASSEMBLY_DIFFER_REFERENCE);The tool's own API-change report says Major, because
Differ.SuggestedVersionChangeand theDiffer.Enginetypes moved into the libraries. Nothing references the tool assembly, so this is labelledfeature, for the new packages.🤖 Generated with Claude Code