docs/perspective.md claimed the 4.5.1-core + 4.4.1-d3fc pair was "deliberate and necessary — the only combination that keeps both" inline WASM bundling and d3fc charts, and said do NOT fix it to 4.4.1. That was wrong: it does not keep charts. Loading viewer-d3fc@4.4.1 against a 4.5.x viewer throws `get_static_config is not a function`, once per chart plugin — the newer viewer calls a registration method the older plugins don't implement. Confirmed in the running deployment: no chart type except Datagrid works. So the choice was never "both"; it is inline bundling XOR charts, and dataflow was carrying mixed-version complexity to buy charts it did not have. - pin client/viewer/viewer-datagrid/server exact at 5.2.0 (was ^4.5.1 carets). The explicit `server` pin is required: client declares it as "" (an empty range) which npm resolves to latest, and a mismatched server WASM fails to link with `psp_opfs_load ... requires a callable`. That took pf_app down on 2026-08-10. Five packages to pin, not four. - drop the viewer-d3fc import. Restoring charts would require a coherent 4.4.1 suite, which has no /inline export — trading bundled WASM for runtime fetching, to regain a feature no code path selects by name. Verified: build succeeds; the entry chunk and the Pivot chunk it lazy-imports contain zero CDN URLs and zero runtime `new URL(...perspective-server...)` constructions; the app loads with every non-localhost request aborted, with no console errors. dataflow's exact API surface — plugin.save/restore/draw, view.set_depth, viewer.restore with plugin_config — behaves identically on 4.5.2 and 5.2.0. NOT verified: the pivot rendering end-to-end, which is behind authentication. Worth a manual click-through before merging. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SBt3EtKaP9D2mmWJ6Q4bov
36 lines
899 B
JSON
36 lines
899 B
JSON
{
|
|
"name": "ui",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"lint": "eslint .",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@perspective-dev/client": "5.2.0",
|
|
"@perspective-dev/server": "5.2.0",
|
|
"@perspective-dev/viewer": "5.2.0",
|
|
"@perspective-dev/viewer-datagrid": "5.2.0",
|
|
"react": "^19.2.7",
|
|
"react-dom": "^19.2.7",
|
|
"react-router-dom": "^7.17.0",
|
|
"sql-formatter": "^15.8.1"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.39.4",
|
|
"@tailwindcss/vite": "^4.3.1",
|
|
"@types/react": "^19.2.17",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^6.0.2",
|
|
"eslint": "^9.39.4",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
"globals": "^17.6.0",
|
|
"tailwindcss": "^4.3.1",
|
|
"vite": "^8.0.16"
|
|
}
|
|
}
|