Core library of "onion versioning".

Joeri Exelmans f423f5a217 curse JS ecosystem!! il y a 1 an
lib 127b61f640 more tweaking il y a 1 an
.gitignore 976cc7866d another attempt il y a 1 an
.npmignore f423f5a217 curse JS ecosystem!! il y a 1 an
README.md b0614e208f Cleanup repo il y a 1 an
index.ts 53a1e6acc5 add export il y a 1 an
package.json 976cc7866d another attempt il y a 1 an
pnpm-lock.yaml 196218cdfb Create fork/package containing only library (no frontend) il y a 1 an
todo.txt 2e0c8ff23e Merge branch 'master' into rewrite-core il y a 1 an
tsconfig.json cfb49d8788 tweak package il y a 1 an

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).