Skip to content

Commit

Permalink
v5.18.0 (#3041)
Browse files Browse the repository at this point in the history
* chore: Bump version numbers and dependencies.
* docs: Update docs build files.
  • Loading branch information
jheer committed Jan 8, 2021
1 parent a313410 commit 0f88592
Show file tree
Hide file tree
Showing 14 changed files with 358 additions and 181 deletions.
2 changes: 1 addition & 1 deletion docs/_data/versions.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vega__latest: '5.17.3'
vega__latest: '5.18.0'
schema: '5'
vega: '5'
interpreter: '1'
Expand Down
102 changes: 95 additions & 7 deletions docs/vega-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,86 @@

var $__namespace = /*#__PURE__*/_interopNamespace($$1);

var name = "vega";
var version = "5.18.0";
var description = "The Vega visualization grammar.";
var keywords = [
"vega",
"visualization",
"interaction",
"dataflow",
"library",
"data",
"d3"
];
var license = "BSD-3-Clause";
var author = "UW Interactive Data Lab (http://idl.cs.washington.edu)";
var main = "build/vega-node.js";
var module = "build/vega.module.js";
var unpkg = "build/vega.min.js";
var jsdelivr = "build/vega.min.js";
var types = "index.d.ts";
var repository = "vega/vega";
var scripts = {
bundle: "rollup -c --config-bundle",
prebuild: "rimraf build && rimraf build-es5",
build: "rollup -c --config-core --config-bundle --config-ie",
postbuild: "node schema-copy",
pretest: "yarn build --config-test",
test: "TZ=America/Los_Angeles tape 'test/**/*-test.js'",
prepublishOnly: "yarn test && yarn build",
postpublish: "./schema-deploy.sh"
};
var dependencies = {
"vega-crossfilter": "~4.0.5",
"vega-dataflow": "~5.7.3",
"vega-encode": "~4.8.3",
"vega-event-selector": "~2.0.6",
"vega-expression": "~4.0.1",
"vega-force": "~4.0.7",
"vega-format": "~1.0.4",
"vega-functions": "~5.11.0",
"vega-geo": "~4.3.8",
"vega-hierarchy": "~4.0.9",
"vega-label": "~1.0.0",
"vega-loader": "~4.4.0",
"vega-parser": "~6.1.2",
"vega-projection": "~1.4.5",
"vega-regression": "~1.0.9",
"vega-runtime": "~6.1.3",
"vega-scale": "~7.1.1",
"vega-scenegraph": "~4.9.2",
"vega-statistics": "~1.7.9",
"vega-time": "~2.0.4",
"vega-transforms": "~4.9.3",
"vega-typings": "~0.19.2",
"vega-util": "~1.16.0",
"vega-view": "~5.9.2",
"vega-view-transforms": "~4.5.8",
"vega-voronoi": "~4.1.5",
"vega-wordcloud": "~4.1.3"
};
var devDependencies = {
"vega-schema": "*"
};
var pkg = {
name: name,
version: version,
description: description,
keywords: keywords,
license: license,
author: author,
main: main,
module: module,
unpkg: unpkg,
jsdelivr: jsdelivr,
types: types,
repository: repository,
scripts: scripts,
dependencies: dependencies,
devDependencies: devDependencies
};

function accessor(fn, fields, name) {
fn.fields = fields || [];
fn.fname = name;
Expand Down Expand Up @@ -23113,8 +23193,6 @@
resolvefilter: ResolveFilter
});

var version = "5.17.3";

const RawCode = 'RawCode';
const Literal = 'Literal';
const Property = 'Property';
Expand Down Expand Up @@ -23312,7 +23390,7 @@
} // 7.6.1.1 Keywords


const keywords = {
const keywords$1 = {
'if': 1,
'in': 1,
'do': 1,
Expand Down Expand Up @@ -23504,7 +23582,7 @@

if (id.length === 1) {
type = TokenIdentifier;
} else if (keywords.hasOwnProperty(id)) {
} else if (keywords$1.hasOwnProperty(id)) {
// eslint-disable-line no-prototype-builtins
type = TokenKeyword;
} else if (id === 'null') {
Expand Down Expand Up @@ -24886,6 +24964,7 @@
const Intersect = 'intersect';
const Union = 'union';
const VlMulti = 'vlMulti';
const VlPoint = 'vlPoint';
const Or = 'or';
const And = 'and';
var TYPE_ENUM = 'E',
Expand Down Expand Up @@ -24996,11 +25075,17 @@
* @param {string} name - The name of the dataset representing the selection
* @param {string} [op='union'] - The set operation for combining selections.
* One of 'intersect' or 'union' (default).
* @param {boolean} isMulti - Identifies a "multi" selection to perform more
* expensive resolution computation.
* @param {boolean} vl5 - With Vega-Lite v5, "multi" selections are now called "point"
* selections, and thus the resolved tuple should reflect this name.
* This parameter allows us to reflect this change without triggering
* a major version bump for Vega.
* @returns {object} An object of selected fields and values.
*/


function selectionResolve(name, op, isMulti) {
function selectionResolve(name, op, isMulti, vl5) {
var data = this.context.data[name],
entries = data ? data.values.value : [],
resolved = {},
Expand Down Expand Up @@ -25055,7 +25140,8 @@
entries = Object.keys(multiRes);

if (isMulti && entries.length) {
resolved[VlMulti] = op === Union ? {
const key = vl5 ? VlPoint : VlMulti;
resolved[key] = op === Union ? {
[Or]: entries.reduce((acc, k) => (acc.push(...multiRes[k]), acc), [])
} : {
[And]: entries.map(k => ({
Expand Down Expand Up @@ -32175,6 +32261,8 @@
// -- Transforms -----
extend(transforms, tx, vtx, encode, geo, force, label, tree, reg, voronoi, wordcloud, xf); // -- Exports -----

const version$1 = pkg.version;

exports.Bounds = Bounds;
exports.CanvasHandler = CanvasHandler;
exports.CanvasRenderer = CanvasRenderer;
Expand Down Expand Up @@ -32389,7 +32477,7 @@
exports.utcdayofyear = utcdayofyear;
exports.utcquarter = utcquarter;
exports.utcweek = utcweek;
exports.version = version;
exports.version = version$1;
exports.visitArray = visitArray;
exports.week = week;
exports.writeConfig = writeConfig;
Expand Down
2 changes: 1 addition & 1 deletion docs/vega-core.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/vega-core.min.js.map

Large diffs are not rendered by default.

102 changes: 95 additions & 7 deletions docs/vega.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,86 @@
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.vega = {}));
}(this, (function (exports) { 'use strict';

var name = "vega";
var version = "5.18.0";
var description = "The Vega visualization grammar.";
var keywords = [
"vega",
"visualization",
"interaction",
"dataflow",
"library",
"data",
"d3"
];
var license = "BSD-3-Clause";
var author = "UW Interactive Data Lab (http://idl.cs.washington.edu)";
var main = "build/vega-node.js";
var module = "build/vega.module.js";
var unpkg = "build/vega.min.js";
var jsdelivr = "build/vega.min.js";
var types = "index.d.ts";
var repository = "vega/vega";
var scripts = {
bundle: "rollup -c --config-bundle",
prebuild: "rimraf build && rimraf build-es5",
build: "rollup -c --config-core --config-bundle --config-ie",
postbuild: "node schema-copy",
pretest: "yarn build --config-test",
test: "TZ=America/Los_Angeles tape 'test/**/*-test.js'",
prepublishOnly: "yarn test && yarn build",
postpublish: "./schema-deploy.sh"
};
var dependencies = {
"vega-crossfilter": "~4.0.5",
"vega-dataflow": "~5.7.3",
"vega-encode": "~4.8.3",
"vega-event-selector": "~2.0.6",
"vega-expression": "~4.0.1",
"vega-force": "~4.0.7",
"vega-format": "~1.0.4",
"vega-functions": "~5.11.0",
"vega-geo": "~4.3.8",
"vega-hierarchy": "~4.0.9",
"vega-label": "~1.0.0",
"vega-loader": "~4.4.0",
"vega-parser": "~6.1.2",
"vega-projection": "~1.4.5",
"vega-regression": "~1.0.9",
"vega-runtime": "~6.1.3",
"vega-scale": "~7.1.1",
"vega-scenegraph": "~4.9.2",
"vega-statistics": "~1.7.9",
"vega-time": "~2.0.4",
"vega-transforms": "~4.9.3",
"vega-typings": "~0.19.2",
"vega-util": "~1.16.0",
"vega-view": "~5.9.2",
"vega-view-transforms": "~4.5.8",
"vega-voronoi": "~4.1.5",
"vega-wordcloud": "~4.1.3"
};
var devDependencies = {
"vega-schema": "*"
};
var pkg = {
name: name,
version: version,
description: description,
keywords: keywords,
license: license,
author: author,
main: main,
module: module,
unpkg: unpkg,
jsdelivr: jsdelivr,
types: types,
repository: repository,
scripts: scripts,
dependencies: dependencies,
devDependencies: devDependencies
};

function accessor(fn, fields, name) {
fn.fields = fields || [];
fn.fname = name;
Expand Down Expand Up @@ -35888,8 +35968,6 @@
resolvefilter: ResolveFilter
});

var version = "5.17.3";

const RawCode = 'RawCode';
const Literal = 'Literal';
const Property = 'Property';
Expand Down Expand Up @@ -36087,7 +36165,7 @@
} // 7.6.1.1 Keywords


const keywords = {
const keywords$1 = {
'if': 1,
'in': 1,
'do': 1,
Expand Down Expand Up @@ -36279,7 +36357,7 @@

if (id.length === 1) {
type = TokenIdentifier;
} else if (keywords.hasOwnProperty(id)) {
} else if (keywords$1.hasOwnProperty(id)) {
// eslint-disable-line no-prototype-builtins
type = TokenKeyword;
} else if (id === 'null') {
Expand Down Expand Up @@ -37661,6 +37739,7 @@
const Intersect = 'intersect';
const Union = 'union';
const VlMulti = 'vlMulti';
const VlPoint = 'vlPoint';
const Or = 'or';
const And = 'and';
var TYPE_ENUM = 'E',
Expand Down Expand Up @@ -37771,11 +37850,17 @@
* @param {string} name - The name of the dataset representing the selection
* @param {string} [op='union'] - The set operation for combining selections.
* One of 'intersect' or 'union' (default).
* @param {boolean} isMulti - Identifies a "multi" selection to perform more
* expensive resolution computation.
* @param {boolean} vl5 - With Vega-Lite v5, "multi" selections are now called "point"
* selections, and thus the resolved tuple should reflect this name.
* This parameter allows us to reflect this change without triggering
* a major version bump for Vega.
* @returns {object} An object of selected fields and values.
*/


function selectionResolve(name, op, isMulti) {
function selectionResolve(name, op, isMulti, vl5) {
var data = this.context.data[name],
entries = data ? data.values.value : [],
resolved = {},
Expand Down Expand Up @@ -37830,7 +37915,8 @@
entries = Object.keys(multiRes);

if (isMulti && entries.length) {
resolved[VlMulti] = op === Union ? {
const key = vl5 ? VlPoint : VlMulti;
resolved[key] = op === Union ? {
[Or]: entries.reduce((acc, k) => (acc.push(...multiRes[k]), acc), [])
} : {
[And]: entries.map(k => ({
Expand Down Expand Up @@ -44950,6 +45036,8 @@
// -- Transforms -----
extend(transforms, tx, vtx, encode, geo, force, label, tree$1, reg, voronoi, wordcloud, xf); // -- Exports -----

const version$1 = pkg.version;

exports.Bounds = Bounds;
exports.CanvasHandler = CanvasHandler;
exports.CanvasRenderer = CanvasRenderer;
Expand Down Expand Up @@ -45164,7 +45252,7 @@
exports.utcdayofyear = utcdayofyear;
exports.utcquarter = utcquarter;
exports.utcweek = utcweek;
exports.version = version;
exports.version = version$1;
exports.visitArray = visitArray;
exports.week = week;
exports.writeConfig = writeConfig;
Expand Down
2 changes: 1 addition & 1 deletion docs/vega.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/vega.min.js.map

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@
"@rollup/plugin-babel": "^5.2.2",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.0.1",
"@types/node": "^14.14.14",
"ajv": "^7.0.2",
"@types/node": "^14.14.20",
"ajv": "^7.0.3",
"ajv-formats": "^1.5.1",
"canvas": "^2.6.1",
"dtslint": "^4.0.6",
"eslint": "^7.16.0",
"eslint": "^7.17.0",
"jsdom": "^16.4.0",
"lerna": "^3.22.1",
"pixelmatch": "^5.2.1",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
"rollup": "^2.35.1",
"rollup": "^2.36.1",
"rollup-plugin-bundle-size": "^1.0.3",
"rollup-plugin-terser": "^7.0.2",
"serve": "^11.3.2",
"tape": "^5.0.1",
"tape": "^5.1.1",
"terser": "^5.5.1",
"typescript": "~4.1.3",
"vega-datasets": "^2.2.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/vega-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vega-cli",
"version": "5.17.3",
"version": "5.18.0",
"description": "Command line utilities for server-side Vega.",
"keywords": [
"vega",
Expand All @@ -21,7 +21,7 @@
},
"dependencies": {
"canvas": "^2.6.1",
"vega": "5.17.3",
"vega": "5.18.0",
"yargs": "16"
}
}

0 comments on commit 0f88592

Please sign in to comment.