@drupflare/spool - v0.1.0
    Preparing search index...

    Class VersionVector

    Tag to counter, with one cursor that only moves forward. A bump moves the cursor once and stamps every tag in it with the new value, so a tag's version is the cursor at its last change and diff(from) is every tag stamped after from.

    Index
    • records a change to tags and returns the new cursor; no tags is no change

      Parameters

      • tags: readonly string[]

      Returns number

    • the cursor at which tag last changed, or 0 when it never has

      Parameters

      • tag: string

      Returns number