Core library of "onion versioning".

Joeri Exelmans d857d8c770 Fuck it. I'll add 'dist' to git repo 1 rok temu
dist d857d8c770 Fuck it. I'll add 'dist' to git repo 1 rok temu
lib 127b61f640 more tweaking 1 rok temu
.gitignore d857d8c770 Fuck it. I'll add 'dist' to git repo 1 rok temu
README.md b0614e208f Cleanup repo 1 rok temu
index.ts 53a1e6acc5 add export 1 rok temu
package.json 262b90e4bc getting there... 1 rok temu
pnpm-lock.yaml 196218cdfb Create fork/package containing only library (no frontend) 1 rok temu
todo.txt 2e0c8ff23e Merge branch 'master' into rewrite-core 1 rok temu
tsconfig.json cfb49d8788 tweak package 1 rok temu

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