Skip to content

Upgrade to luma.gl beta.2, math.gl 5.0.0, and loaders.gl rc.2 - #11274

Merged
ibgreen merged 6 commits into
masterfrom
codex/luma-beta2-math5-loaders-rc2
Nov 21, 2026
Merged

ibgreen merged 6 commits into
masterfrom
codex/luma-beta2-math5-loaders-rc2

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Change List

  • Upgrade luma.gl to 10.0.0-beta.2
  • Set math.gl ranges to ^5.0.0
  • Upgrade loaders.gl to 5.0.0-rc.2
  • Migrate imports to published package subpaths
  • Update workspace and website lockfiles
  • Preserve legacy math.gl resolution in the docs build
  • Upgrade guide

Workspace 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.gl packages are updated to 10.0.0-beta.2, @math.gl packages to ^5.0.0, and @loaders.gl packages to 5.0.0-rc.2.

Migrates import paths across modules, examples, and tests to match published export subpaths in math.gl and loaders.gl v5. 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.

@ibgreen
ibgreen marked this pull request as ready for review November 21, 2026 21:27

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T21:28:15.419429Z 0d49ab6 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ 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.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@coveralls

coveralls commented Nov 21, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 82.845%. remained the same — codex/luma-beta2-math5-loaders-rc2 into master

@ibgreen
ibgreen merged commit e646bc9 into master Nov 21, 2026
8 checks passed
@ibgreen
ibgreen deleted the codex/luma-beta2-math5-loaders-rc2 branch November 21, 2026 21:51

@chrisgervang chrisgervang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread docs/upgrade-guide.md
layer and extension draws.

### loaders.gl and math.gl v5 beta
### loaders.gl and math.gl v5

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/graph 10.0.0-beta.2 exports ./gpu-simple-graph-webgpu and no ./gpu-simple-graph/webgpu.
  • This PR moved deck's own import in attribute-buffer-groups.ts:15 to 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

Comment thread docs/upgrade-guide.md
| `@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` |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Suggested change
| `@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';

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

athomct pushed a commit to chesapeake-tech/deck.gl that referenced this pull request Nov 23, 2026
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.
athomct pushed a commit to chesapeake-tech/deck.gl that referenced this pull request Nov 23, 2026
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'.
athomct pushed a commit to chesapeake-tech/deck.gl that referenced this pull request Nov 23, 2026
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.
athomct pushed a commit to chesapeake-tech/deck.gl that referenced this pull request Nov 23, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants