Given an NPM dependency, it checks if there's a cached more recent version, and if there is, it returns its value.
For Shopify CLI, reads only fresh entries from the registry resolved by an earlier version lookup.
Parameters
dependency: string
The dependency name (e.g. react)
currentVersion: string
The current version.
Returns string|undefined
A more recent version or undefined if there's no more recent version.
Given an NPM dependency, it checks if there's a cached more recent version, and if there is, it returns its value. For Shopify CLI, reads only fresh entries from the registry resolved by an earlier version lookup.