Skip to content

Commit 142cc96

Browse files
Add license files for dependencies bundled in vega-embed.js
These are the NPM packages that are included in the vega-embed.js bundle via dependencies. An effort has been made to verify that every license file added in this commit actually corresponds to some code present in vega-embed.js. Note that no license files needed to be added for software copied/derived/adapted into vega-embed.js; everything is already covered via the dependencies for vega-lite.js or vega.js.
1 parent 91312ce commit 142cc96

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

snakemake/assets/__init__.py

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,78 @@ class Assets:
420420
sha256="32df67148f0fc3db0eb9e263a7b75d07f1eb14c61955005a4a39c6918d10d137",
421421
version="6.20.8",
422422
),
423+
# Begin dependencies for vega-embed, included in vega-embed/vega-embed.js
424+
# Versions from https://github.com/vega/vega-embed/blob/v6.20.8/yarn.lock.
425+
"fast-json-patch/LICENSE": Asset(
426+
url="https://raw.githubusercontent.com/Starcounter-Jack/JSON-Patch/refs/tags/v{version}/LICENSE.txt",
427+
sha256="26593d78926902a82eb9bc7e40d1811fc381055f23516b92fe48ca8399bf02df",
428+
version="3.1.0",
429+
),
430+
# json-stringify-pretty-compact 3.0.0 is already covered as one of
431+
# vega's dependencies
432+
# ----
433+
# There are four versions of the semver package in yarn.lock (5.7.1,
434+
# 6.3.0, 7.0.0, 7.3.5), but it appears that only one copy remains in
435+
# the vega-embed.js bundle. The bundle has a compareBuild function,
436+
# added in 6.1.0. It does not export a "tokens" list, added in 6.3.0
437+
# and present in 7.0.0, but that is not conclusive because the package
438+
# was split into separate source files to improve tree-shaking. By
439+
# 7.3.5, the first line of the SemVer class constructor changes to
440+
# "options = parseOptions(options)", and this does match what we see in
441+
# the bundle, so we conclude that we have semver 7.3.5. In any case,
442+
# the ISC license was unchanged across all four versions.
443+
"semver/LICENSE": Asset(
444+
url="https://raw.githubusercontent.com/npm/node-semver/refs/tags/v{version}/LICENSE",
445+
sha256="4ec3d4c66cd87f5c8d8ad911b10f99bf27cb00cdfcff82621956e379186b016b",
446+
version="7.3.5",
447+
),
448+
# The tslib package is among vega-embed's direct dependencies, and the
449+
# yarn.lock file shows four versions could be included: 2.3.1, 2.1.0,
450+
# 1.14.1 (all MIT-licensed), and 1.1.0 (Apache-2.0-licensed). However,
451+
# we found no trace of any of these in the actual vega-embed.js bundle.
452+
# ----
453+
# The following packages are part of vega, and are already covered by
454+
# vega/LICENSE.
455+
# - vega-interpreter: no dependencies
456+
# ----
457+
# This is not part of https://github.com/vega/vega, as far as we can
458+
# tell, so we handle it separately. The repository
459+
# https://github.com/vega/schema linked from NPM appears to contain
460+
# only JSON schemas, not JavaScript source code, so we use an unpkg URL
461+
# to reference the contents of the NPM package instead.
462+
"vega-schema-url-parser/LICENSE": Asset(
463+
url="https://unpkg.com/vega-schema-url-parser@{version}/LICENSE",
464+
sha256="eeb1606fda238f623c36d1eb5e27c33b986a446445340b220c141097424af045",
465+
version="2.2.0",
466+
),
467+
"vega-themes/LICENSE": Asset(
468+
url="https://raw.githubusercontent.com/vega/vega-themes/refs/tags/v{version}/LICENSE",
469+
sha256="ceb75fa4fbebbc381c0465442a502ffc13b73f36ccb385a66bcd5f55869e3979",
470+
version="2.10.0",
471+
),
472+
# Depends on vega-util, which is already covered in vega
473+
"vega-tooltip/LICENSE": Asset(
474+
url="https://raw.githubusercontent.com/vega/vega-tooltip/refs/tags/v{version}/LICENSE",
475+
sha256="93cd20d9cee8c77c080d1a585e3b07644ad2c8e9ccdfc86e350136884d62d935",
476+
version="0.28.0",
477+
),
478+
# End dependencies for vega-embed, included in vega-embed/vega-embed.js
479+
# Begin copied/derived/adapted code in vega-embed, included in vega-embed/vega-embed.js
480+
# - hashlru is included in vega-util (via vega-tooltip); already
481+
# covered as one of vega's dependencies
482+
# - _areEquals() is based on fast-deep-equal; already covered as one of
483+
# vega-lite's dependencies
484+
# - googlecharts theme in vega-themes carries its own copyright statement,
485+
# Copyright 2020 Google LLC.
486+
#
487+
# Use of this source code is governed by a BSD-style
488+
# license that can be found in the LICENSE file or at
489+
# https://developers.google.com/open-source/licenses/bsd
490+
# No plain-text version of that URL is available, and the license has
491+
# the same BSD-3-Clause permission statement as vega-themes itself,
492+
# so we consider the combination of vega-themes/LICENSE and the
493+
# copyright statement in the source code sufficient.
494+
# End copied/derived/adapted code in vega-embed, included in vega-embed/vega-embed.js
423495
"heroicons/LICENSE": Asset(
424496
url="https://raw.githubusercontent.com/tailwindlabs/heroicons/refs/tags/v{version}/LICENSE",
425497
sha256="75523ddd65d9620bea09f84e89d0c373b4205a3708b8a1e9f9598a5438a3e641",

0 commit comments

Comments
 (0)