@lightdash/cli 3.64.0 → 3.65.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,7 +43,8 @@
43
43
  "react-resizable-panels": "4.10.0",
44
44
  "recharts": "3.8.1",
45
45
  "tailwind-merge": "3.5.0",
46
- "tailwindcss-animate": "1.0.7"
46
+ "tailwindcss-animate": "1.0.7",
47
+ "three": "0.186.1"
47
48
  },
48
49
  "devDependencies": {
49
50
  "@types/d3": "7.4.3",
@@ -51,6 +52,7 @@
51
52
  "@types/d3-sankey": "0.12.5",
52
53
  "@types/react": "19.2.14",
53
54
  "@types/react-dom": "19.2.3",
55
+ "@types/three": "0.186.0",
54
56
  "@vitejs/plugin-react": "6.0.1",
55
57
  "autoprefixer": "10.4.20",
56
58
  "oxc-parser": "0.128.0",
@@ -33,7 +33,7 @@ Don't verify your own output. **After you Write or Edit a file, do not Read it b
33
33
 
34
34
  ### Approved packages
35
35
 
36
- `react`, `react-dom`, `@lightdash/query-sdk`, `recharts`, `d3`, `d3-sankey`, `d3-cloud`, `@tanstack/react-query`, `@tanstack/react-table`, `@tanstack/react-virtual`, `react-resizable-panels`, `date-fns`, `html-to-image`, `jspdf`, `lodash-es`, `lucide-react`, `clsx`, `tailwind-merge`, `class-variance-authority`
36
+ `react`, `react-dom`, `@lightdash/query-sdk`, `recharts`, `d3`, `d3-sankey`, `d3-cloud`, `three`, `@tanstack/react-query`, `@tanstack/react-table`, `@tanstack/react-virtual`, `react-resizable-panels`, `date-fns`, `html-to-image`, `jspdf`, `lodash-es`, `lucide-react`, `clsx`, `tailwind-merge`, `class-variance-authority`
37
37
 
38
38
  ### Pre-installed shadcn/ui components
39
39
 
@@ -1270,6 +1270,10 @@ If a Recharts component covers it, **use Recharts** — even if a D3 version wou
1270
1270
 
1271
1271
  When you do need D3, **read `/app/references/d3.md` first.** It contains the React-19 + D3 integration pattern, five worked examples (bar, sankey, sunburst, word cloud, geo choropleth/globe), the cross-cutting rules (`CHART_COLORS`, `filtersFor`, action menu, no-cross-refetch animation), and a common-mistakes table. Don't try to wire D3 from memory — load the reference.
1272
1272
 
1273
+ ## When to use Three.js
1274
+
1275
+ `three` is available for genuinely 3D visualizations **only when the user explicitly asks for 3D** — 3D scatter/surface plots, point clouds, globes with extruded data. Never pick it over Recharts/D3 for a chart that works in 2D. Rules when you do use it: create the renderer/scene in a `useEffect`, drive data updates through refs rather than re-creating the scene, and dispose of geometries, materials, and the renderer in the effect cleanup — leaked WebGL contexts crash the tab after a few remounts. Cap `devicePixelRatio` at 2 and stop the animation loop when the canvas is off-screen.
1276
+
1273
1277
  ## `drillDown()` Reference
1274
1278
 
1275
1279
  The action-menu example above shows typical `drillDown()` usage. For the full API (argument semantics, choosing the drill dimension, and the results-dialog pattern), read `/app/references/drilldown.md`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/cli",
3
- "version": "3.64.0",
3
+ "version": "3.65.1",
4
4
  "description": "Lightdash CLI tool",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -22,8 +22,8 @@
22
22
  "@actions/core": "1.11.1",
23
23
  "@aws-sdk/credential-providers": "3.995.0",
24
24
  "@casl/ability": "6.8.0",
25
- "@lightdash/common": "3.64.0",
26
- "@lightdash/warehouses": "3.64.0",
25
+ "@lightdash/common": "3.65.1",
26
+ "@lightdash/warehouses": "3.65.1",
27
27
  "@sidvind/better-ajv-errors": "7.0.0",
28
28
  "@types/columnify": "1.5.1",
29
29
  "ajv": "8.18.0",