We download vl-convert's JavaScript dependencies from the SkyPack CDN using deno vendor. In some cases, this results in downloading multiple versions of transitive dependencies, like the vega-functions package. Having multiple versions of packages loaded into the Deno runtime often works just fine, but in this case it caused the new geoScale expression function to not be found.
This PR detects duplicate packages and deletes old versions and remaps imports to reference the latest version.
This approach required dropping Vega-Lite 4.17, as it's no longer compatible with the latest vega package versions.
Closes #139
We download vl-convert's JavaScript dependencies from the SkyPack CDN using deno vendor. In some cases, this results in downloading multiple versions of transitive dependencies, like the
vega-functions
package. Having multiple versions of packages loaded into the Deno runtime often works just fine, but in this case it caused the newgeoScale
expression function to not be found.This PR detects duplicate packages and deletes old versions and remaps imports to reference the latest version.
This approach required dropping Vega-Lite 4.17, as it's no longer compatible with the latest vega package versions.