Skip to content
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

feat: allow referenceProperty for object comparison in lists #15

Merged
merged 3 commits into from
Jan 21, 2024

Conversation

DoneDeal0
Copy link
Owner

@DoneDeal0 DoneDeal0 commented Jan 20, 2024

  • add referenceProperty in the options parameter of getListDiff. referenceProperty will consider an object to be updated instead of added or deleted if one of its properties remains stable, such as its id. This option has no effect on other datatypes.
  • update dev dependencies
  • correct README.md grammar and update the documentation

closes #14

@DoneDeal0 DoneDeal0 force-pushed the add-referenceProperty branch 2 times, most recently from 6c22757 to 47963db Compare January 21, 2024 10:02
@DoneDeal0 DoneDeal0 marked this pull request as ready for review January 21, 2024 10:02
@DoneDeal0 DoneDeal0 force-pushed the add-referenceProperty branch from 47963db to fd721c5 Compare January 21, 2024 10:14
@DoneDeal0 DoneDeal0 changed the title feat: start referenceProperty for object comparison in lists feat: allow referenceProperty for object comparison in lists Jan 21, 2024
@DoneDeal0 DoneDeal0 added enhancement New feature or request documentation Improvements or additions to documentation labels Jan 21, 2024
@DoneDeal0 DoneDeal0 merged commit 63c45e9 into master Jan 21, 2024
@DoneDeal0 DoneDeal0 deleted the add-referenceProperty branch October 24, 2024 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Marking a property as "unique id" so modified items in array are considered updated and not deleted+added
1 participant