@shopify/cli-kit
    Preparing search index...
    • Given an NPM dependency, it checks if there's a more recent version, and if there is, it returns its value.

      Parameters

      • dependency: string

        The dependency name (e.g. react)

      • currentVersion: string

        The current version.

      • cacheExpiryInHours: { cacheExpiryInHours?: number } = {}

        If the last check was done more than this amount of hours ago, it will refresh the cache. Defaults to always refreshing.

      Returns Promise<string | undefined>

      A promise that resolves with a more recent version or undefined if there's no more recent version.