Core library of "onion versioning".

Joeri Exelmans 4336951266 more tweaking 1 年之前
lib 4336951266 more tweaking 1 年之前
.gitignore 196218cdfb Create fork/package containing only library (no frontend) 1 年之前
README.md b0614e208f Cleanup repo 1 年之前
package.json dc57b31ef7 tweak directory structure 1 年之前
pnpm-lock.yaml 196218cdfb Create fork/package containing only library (no frontend) 1 年之前
todo.txt 2e0c8ff23e Merge branch 'master' into rewrite-core 1 年之前
tsconfig.json d5537ebe82 Restructure package further 1 年之前

README.md

Onion Core Library

Defines:

  • Primitive delta types, their dependency and conflict relations.
  • (nestable) Transactions of deltas.
  • A "DeltaRegistry" that assigns content-based IDs to deltas, and reuses them.
  • A mutable "GraphState" class, for executing deltas.
  • A "Version" class, for graph embedding, branching and merging.

Currently depends on these NodeJS polyfills for browser: 'buffer', 'crypto' and 'stream'. This is only to compute hashes by means of synchronous function call (Web Crypto API only supports async).