Skip to content

Suggestion: outputKeys & full should output the property value even if it is in excludeKeys #126

Open
@bebsworthy

Description

@bebsworthy

Currently, setting { excludeKeys:['id'] } prevents { outputKeys=['id'] } or { full:true } from working as documented.

The documented behavior for outputKeys is Always print this comma separated keys, with their value, if they are part of an object with any diff while excludeKeys is only to exclude from the comparison.

Use case: We're using the lib to compare a list of object, we do not want to compare the id property which is database generated and has no incidence, but I would like to be able to have it in the output so that the user has a better context to identify which object has changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions