Skip to content

[00062] Rename NativeJsonDiff class to JsonDiffer to resolve namespace ambiguity#22

Merged
rorychatt merged 2 commits into
mainfrom
plan-00062-Ivy.NativeJsonDiff
Apr 12, 2026
Merged

[00062] Rename NativeJsonDiff class to JsonDiffer to resolve namespace ambiguity#22
rorychatt merged 2 commits into
mainfrom
plan-00062-Ivy.NativeJsonDiff

Conversation

@rorychatt

Copy link
Copy Markdown
Collaborator

Summary

Renamed the public static class NativeJsonDiff to JsonDiffer in the Ivy.NativeJsonDiff package to resolve namespace-type ambiguity. Bumped the package version from 1.0.0 to 2.0.0 since this is a breaking change for all consumers.

API Changes

  • Renamed: Ivy.NativeJsonDiff.NativeJsonDiff -> Ivy.NativeJsonDiff.JsonDiffer
    • JsonDiffer.ComputePatch(byte[] oldTreeBytes, byte[] newTreeBytes) (unchanged signature)
    • JsonDiffer.ApplyPatch(byte[] jsonBytes, byte[] patchBytes) (unchanged signature)
  • Version bump: 1.0.0 -> 2.0.0

Files Modified

  • Core library:
    • src/Ivy.NativeJsonDiff/NativeJsonDiff.cs -> src/Ivy.NativeJsonDiff/JsonDiffer.cs (renamed file, renamed class)
  • Tests:
    • src/Ivy.NativeJsonDiff.Tests/NativeJsonDiffTests.cs (updated 20 class references)
    • src/Ivy.NativeJsonDiff.Tests/ReportGeneratorTests.cs (updated test data and assertions)
  • Benchmarks:
    • src/Ivy.NativeJsonDiff.Benchmarks/Benchmarks/EndToEndDiffBenchmarks.cs (updated method name and class ref)
    • src/Ivy.NativeJsonDiff.Benchmarks/Benchmarks/PreParsedDiffBenchmarks.cs (updated method name and class ref)
    • src/Ivy.NativeJsonDiff.Benchmarks/Benchmarks/JsonApplyBenchmarks.cs (updated method names and class refs)
    • src/Ivy.NativeJsonDiff.Benchmarks/ReportGenerator.cs (updated string filters and display text)
  • Config:
    • Directory.Build.props (version 1.0.0 -> 2.0.0)
  • Docs:
    • README.md (updated code examples and API reference)

Commits

  • 42d9887

Resolves namespace-type ambiguity where C# couldn't distinguish
Ivy.NativeJsonDiff (namespace) from NativeJsonDiff (class) in
consumers within the Ivy.* namespace.

- Rename class NativeJsonDiff → JsonDiffer in all source files
- Rename NativeJsonDiff.cs → JsonDiffer.cs
- Update all test and benchmark references
- Update benchmark method names and report generator filters
- Update README code examples and API reference
- Bump version 1.0.0 → 2.0.0 (breaking change)
@rorychatt
rorychatt merged commit 029b3d3 into main Apr 12, 2026
2 checks passed
@rorychatt
rorychatt deleted the plan-00062-Ivy.NativeJsonDiff branch April 12, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant