OverviewFilesCommitsIssuesDocsReleasesPeers

hyper-identity-core / index.js

14 lines · javascript ref:
// hyper-identity-core — the half of the identity layer that has no engine.
//
// `apply` and the op vocabulary are a pure function of the log: they read a batch of ops and write
// a KV view. Nothing in here knows whether that log is an autobase or an autobee, and nothing in
// here may learn — that is the property this package exists to hold still.
//
// It deliberately depends on NEITHER engine. A package that dragged autobase in would hand it to
// every consumer transitively, which is the whole reason this split exists: `hyper-identity2` runs
// autobee and must not carry autobase beside it.

export { BaseIdentityRegistry } from './lib/registry.js'
export { createApplyFunction } from './lib/apply.js'
export { OpTypes, encodeOp, decodeOp, validateOp } from './lib/operations.js'