Repository navigation
Unify GPU data and graph execution under @luma.gl/graph/api - #4199
Conversation
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; both previous findings are addressed. SummaryCombines GPU data, graph authoring, compilation, and execution under
No new actionable issues were found in the changes since the previous review.
|
ibgreen
left a comment
There was a problem hiding this comment.
Release follow-up: published, unpatched @deck.gl/core@10.0.0-alpha.3 accepts @luma.gl/graph: ^10.0.0, and its npm ESM/CJS builds (including visgl:webgl-only) still import @luma.gl/graph/gpu-data at runtime. The published layers package imports it too. The Yarn patches here only cover this workspace.
I installed the released core/layers/mesh-layers alpha.3 with graph 10.0.0 in a clean Node consumer: all 12 imports/requires passed (three packages × ESM/CJS × default/WebGL-only). Applying just the two export removals to the installed graph produced ERR_PACKAGE_PATH_NOT_EXPORTED for /gpu-data in all 12; the exact merged manifest independently rejects resolution of /gpu-data in both module formats. This isolates the export break, not a test of a fully built candidate or a current npm regression.
Before a compatible 10.x publish, please preserve the old public exports as compatibility entry points (at minimum /gpu-data for this Deck alpha), or put the removal behind a semver boundary that alpha.3 cannot resolve. A packed smoke test with unpatched Deck alpha.3 would catch this; the local patched-package test cannot.
Goals
Give graph authors one import for GPU data, graph composition, compilation, and execution.
Changes
@luma.gl/graph/api. Keep optional inspection tools at@luma.gl/graph/api/diagnostics./apisection for data, operations, command graphs, and kernels./apiin their source, published declarations, and runtime builds. Preserve the existing picking fix in the core patch.Verification
Note
Low Risk
Low risk as changes are confined to documentation revisions, CI path triggers, and dependency patches updating import specifiers to
@luma.gl/graph/api.Overview
Updates documentation, workflow paths, and dependency patches across the repository to adopt the unified
@luma.gl/graph/apientry point, replacing legacy imports from@luma.gl/graph/gpu-dataand@luma.gl/graph/gpu-graph.Adds and updates Yarn patches for
@deck.gl/core,@deck.gl/layers, and@deck.gl/mesh-layersto importGPUVector,GPUConstant, and vector format utilities from@luma.gl/graph/api. In addition, updates the physics reference GitHub Actions workflow path trigger to monitormodules/graph/src/api/**.Restructures documentation and guides to consolidate GPU data primitives, tables, command graphs, and execution helpers under
/apiand/api/diagnostics. This includes removing obsolete/gpu-dataand/gpu-graphdocumentation pages while adding the new/apiexecution references.Reviewed by Cursor Bugbot for commit db2d602. Bugbot is set up for automated code reviews on this repo. Configure here.