Skip to content

Upgrade to luma.gl beta.1, math.gl rc.2, and loaders.gl rc.1 - #11261

Merged
ibgreen merged 5 commits into
masterfrom
codex/luma-beta1-math-rc2-loaders-rc1
Nov 21, 2026
Merged

ibgreen merged 5 commits into
masterfrom
codex/luma-beta1-math-rc2-loaders-rc1

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Change List

  • Upgrade luma.gl to 10.0.0-beta.1
  • Upgrade math.gl to 5.0.0-rc.2
  • Upgrade loaders.gl to 5.0.0-rc.1
  • Use loaders.gl grouped SQL for URL-backed layers
  • Enable all published top-level SQL scales
  • Introduce _LegendWidget and retain the previous export
  • Update workspace and website lockfiles
  • Resolve the website’s nested geometry dependency
  • Unit tests
  • Documentation
  • Upgrade guide

Workspace and website builds, lint, 423 fast tests, and six Chromium legend tests passed. A WebGPU heatmap test failed in the local full suite and passed in isolation.


Note

Medium Risk
Updates core rendering, math, and data loading dependencies across all modules and modifies SQL query and scale evaluation paths.

Overview
Updates @luma.gl dependencies to 10.0.0-beta.1, @math.gl to 5.0.0-rc.2, and @loaders.gl to 5.0.0-rc.1 across core modules, examples, and the website.

Expands layer SQL features by routing URL-backed grouped SELECT statements to loaders.gl's queryGroupedSQL. In addition, accessor query evaluation now supports numeric, cyclic, and threshold scales alongside existing color scales.

Renames _ColorScaleWidget to _LegendWidget (retaining _ColorScaleWidget as a compatibility alias) and updates legend rendering to handle threshold scales and numeric ranges.

Reviewed by Cursor Bugbot for commit 78215b4. Bugbot is set up for automated code reviews on this repo. Configure here.

@ibgreen
ibgreen marked this pull request as ready for review November 20, 2026 23:29

@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 20, 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-20T23:31:27.526327Z 70bc950 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.

@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 20, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 82.434% (-0.03%) from 82.468% — codex/luma-beta1-math-rc2-loaders-rc1 into master

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

@ibgreen
ibgreen added this pull request to the merge queue Nov 21, 2026
Merged via the queue into master with commit 868c41e Nov 21, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/luma-beta1-math-rc2-loaders-rc1 branch November 21, 2026 00:21

@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 78215b4 after merge; follow-ups below. No P1s.

Versions are consistent: every package.json pins luma.gl 10.0.0-beta.1, math.gl 5.0.0-rc.2 and loaders.gl 5.0.0-rc.1 (except the older test/apps/glsl-debugger), and both lockfiles match. luma.gl core, engine and shaders add no new @deprecated APIs since alpha.17.

Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.


Generated by Claude Code

Comment on lines +387 to +390
Accessors can use top-level SQL scales. Numeric accessors accept linear, square-root,
logarithmic, power, and symmetric-log scales with a numeric `RANGE`. Color
accessors accept sequential, cyclic, diverging, ordinal, quantile, quantize, and
threshold scales.

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.

P2: Readers write function names, and this list gives scale types. A reader cannot guess that sequential is SCALE_COLOR. The only example is a color scale.

Suggested change
Accessors can use top-level SQL scales. Numeric accessors accept linear, square-root,
logarithmic, power, and symmetric-log scales with a numeric `RANGE`. Color
accessors accept sequential, cyclic, diverging, ordinal, quantile, quantize, and
threshold scales.
Accessors can use top-level SQL scales. Numeric accessors accept `SCALE_LINEAR`, `SCALE_SQRT`,
`SCALE_LOG`, `SCALE_POWER`, and `SCALE_SYMLOG` with a numeric `RANGE`. Color accessors accept
`SCALE_COLOR`, `SCALE_CYCLIC`, `SCALE_DIVERGING`, `SCALE_ORDINAL`, `SCALE_QUANTILE`,
`SCALE_QUANTIZE`, and `SCALE_THRESHOLD` with a `PALETTE`.

Could we name the functions and add a numeric example, such as getRadius: {sql: 'SCALE_LINEAR(population, DOMAIN(population), RANGE(2, 20))'}?

Details
  • math.gl rc.2 SQL_SCALE_TYPES maps SCALE_COLOR to sequential and SCALE_POWER to linear with a power transform. Color types reject RANGE and the others require it.
  • Line 397, "Missing values are transparent", only covers color scales now.

Generated by Claude Code

@@ -10,10 +10,10 @@ updates after accessor evaluation completes. The legend appears when a scale res
or a continuous ramp with labels beside the scales. Hover over a ramp or quantile bin to see its value or range, color, and scale type.

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.

P2: Since this PR, numeric scales such as SCALE_LINEAR on getRadius also appear in the legend, as one domain → value row per domain value. The page still says it shows legends for "SQL color accessors" (line 7) and does not describe these rows.

Could we update line 7 and this sentence to cover numeric accessors?

Details
  • evaluateAccessorQueries returns numeric scales in scales, and ColorLegend renders them at color-scale-widget.tsx:181.
  • The Layer._getResolvedColorScales() TSDoc (layer.ts:756 on master) and the class TSDoc (color-scale-widget.tsx:331) still say color scales and RGBA samples.

Generated by Claude Code

const activeBin = hoveredBin ?? focusedBin;
const {domain, thresholds, type} = scale.descriptor;
const {range} = scale.descriptor;
if (range.type === 'numeric') {

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: The numeric and threshold legend branches have no widget test. Could we add one case for each to color-scale-widget.spec.ts?


Generated by Claude Code

export {_ColorScaleWidget, type ColorScaleWidgetProps} from './color-scale-widget';
export {
_LegendWidget,
_LegendWidget as _ColorScaleWidget,

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: _ColorScaleWidget was never published (10.0.0-alpha.1 has no such export). Do we need the alias here and in @deck.gl/react? Without it, the docs could title the props LegendWidgetProps to match the example.


Generated by Claude Code

Comment thread docs/upgrade-guide.md
@@ -96,7 +96,7 @@ layer and extension draws.

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

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: The heading still says beta, and the text now pins rc versions.

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

Generated by Claude Code

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