Initial Commit
This commit is contained in:
71
packages/foundation/data/diff/src/index.ts
Normal file
71
packages/foundation/data/diff/src/index.ts
Normal 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";
|
||||
Reference in New Issue
Block a user