drupflare/worker - v1.0.0
    Preparing search index...

    Function parseVersion

    • Parses a Composer version into numeric segments plus a trailing stability string.

      v prefixes are stripped because Composer treats v1.2.3 and 1.2.3 as the same version, and a lock file mixes both. A dev- branch has no numeric ordering at all, so it parses to no parts and every comparison against it is unknown rather than false.

      Parameters

      • raw: string

      Returns ParsedVersion | null