Initial Commit

This commit is contained in:
2026-05-27 23:47:53 +01:00
parent fbc70f96e6
commit 9b28db724f
18103 changed files with 1600554 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
// Errors
export type { DiffOptions } from "./diff/diff.js";
// Diff
export { diff, lcs } from "./diff/diff.js";
export type { DiffCode, DiffErrorContext } from "./errors/diff-error.js";
export { DIFF_CODES, DiffError } from "./errors/diff-error.js";
export type { HistoryOptions, HistoryState } from "./history/history.js";
// History
export { createHistory, History } from "./history/history.js";
export type {
AddOperation,
CopyOperation,
MoveOperation,
Operation,
Patch,
RemoveOperation,
ReplaceOperation,
TestOperation,
} from "./operations/operations.js";
// Operations
export {
createAdd,
createCopy,
createMove,
createRemove,
createReplace,
createTest,
invertOperation,
invertPatch,
operationsConflict,
validateOperation,
validatePatch,
} from "./operations/operations.js";
export type { PatchOptions, PatchResult } from "./patch/patch.js";
// Patch
export { applyPatch, revertPatch } from "./patch/patch.js";
export type { Path } from "./path/path.js";
// Path
export {
appendPath,
comparePaths,
concatPaths,
escapeSegment,
formatPath,
isPrefix,
lastSegment,
parentPath,
parsePath,
pathEquals,
unescapeSegment,
} from "./path/path.js";
export type { SyncDelta, SyncOptions } from "./sync/sync.js";
// Sync
export { createSync, SyncManager } from "./sync/sync.js";
export type { JsonValue } from "./utils/utils.js";
// Utils
export {
deepClone,
deepEqual,
deleteValueAtPath,
deleteValueAtPathMut,
getValueAtPath,
hashValue,
insertValueAtPath,
insertValueAtPathMut,
isObject,
isPrimitive,
setValueAtPath,
setValueAtPathMut,
} from "./utils/utils.js";