Skip to content

Commit 91312ce

Browse files
Add license files for dependencies bundled in vega-lite.js
These are the NPM packages that are included in the vega-lite.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-lite.js. Note that no license files needed to be added for software copied/derived/adapted into vega-lite.js; hashlru was bundled via vega-util, but this was already covered for vega.js.
1 parent 207aba9 commit 91312ce

File tree

1 file changed

+53
-2
lines changed

1 file changed

+53
-2
lines changed

snakemake/assets/__init__.py

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class Assets:
144144
sha256="7eea8533ea92bd8c32a901e89ecb0305890905bb12711449565ddff96891146d",
145145
version="3.3.0",
146146
),
147-
# Via vega-expression
147+
# Via vega-expression (vega-lite also depends on vega-expression)
148148
# The license file included in the NPM package does not exist directly
149149
# in https://github.com/DefinitelyTyped/DefinitelyTyped, so we use an
150150
# unpkg URL to reference the contents of the NPM package instead.
@@ -245,7 +245,7 @@ class Assets:
245245
),
246246
# End dependencies for vega, included in vega/vega.js
247247
# Begin copied/derived/adapted code in vega, included in vega/vega.js
248-
# From vega-util/src/lru-cache.js, "adapted from
248+
# From vega-util/src/lruCache.js, "adapted from
249249
# https://github.com/dominictarr/hashlru/ (MIT License)". Version 1.0.4
250250
# was the current version when the function was added to vega, in
251251
# commit f153863f3575bff1b42294c9cb065d80afb757ff on 2020-02-28.
@@ -359,6 +359,57 @@ class Assets:
359359
sha256="f618900fd0d64046963b29f40590cdd1e341a2f41449f99110d82fd81fea808c",
360360
version="5.2.0",
361361
),
362+
# Begin dependencies for vega-lite, included in vega-lite/vega-lite.js
363+
# Versions from https://github.com/vega/vega-lite/blob/v5.2.0/yarn.lock.
364+
"@types-clone/LICENSE": Asset(
365+
url="https://unpkg.com/@types/clone@{version}/LICENSE",
366+
sha256="c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383",
367+
version="2.1.1",
368+
),
369+
"array-flat-polyfill/LICENSE": Asset(
370+
# Releases are not tagged in git; we use the commit hash
371+
# corresponding to the 1.0.1 release
372+
url="https://raw.githubusercontent.com/jonathantneal/array-flat-polyfill/362d855cb6ea2ef12f0676b116c5f9e4233b6f31/LICENSE.md",
373+
sha256="597756adcb51f243ef4fb386920377f61d012ace0904364e1a8ee9aaec6afc84",
374+
version="1.0.1",
375+
),
376+
"clone/LICENSE": Asset(
377+
url="https://raw.githubusercontent.com/pvorb/clone/refs/tags/v{version}/LICENSE",
378+
sha256="3fb0857ef0133928cf72c88dfc464e931486e88778961eedec25585e2321507f",
379+
version="2.1.2",
380+
),
381+
"fast-deep-equal/LICENSE": Asset(
382+
url="https://raw.githubusercontent.com/epoberezkin/fast-deep-equal/refs/tags/v{version}/LICENSE",
383+
sha256="7bf9b2de73a6b356761c948d0e9eeb4be6c1270bd04c79cd489c1e400ffdfc1a",
384+
version="3.1.3",
385+
),
386+
"fast-json-stable-stringify/LICENSE": Asset(
387+
url="https://raw.githubusercontent.com/epoberezkin/fast-json-stable-stringify/refs/tags/v{version}/LICENSE",
388+
sha256="a833d366242c298cf1b10263516572fb8dcbe68eb5072cdcac2b4546e2b4eb36",
389+
version="2.1.0",
390+
),
391+
"json-stringify-pretty-compact/LICENSE": Asset(
392+
url="https://raw.githubusercontent.com/lydell/json-stringify-pretty-compact/refs/tags/v{version}/LICENSE",
393+
sha256="d0800a7c9b5f723f7fe029f75d3a9ae44173178b9729d1521e18371ab24ae97a",
394+
version="3.0.0",
395+
),
396+
# The tslib package is among vega-lite's direct dependencies, and the
397+
# yarn.lock file shows three versions could be included: 2.2.0, 2.1.0
398+
# (both MIT-licensed), and 1.1.0 (Apache-2.0-licensed). However, we
399+
# found no trace of any of these in the actual vega-lite.js bundle.
400+
# ----
401+
# The following packages are part of vega, and are already covered by
402+
# vega/LICENSE.
403+
# - vega-event-selector: no dependencies
404+
# - vega-expression: depends on vega-util, @types/estree (already
405+
# covered as one of vega's dependencies)
406+
# - vega-util (no dependencies; includes code from hashlru, already
407+
# covered as one of vega's dependencies)
408+
# ----
409+
# End dependencies for vega-lite, included in vega-lite/vega-lite.js
410+
# Begin copied/derived/adapted code in vega-lite, included in vega-lite/vega-lite.js
411+
# - hashlru is included in vega-util; already covered as one of vega's dependencies
412+
# End copied/derived/adapted code in vega-lite, included in vega-lite/vega-lite.js
362413
"vega-embed/vega-embed.js": Asset(
363414
url="https://cdnjs.cloudflare.com/ajax/libs/vega-embed/{version}/vega-embed.js",
364415
sha256="4e546c1f86eb200333606440e92f76e2940b905757018d9672cd1708e4e6ff0a",

0 commit comments

Comments
 (0)