Core library of "onion versioning".

Joeri Exelmans 415febb618 remove generated code преди 2 години
lib 127b61f640 more tweaking преди 2 години
.gitignore d857d8c770 Fuck it. I'll add 'dist' to git repo преди 2 години
README.md b0614e208f Cleanup repo преди 2 години
index.ts 53a1e6acc5 add export преди 2 години
package.json 1197457222 another attempt преди 2 години
pnpm-lock.yaml 196218cdfb Create fork/package containing only library (no frontend) преди 2 години
todo.txt 2e0c8ff23e Merge branch 'master' into rewrite-core преди 2 години
tsconfig.json cfb49d8788 tweak package преди 2 години

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