Bump package `latest-version` to latest version to resolve SNYK-JS-GOT-2932019
Describe the bug Our security scanner is triggering on:
[email protected]:
Found vulnerabilities:
- Open Redirect – medium severity, https://snyk.io/vuln/SNYK-JS-GOT-2932019
Dependency path (1 of 2): @useoptic/[email protected] ‣ [email protected] ‣ [email protected] ‣ [email protected]
Later versions of latest-version use package-json 10 or higher. These versions do not depend on got anymore and thus resolving this security vulnerability.
Hi - this is a duplicate of this issue https://github.com/opticdev/optic/issues/2414.
Summary is we're having issues on upgrading these packages because these are ESM only supported packages it would require some work to update Optic to fully support this.
Last time I dug into this I think we ran into issues with our packaging (we use vercel/pkg, which doesn't support ESM) and needing to update importing of any ESM package (to use dynamic imports, to natively import requires more work). We're looking into options but we haven't gotten around to fixing this.