Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@plotdb/json0

plotdb16MIT0.0.5

json0 ( ot + diff ) modules bundle

readme

json0

bundle of ot-json0, json0-ot-diff and diff-match-patch for browser.

Usage

include dist/json0.min.js and use it as:

/* diff 2 objects, return operational transformations */
json0.diff(objA, objB)

/* github:ottypes/json0 */
json0.type 

/* apply ot with json0.type */
json0.type.apply(objC, ots);

for a module version, use dist/require/json0.min.js:

json0 = require("json0")

Version

we lock deep-equal to version 1.0.1 to prevent es-abstract from being bundled together, which induces 30k+ file size.

License

MIT

changelog

Change Logs

v0.0.5

  • release with compact directory structure
  • open browser page by default when start server

v0.0.4

  • use script directly instead of npx to speed up building
  • add browser field in package.json.

v0.0.3

  • add ot-json0, json0-ot-diff, diff-match-patch as dependencies instead of devDependencies.

v0.0.2

  • support nodejs