3.0.1 • Published 1 year ago

@tangle/simple-set v3.0.1

Weekly downloads
172
License
LGPL-3.0-or-later
Repository
gitlab
Last release
1 year ago

@tangle/simple-set

see tests for examples.

API

SimpleSet(idPattern) => simpleSet

  • idPattern String (optional)
    • a pattern which all id's going into the set must pass
    • default '^.+$'

simpleSet.schema

simpleSet.isValid

simpleSet.identity() => I

simpleSet.concat() => I

simpleSet.mapFromInput(input, currentTips) => T

simpleSet.mapToOutput(T) => t

simpleSet.isConflict() => False

simpleSet.isValidMerge() => True

simpleSet.merge(graph, mergeNode, field) => T

where:

  • graph is a @tangle/graph instance
  • mergeNode is the proposed merge-node
  • field String contains the the data fields node.data[field]

Used with modules such as:

  • @tangle/strategy@2
  • ssb-crut
3.0.1

1 year ago

3.0.0

2 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.2.2

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago