Skip to content

BREAKING CHANGE: cleanup api - #38

Merged
DoneDeal0 merged 1 commit into
mainfrom
cleanup-api
Jan 19, 2026
Merged

BREAKING CHANGE: cleanup api#38
DoneDeal0 merged 1 commit into
mainfrom
cleanup-api

Conversation

@DoneDeal0

@DoneDeal0 DoneDeal0 commented Jan 18, 2026

Copy link
Copy Markdown
Owner

BREAKING CHANGES

👉 These changes improve the developer experience by unifying naming conventions across all diff utilities and simplifying the output format. They are minimal and should require only small updates in your codebase.


  • Removed isEqual and isObject from the library (they are still used internally).
  • Unified naming conventions across all diff:

getListDiff

  • Renamed newIndexindex
  • Renamed prevIndexpreviousIndex
  • Removed indexDiff (it can be computed from index and previousIndex if needed)
  • Renamed the option referencePropertyreferenceKey
diff: {
    value: unknown;
-   newIndex: number | null;
+   index: number | null;
-   prevIndex: number | null;
+   previousIndex: number | null;
-   indexDiff: number | null;
    status: ListStatus;
  }[];

getStreamDiff:

  • Renamed currentValuevalue
  • Renamed newIndexindex
  • Renamed prevIndexpreviousIndex
  • Removed indexDiff (same reason as above)
diff: {
-   currentValue: unknown;
+   value: unknown;
-   newIndex: number | null;
+   index: number | null;
-   prevIndex: number | null;
+   previousIndex: number | null;
-   indexDiff: number | null;
    status: ListStatus;
  }[];

getObjectDiff:

  • Renamed propertykey
  • Renamed currentValuevalue
diff: {
-  property: string;
+  key: string;
-  currentValue: unknown;
+  value: unknown;
   previousValue: unknown;
   status: ObjectStatus;
   diff?: Diff[];
 };

@DoneDeal0 DoneDeal0 self-assigned this Jan 18, 2026
@DoneDeal0
DoneDeal0 marked this pull request as ready for review January 18, 2026 15:46
@DoneDeal0
DoneDeal0 force-pushed the cleanup-api branch 2 times, most recently from d95d8d2 to 1f290f3 Compare January 19, 2026 19:34
@DoneDeal0
DoneDeal0 merged commit 326df11 into main Jan 19, 2026
1 check passed
@DoneDeal0
DoneDeal0 deleted the cleanup-api branch January 19, 2026 19:55
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant