Skip to content

Sensitive index #20

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ const prefilter = (path, key) => path[0] === 'foo' && key === 'bar'
> \*\*There are known bug related to arrays of objects. We plan to release different array processing algorithms in the
> future that can handle more complex objects. As of the latest version it is reccomended to only diff between flat
> arrays
> of strings and numbers. Otherwise there isn't guarantee of accuracy or if diffs won't be duplicated in some ways.
> of strings and numbers. Otherwise, there isn't guarantee of accuracy or if diffs won't be duplicated in some ways.

`human-object-diff` parses arrays in an opinionated way. It does it's best to resolve Arrays into groups of insertions
and removals. Typical diff libraries look at arrays on an element by element basis and emit a difference for every
changes element. While this is benefical for many programatic tasks, humans typically don't look at arrays in the same
changes element. While this is beneficial for many programmatic tasks, humans typically don't look at arrays in the same
way. `human-object-diff` attempts to reduce array changes to a number of insertions, removals, and edits. An example can
better describe the difference.

Expand Down
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
transform: {
'^.+\\.tsx?$': 'esbuild-jest',
'^.+\\.tsx?$': 'ts-jest',
},
testEnvironment: 'node',
}
Loading