vega / vl-convert

Utilities for converting Vega-Lite specs from the command line and Python
BSD 3-Clause "New" or "Revised" License
100 stars 12 forks source link

Unify duplicate transitive JavaScript dependencies, Drop Vega-Lite 4.17 #140

Closed jonmmease closed 10 months ago

jonmmease commented 10 months ago

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 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.