Skip to main content
This release was yanked — the latest version of @coven/compare is 0.3.3. Jump to latest

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
3 months ago (0.2.0)
type alias CreateDifference

Creation difference (property or value added).

Examples

Object that satisfies a creation difference

const createDifference = ({
	kind: "CREATE",
	right: "created value",
	path: ["property", "path"].values()
}) as const satisfies CreateDifference<string>;

Type Parameters

Right = unknown

Type of the new value.

Definition

{ readonly kind: CREATE_KIND; readonly right: Right; } & WithPropertyPath

Add Package

deno add jsr:@coven/compare

Import symbol

import { type CreateDifference } from "@coven/compare";

---- OR ----

Import directly with a jsr specifier

import { type CreateDifference } from "jsr:@coven/compare";

Add Package

npx jsr add @coven/compare

Import symbol

import { type CreateDifference } from "@coven/compare";

Add Package

yarn dlx jsr add @coven/compare

Import symbol

import { type CreateDifference } from "@coven/compare";

Add Package

pnpm dlx jsr add @coven/compare

Import symbol

import { type CreateDifference } from "@coven/compare";

Add Package

bunx jsr add @coven/compare

Import symbol

import { type CreateDifference } from "@coven/compare";