Skip to main content

Built and signed on GitHub Actions

⚖️ Minimalist diffing.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 weeks ago (0.3.2)
f
compare

Deep-compare values.

f
compareIterables

Deep-compare iterables.

f
compareObjects

Deep-compare objects.

f
compareProperties

Deep-compare object properties.

v
CREATE_KIND

Create Difference kind.

T
CreateDifference

Creation difference (property or value added).

T
CurriedComparison

Curried function returned by compare.

v
DELETE_KIND

Delete Difference kind.

T
DeleteDifference

Deletion difference (property or value removed).

T
Difference

Union of all types of differences (CreateDifference,DeleteDifference and UpdateDifference).

f
differentiate

Yields a Difference object out of a left and a right value.

f
flat

Flattens Iterable of Difference.

T
FlatDifference

Flat representation of a Difference.

T
FlatPath

Flattened path property.

f
flatPathMap

Maps over an Iterable of Difference and flattens its path.

f
getKeys

Recursively get all object keys going up the prototype chain.

v
MISSING_VALUE

Missing value symbol.

f
pathPrepend

Prepends the given property to the given Difference's path.

f
setPath

Set path property of given object to given value.

v
UPDATE_KIND

Update Difference kind.

T
UpdateDifference

Update difference (property or value changed).

T
WithPropertyPath

Object with an optional path property.