Skip to content

Commit

Permalink
v2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
texodus committed Nov 20, 2023
1 parent 7392c2a commit 3401e63
Show file tree
Hide file tree
Showing 43 changed files with 396 additions and 240 deletions.
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
# [v2.7.0](https://github.com/finos/perspective/releases/tag/v2.7.0)

_20 November 2023_ ([Full changelog](https://github.com/finos/perspective/compare/v2.6.1...v2.7.0))

**Breaking**

- X/Y Scatter Symbol Serialization as Dictionary [#2429](https://github.com/finos/perspective/pull/2429)
- Expressions API Updates [#2399](https://github.com/finos/perspective/pull/2399)

Features

- API Versioning + Migration [#2430](https://github.com/finos/perspective/pull/2430)
- `PerspectiveWidget` HTML export support in Jupyter [#2418](https://github.com/finos/perspective/pull/2418)
- Self-extracting WebAssembly binaries [#2428](https://github.com/finos/perspective/pull/2428)

Fixes

- Update `expressions` format default [#2438](https://github.com/finos/perspective/pull/2438)
- Serialize Expressions to Objects [#2436](https://github.com/finos/perspective/pull/2436)
- Column Settings Panel UI Tweaks [#2421](https://github.com/finos/perspective/pull/2421)
- Add support for StringDtype (fixes #1237) [#2319](https://github.com/finos/perspective/pull/2319)

Misc

- Update examples [#2433](https://github.com/finos/perspective/pull/2433)
- Fix expression alias UX/API [#2431](https://github.com/finos/perspective/pull/2431)
- Add CI requirements update script [#2422](https://github.com/finos/perspective/pull/2422)
- Upgrade `pyodide` compatibility to v0.24.1 [#2402](https://github.com/finos/perspective/pull/2402)

# [v2.6.1](https://github.com/finos/perspective/releases/tag/v2.6.1)

_1 November 2023_ ([Full changelog](https://github.com/finos/perspective/compare/v2.6.0...v2.6.1))
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ and/or [Jupyterlab](https://jupyterlab.readthedocs.io/en/stable/).
### Examples

<!-- Examples -->
<table><tbody><tr><td>editable</td><td>file</td><td>fractal</td></tr><tr><td><a href="https://perspective.finos.org/block?example=editable"><img height="125" src="https://perspective.finos.org/blocks/editable/preview.png?"></img></a></td><td><a href="https://perspective.finos.org/block?example=file"><img height="125" src="https://perspective.finos.org/blocks/file/preview.png?"></img></a></td><td><a href="https://perspective.finos.org/block?example=fractal"><img height="125" src="https://perspective.finos.org/blocks/fractal/preview.png?"></img></a></td></tr><tr><td>market</td><td>raycasting</td><td>evictions</td></tr><tr><td><a href="https://perspective.finos.org/block?example=market"><img height="125" src="https://perspective.finos.org/blocks/market/preview.png?"></img></a></td><td><a href="https://perspective.finos.org/block?example=raycasting"><img height="125" src="https://perspective.finos.org/blocks/raycasting/preview.png?"></img></a></td><td><a href="https://perspective.finos.org/block?example=evictions"><img height="125" src="https://perspective.finos.org/blocks/evictions/preview.png?"></img></a></td></tr><tr><td>nypd</td><td>magic</td><td>streaming</td></tr><tr><td><a href="https://perspective.finos.org/block?example=nypd"><img height="125" src="https://perspective.finos.org/blocks/nypd/preview.png?"></img></a></td><td><a href="https://perspective.finos.org/block?example=magic"><img height="125" src="https://perspective.finos.org/blocks/magic/preview.png?"></img></a></td><td><a href="https://perspective.finos.org/block?example=streaming"><img height="125" src="https://perspective.finos.org/blocks/streaming/preview.png?"></img></a></td></tr><tr><td>covid</td><td>movies</td><td>superstore</td></tr><tr><td><a href="https://perspective.finos.org/block?example=covid"><img height="125" src="https://perspective.finos.org/blocks/covid/preview.png?"></img></a></td><td><a href="https://perspective.finos.org/block?example=movies"><img height="125" src="https://perspective.finos.org/blocks/movies/preview.png?"></img></a></td><td><a href="https://perspective.finos.org/block?example=superstore"><img height="125" src="https://perspective.finos.org/blocks/superstore/preview.png?"></img></a></td></tr><tr><td>citibike</td><td>olympics</td><td>jupyterlab</td></tr><tr><td><a href="https://perspective.finos.org/block?example=citibike"><img height="125" src="https://perspective.finos.org/blocks/citibike/preview.png?"></img></a></td><td><a href="https://perspective.finos.org/block?example=olympics"><img height="125" src="https://perspective.finos.org/blocks/olympics/preview.png?"></img></a></td><td><a href="http://beta.mybinder.org/v2/gh/finos/perspective/master?urlpath=lab/tree/examples/jupyter-notebooks"><img height="125" src="https://perspective.finos.org/img/jupyterlab.png?"></img></a></td></tr></tbody></table>
<table><tbody><tr><td>editable</td><td>file</td><td>fractal</td></tr><tr><td><a href="https://perspective.finos.org/block?example=editable"><img height="125" src="https://perspective.finos.org/blocks/editable/preview.png?"></img></a></td><td><a href="https://perspective.finos.org/block?example=file"><img height="125" src="https://perspective.finos.org/blocks/file/preview.png?"></img></a></td><td><a href="https://perspective.finos.org/block?example=fractal"><img height="125" src="https://perspective.finos.org/blocks/fractal/preview.png?"></img></a></td></tr><tr><td>market</td><td>raycasting</td><td>evictions</td></tr><tr><td><a href="https://perspective.finos.org/block?example=market"><img height="125" src="https://perspective.finos.org/blocks/market/preview.png?"></img></a></td><td><a href="https://perspective.finos.org/block?example=raycasting"><img height="125" src="https://perspective.finos.org/blocks/raycasting/preview.png?"></img></a></td><td><a href="https://perspective.finos.org/block?example=evictions"><img height="125" src="https://perspective.finos.org/blocks/evictions/preview.png?"></img></a></td></tr><tr><td>nypd</td><td>magic</td><td>streaming</td></tr><tr><td><a href="https://perspective.finos.org/block?example=nypd"><img height="125" src="https://perspective.finos.org/blocks/nypd/preview.png?"></img></a></td><td><a href="https://perspective.finos.org/block?example=magic"><img height="125" src="https://perspective.finos.org/blocks/magic/preview.png?"></img></a></td><td><a href="https://perspective.finos.org/block?example=streaming"><img height="125" src="https://perspective.finos.org/blocks/streaming/preview.png?"></img></a></td></tr><tr><td>covid</td><td>webcam</td><td>movies</td></tr><tr><td><a href="https://perspective.finos.org/block?example=covid"><img height="125" src="https://perspective.finos.org/blocks/covid/preview.png?"></img></a></td><td><a href="https://perspective.finos.org/block?example=webcam"><img height="125" src="https://perspective.finos.org/blocks/webcam/preview.png?"></img></a></td><td><a href="https://perspective.finos.org/block?example=movies"><img height="125" src="https://perspective.finos.org/blocks/movies/preview.png?"></img></a></td></tr><tr><td>superstore</td><td>citibike</td><td>olympics</td></tr><tr><td><a href="https://perspective.finos.org/block?example=superstore"><img height="125" src="https://perspective.finos.org/blocks/superstore/preview.png?"></img></a></td><td><a href="https://perspective.finos.org/block?example=citibike"><img height="125" src="https://perspective.finos.org/blocks/citibike/preview.png?"></img></a></td><td><a href="https://perspective.finos.org/block?example=olympics"><img height="125" src="https://perspective.finos.org/blocks/olympics/preview.png?"></img></a></td></tr><tr><td>jupyterlab</td></tr><tr><td><a href="http://beta.mybinder.org/v2/gh/finos/perspective/master?urlpath=lab/tree/examples/jupyter-notebooks"><img height="125" src="https://perspective.finos.org/img/jupyterlab.png?"></img></a></td></tr></tbody></table>
<!-- Examples -->

### Documentation
Expand Down
2 changes: 1 addition & 1 deletion cpp/perspective/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"author": "The Perspective Authors",
"license": "Apache-2.0",
"version": "2.6.1",
"version": "2.7.0",
"main": "./dist/esm/perspective.cpp.js",
"files": [
"dist/esm/**/*",
Expand Down
14 changes: 7 additions & 7 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@finos/perspective-docs",
"version": "2.6.1",
"version": "2.7.0",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
Expand All @@ -16,13 +16,13 @@
"dependencies": {
"@docusaurus/core": "2.2.0",
"@docusaurus/preset-classic": "2.2.0",
"@finos/perspective": "^2.6.1",
"@finos/perspective-viewer": "^2.6.1",
"@finos/perspective-viewer-d3fc": "^2.6.1",
"@finos/perspective-viewer-datagrid": "^2.6.1",
"@finos/perspective-webpack-plugin": "^2.6.1",
"@finos/perspective": "^2.7.0",
"@finos/perspective-viewer": "^2.7.0",
"@finos/perspective-viewer-d3fc": "^2.7.0",
"@finos/perspective-viewer-datagrid": "^2.7.0",
"@finos/perspective-webpack-plugin": "^2.7.0",
"@mdx-js/react": "^1.6.22",
"blocks": "^2.6.1",
"blocks": "^2.7.0",
"clsx": "^1.1.1",
"prism-react-renderer": "^1.3.3",
"react": "^17.0.2",
Expand Down
14 changes: 7 additions & 7 deletions examples/blocks/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "blocks",
"private": true,
"version": "2.6.1",
"version": "2.7.0",
"description": "A collection of simple client-side Perspective examples for `http://bl.ocks.org`.",
"scripts": {
"start": "mkdirp dist && node server.mjs"
Expand All @@ -10,12 +10,12 @@
"keywords": [],
"license": "Apache-2.0",
"dependencies": {
"@finos/perspective": "^2.6.1",
"@finos/perspective-viewer": "^2.6.1",
"@finos/perspective-viewer-d3fc": "^2.6.1",
"@finos/perspective-viewer-datagrid": "^2.6.1",
"@finos/perspective-viewer-openlayers": "^2.6.1",
"@finos/perspective-workspace": "^2.6.1",
"@finos/perspective": "^2.7.0",
"@finos/perspective-viewer": "^2.7.0",
"@finos/perspective-viewer-d3fc": "^2.7.0",
"@finos/perspective-viewer-datagrid": "^2.7.0",
"@finos/perspective-viewer-openlayers": "^2.7.0",
"@finos/perspective-workspace": "^2.7.0",
"superstore-arrow": "3.0.0"
}
}
57 changes: 29 additions & 28 deletions examples/blocks/src/webcam/layouts.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,33 @@
[
{
"plugin": "Datagrid",
"plugin_config": {
"columns": {
"color": {
"fixed": 0,
"bg_gradient": 251.04,
"neg_bg_color": "#ffa38f",
"number_bg_mode": "gradient",
"number_fg_mode": "disabled",
"pos_bg_color": "#346ead"
}
},
"editable": false,
"scroll_lock": false
},
"title": "Spreadsheet Cam",
"group_by": ["y"],
"split_by": ["x"],
"columns": ["color"],
"filter": [],
"sort": [],
"expressions": {
"New Column 1": "bucket(\"color\", 5)",
"y": "floor(\"index\" / 80)",
"x": "-\"index\" % 80"
},
"aggregates": {}
},
{
"plugin": "Heatmap",
"title": "Heatmap Cam",
Expand Down Expand Up @@ -30,34 +59,6 @@
},
"aggregates": {}
},
{
"plugin": "Datagrid",
"plugin_config": {
"columns": {
"color": {
"bg_gradient": 251.04,
"neg_bg_color": "#ffa38f",
"number_bg_mode": "gradient",
"number_fg_mode": "disabled",
"pos_bg_color": "#346ead"
}
},
"editable": false,
"scroll_lock": false
},
"title": "Spreadsheet Cam",
"group_by": ["y"],
"split_by": ["x"],
"columns": ["color"],
"filter": [],
"sort": [],
"expressions": {
"New Column 1": "bucket(\"color\", 5)",
"y": "floor(\"index\" / 80)",
"x": "-\"index\" % 80"
},
"aggregates": {}
},
{
"plugin": "Y Bar",
"plugin_config": {},
Expand Down
7 changes: 6 additions & 1 deletion examples/blocks/src/webcam/webcam.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ window.addEventListener("DOMContentLoaded", async function () {
const select = document.querySelector("select");
const viewer = document.querySelector("perspective-viewer");
viewer.load(table);
viewer.restore({ settings, ...layouts[0] });
await viewer.restore({ settings, ...layouts[0] });
const regular_table = document.querySelector("regular-table");
regular_table.scrollTop =
regular_table.scrollHeight / 2 - regular_table.clientHeight / 2;
regular_table.scrollLeft =
regular_table.scrollWidth / 2 - regular_table.clientWidth / 2;
for (const layout of layouts) {
const option = document.createElement("option");
option.value = layout.title;
Expand Down
14 changes: 7 additions & 7 deletions examples/esbuild-example/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "esbuild-example",
"private": true,
"version": "2.6.1",
"version": "2.7.0",
"description": "An esbuild example app built using `@finos/perspective-viewer`.",
"scripts": {
"build": "node build.js",
Expand All @@ -10,15 +10,15 @@
"keywords": [],
"license": "Apache-2.0",
"dependencies": {
"@finos/perspective": "^2.6.1",
"@finos/perspective-viewer": "^2.6.1",
"@finos/perspective-viewer-d3fc": "^2.6.1",
"@finos/perspective-viewer-datagrid": "^2.6.1",
"@finos/perspective-viewer-openlayers": "^2.6.1",
"@finos/perspective": "^2.7.0",
"@finos/perspective-viewer": "^2.7.0",
"@finos/perspective-viewer-d3fc": "^2.7.0",
"@finos/perspective-viewer-datagrid": "^2.7.0",
"@finos/perspective-viewer-openlayers": "^2.7.0",
"superstore-arrow": "^3.0.0"
},
"devDependencies": {
"@finos/perspective-esbuild-plugin": "^2.6.1",
"@finos/perspective-esbuild-plugin": "^2.7.0",
"esbuild": "^0.14.54",
"http-server": "^0.11.1"
}
Expand Down
12 changes: 6 additions & 6 deletions examples/esbuild-remote/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"name": "esbuild-remote",
"private": true,
"version": "2.6.1",
"version": "2.7.0",
"description": "An example of 2 Perspectives, one client and one server, streaming via Apache Arrow.",
"scripts": {
"start": "node build.js && node server/index.mjs"
},
"keywords": [],
"license": "Apache-2.0",
"dependencies": {
"@finos/perspective": "^2.6.1",
"@finos/perspective-viewer": "^2.6.1",
"@finos/perspective-viewer-d3fc": "^2.6.1",
"@finos/perspective-viewer-datagrid": "^2.6.1",
"@finos/perspective": "^2.7.0",
"@finos/perspective-viewer": "^2.7.0",
"@finos/perspective-viewer-d3fc": "^2.7.0",
"@finos/perspective-viewer-datagrid": "^2.7.0",
"express": "^4.17.1",
"express-ws": "^5.0.2"
},
"devDependencies": {
"@finos/perspective-esbuild-plugin": "^2.6.1",
"@finos/perspective-esbuild-plugin": "^2.7.0",
"esbuild": "^0.14.54"
}
}
10 changes: 5 additions & 5 deletions examples/git-history/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "git-history",
"private": true,
"version": "2.6.1",
"version": "2.7.0",
"description": "An example of Perspective's own GIT history rendered in Perspective.",
"scripts": {
"start": "node server.js"
},
"keywords": [],
"license": "Apache-2.0",
"dependencies": {
"@finos/perspective": "^2.6.1",
"@finos/perspective-viewer": "^2.6.1",
"@finos/perspective-viewer-d3fc": "^2.6.1",
"@finos/perspective-viewer-datagrid": "^2.6.1"
"@finos/perspective": "^2.7.0",
"@finos/perspective-viewer": "^2.7.0",
"@finos/perspective-viewer-d3fc": "^2.7.0",
"@finos/perspective-viewer-datagrid": "^2.7.0"
}
}
14 changes: 7 additions & 7 deletions examples/promo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "promo",
"private": true,
"version": "2.6.1",
"version": "2.7.0",
"description": "An puppeteer-guided demo of Perspective's functionality, as seen on Github.",
"scripts": {
"dev": "webpack-dev-server --open",
Expand All @@ -13,14 +13,14 @@
"keywords": [],
"license": "Apache-2.0",
"dependencies": {
"@finos/perspective": "^2.6.1",
"@finos/perspective-viewer": "^2.6.1",
"@finos/perspective-viewer-d3fc": "^2.6.1",
"@finos/perspective-viewer-datagrid": "^2.6.1",
"@finos/perspective-workspace": "^2.6.1"
"@finos/perspective": "^2.7.0",
"@finos/perspective-viewer": "^2.7.0",
"@finos/perspective-viewer-d3fc": "^2.7.0",
"@finos/perspective-viewer-datagrid": "^2.7.0",
"@finos/perspective-workspace": "^2.7.0"
},
"devDependencies": {
"@finos/perspective-webpack-plugin": "^2.6.1",
"@finos/perspective-webpack-plugin": "^2.7.0",
"http-server": "^0.11.1",
"npm-run-all": "^4.1.3",
"rimraf": "^2.5.2"
Expand Down
14 changes: 7 additions & 7 deletions examples/python-aiohttp/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"name": "python-aiohttp",
"private": true,
"version": "2.6.1",
"version": "2.7.0",
"description": "An example of editing a `perspective-python` server from the browser.",
"scripts": {
"start": "PYTHONPATH=../../python/perspective python3 server.py"
},
"keywords": [],
"license": "Apache-2.0",
"dependencies": {
"@finos/perspective": "^2.6.1",
"@finos/perspective-viewer": "^2.6.1",
"@finos/perspective-viewer-d3fc": "^2.6.1",
"@finos/perspective-viewer-datagrid": "^2.6.1",
"@finos/perspective-workspace": "^2.6.1",
"@finos/perspective": "^2.7.0",
"@finos/perspective-viewer": "^2.7.0",
"@finos/perspective-viewer-d3fc": "^2.7.0",
"@finos/perspective-viewer-datagrid": "^2.7.0",
"@finos/perspective-workspace": "^2.7.0",
"superstore-arrow": "^3.0.0"
},
"devDependencies": {
"@finos/perspective-webpack-plugin": "^2.6.1",
"@finos/perspective-webpack-plugin": "^2.7.0",
"npm-run-all": "^4.1.3",
"rimraf": "^2.5.2"
}
Expand Down
14 changes: 7 additions & 7 deletions examples/python-starlette/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"name": "python-starlette",
"private": true,
"version": "2.6.1",
"version": "2.7.0",
"description": "An example of editing a `perspective-python` server from the browser.",
"scripts": {
"start": "PYTHONPATH=../../python/perspective python3 server.py"
},
"keywords": [],
"license": "Apache-2.0",
"dependencies": {
"@finos/perspective": "^2.6.1",
"@finos/perspective-viewer": "^2.6.1",
"@finos/perspective-viewer-d3fc": "^2.6.1",
"@finos/perspective-viewer-datagrid": "^2.6.1",
"@finos/perspective-workspace": "^2.6.1",
"@finos/perspective": "^2.7.0",
"@finos/perspective-viewer": "^2.7.0",
"@finos/perspective-viewer-d3fc": "^2.7.0",
"@finos/perspective-viewer-datagrid": "^2.7.0",
"@finos/perspective-workspace": "^2.7.0",
"superstore-arrow": "^3.0.0"
},
"devDependencies": {
"@finos/perspective-webpack-plugin": "^2.6.1",
"@finos/perspective-webpack-plugin": "^2.7.0",
"npm-run-all": "^4.1.3",
"rimraf": "^2.5.2"
}
Expand Down
14 changes: 7 additions & 7 deletions examples/python-tornado-streaming/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"name": "python-tornado-streaming",
"private": true,
"version": "2.6.1",
"version": "2.7.0",
"description": "An example of streaming a `perspective-python` server to the browser.",
"scripts": {
"start": "PYTHONPATH=../../python/perspective python3 server.py"
},
"keywords": [],
"license": "Apache-2.0",
"dependencies": {
"@finos/perspective": "^2.6.1",
"@finos/perspective-viewer": "^2.6.1",
"@finos/perspective-viewer-d3fc": "^2.6.1",
"@finos/perspective-viewer-datagrid": "^2.6.1",
"@finos/perspective-workspace": "^2.6.1",
"@finos/perspective": "^2.7.0",
"@finos/perspective-viewer": "^2.7.0",
"@finos/perspective-viewer-d3fc": "^2.7.0",
"@finos/perspective-viewer-datagrid": "^2.7.0",
"@finos/perspective-workspace": "^2.7.0",
"superstore-arrow": "^3.0.0"
},
"devDependencies": {
"@finos/perspective-webpack-plugin": "^2.6.1",
"@finos/perspective-webpack-plugin": "^2.7.0",
"npm-run-all": "^4.1.3",
"rimraf": "^2.5.2"
}
Expand Down
Loading

0 comments on commit 3401e63

Please sign in to comment.