Repository navigation
Upgrade to luma.gl beta.2, math.gl 5.0.0, and loaders.gl rc.2 - #11274
Conversation
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 0d49ab6. Configure here.
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
chrisgervang
left a comment
There was a problem hiding this comment.
Reviewed 097ec22 after merge; follow-ups below.
One P1: the upgrade guide names a luma.gl subpath that beta.2 removed.
Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.
Generated by Claude Code
| layer and extension draws. | ||
|
|
||
| ### loaders.gl and math.gl v5 beta | ||
| ### loaders.gl and math.gl v5 |
There was a problem hiding this comment.
P1: (Outside the diff: docs/upgrade-guide.md:46) The luma.gl section still says WebGPU evaluator operations use /gpu-simple-graph/webgpu. luma.gl beta.2 removed that subpath, so users who follow the guide get an unresolved import. The heading on this line is fine.
@luma.gl/graph10.0.0-beta.2 exports./gpu-simple-graph-webgpuand no./gpu-simple-graph/webgpu.- This PR moved deck's own import in
attribute-buffer-groups.ts:15to the new name. - Line 46 is unchanged on master 9dfa0dc.
Could we change line 46 to @luma.gl/graph/gpu-simple-graph-webgpu?
Generated by Claude Code
| | `@math.gl/polygon`, `@math.gl/culling` | `@math.gl/geometry`, `@math.gl/geometry/culling` | | ||
| | `@loaders.gl/terrain`, `@loaders.gl/wms` | `@loaders.gl/raster/terrain`, `@loaders.gl/ogc/wms` | | ||
| | `@math.gl/types` | `@math.gl/core/types` | | ||
| | `@math.gl/core` (matrix and vector APIs) | `@math.gl/core/matrix` | |
There was a problem hiding this comment.
Non-blocking: math.gl 5.0.0 has no @math.gl/core root entry, and /matrix also exports clamp, equals and config. The qualifier suggests other root imports still work. Could we drop it?
| | `@math.gl/core` (matrix and vector APIs) | `@math.gl/core/matrix` | | |
| | `@math.gl/core` | `@math.gl/core/matrix` | |
Generated by Claude Code
| interleave as interleaveTables | ||
| } from '@luma.gl/graph/gpu-simple-graph'; | ||
| import {interleave as webgpuInterleave} from '@luma.gl/graph/gpu-simple-graph/webgpu'; | ||
| import {interleave as webgpuInterleave} from '@luma.gl/graph/gpu-simple-graph-webgpu'; |
There was a problem hiding this comment.
Non-blocking: (Outside the diff: tsconfig.json:26 and test/modules/react/fiber/tsconfig.json:9) Both still alias the removed @luma.gl/graph/gpu-simple-graph/webgpu. This import is fine and nothing else uses the alias. Could we drop both entries?
Generated by Claude Code
Resolve import conflicts with the math.gl 5.0.0 upgrade (visgl#11274): - path-tesselator.ts: keep the geographic clip imports from this branch, and import subdividePolyline from '@math.gl/geometry/polygon'. - polygon-tesselator.ts: keep the geographic clip imports from this branch, and use the '@math.gl/geometry/polygon' and '@math.gl/core/matrix' subpaths. FlatComplexPolygonGeometry stays removed because this branch no longer uses it. - geographic-clip.ts and geographic-clip.node.spec.ts (no conflict): move the imports to '@math.gl/geospatial/geographic-cuts', '@math.gl/core/matrix' and '@math.gl/geometry/polygon', because math.gl 5.0.0 has no root exports for these packages.
Resolve import conflicts with the math.gl 5.0.0 upgrade (visgl#11274): - tileset-2d/utils.ts: keep the CustomProjectionViewport, MAX_LATITUDE and traversal imports from this branch, and import Matrix4 from '@math.gl/core/matrix'. - tileset-2d/utils.spec.ts: keep the new test imports from this branch, and import Matrix4 from '@math.gl/core/matrix'. - clip.spec.ts (no conflict): import Matrix4 from '@math.gl/core/matrix', because math.gl 5.0.0 has no root export for '@math.gl/core'.
Resolve the import conflict in project-functions.ts: keep the getMeterOffsetsJacobian import from this branch and use the math.gl 5.0.0 subpath imports from visgl#11274. Move the Matrix4 import in meter-offsets-convergence.spec.ts to '@math.gl/core/matrix' to match.
Resolve conflicts with the coordinate system and dependency upgrades on master: - wms-layer.ts: keep the fix that reads `crs` from the stored GetImageParameters, and use the 'lnglat' / 'cartesian' coordinate system strings from visgl#10874. - wms-layer.spec.ts: keep the new URL source test from master and the EPSG:4326 test from this branch. Use the loaders.gl and math.gl subpath imports from visgl#11274, and expect 'lnglat' because COORDINATE_SYSTEM is no longer exported.

Change List
10.0.0-beta.2^5.0.05.0.0-rc.2Workspace build, lint, 423 Node and React tests, v10 example bundling, and the Docusaurus production build passed.
Note
Medium Risk
Upgrades foundational rendering, math, and data loading dependencies across all workspace modules and refactors import subpaths repository-wide.
Overview
Upgrades core vis.gl ecosystem dependencies across all workspace packages and examples:
@luma.glpackages are updated to10.0.0-beta.2,@math.glpackages to^5.0.0, and@loaders.glpackages to5.0.0-rc.2.Migrates import paths across modules, examples, and tests to match published export subpaths in
math.glandloaders.glv5. This primarily moves vector and matrix imports to@math.gl/core/matrix, polygon helpers to@math.gl/geometry/polygon, and updates query and projection subpaths. The upgrade guide is also updated to document these replacement subpaths.Reviewed by Cursor Bugbot for commit 097ec22. Bugbot is set up for automated code reviews on this repo. Configure here.