@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Function resolveAdcpVersion

    • Resolve and validate a configured adcpVersion. Returns the value to store on the instance — either the caller's pin or the SDK default.

      Throws ConfigurationError when:

      • The pin is unparseable as a semver / legacy alias
      • The pin parses but no schema bundle exists for the resolved key

      Cross-major pins are accepted as long as the corresponding bundle ships with this SDK build (e.g. '3.1.0-beta.1' when dist/lib/schemas-data/ 3.1.0-beta.1/ exists). Pins of the SDK's currently-pinned ADCP_VERSION always succeed without an fs check — the bundle is guaranteed.

      Parameters

      • adcpVersion: string | undefined

      Returns string