Skip to content

chore: import the current React API from @deck.gl/react/legacy - #11240

Merged
chrisgervang merged 3 commits into
masterfrom
chr/react-legacy-imports
Nov 19, 2026
Merged

chrisgervang merged 3 commits into
masterfrom
chr/react-legacy-imports

Conversation

@chrisgervang

@chrisgervang chrisgervang commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

For #11036

Background

Split out of #11183 to make it smaller. The root and @deck.gl/react/legacy (#11181) export the same API today, so this changes nothing yet. When the root becomes the React renderer in #11183, these files keep the current API.

Change List

  • examples-v10, test apps and the website import @deck.gl/react/legacy
  • deck.gl re-exports DeckGL from @deck.gl/react/legacy
  • examples/ is unchanged: it targets published deck.gl 9.x, which has no /legacy subpath

62 files, one import each.


Generated by Claude Code


Note

Low Risk
Low-risk refactoring that updates import paths to an existing subpath exporting the identical API, introducing no functional or breaking changes.

Overview
Updates internal React imports across examples-v10, test applications, website demos, and the deck.gl main package re-exports to use @deck.gl/react/legacy instead of @deck.gl/react.

This change prepares the codebase for an upcoming new React renderer at the root entry point, ensuring existing examples and tests continue using the legacy React API without altering current runtime behavior.

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

Examples, test apps, the website and `deck.gl` now import `@deck.gl/react/legacy`
instead of the package root. Both export the same API today, so nothing changes
yet; when the root becomes the React renderer (#11183), these keep the current
API. Split out of #11183.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn
@greptile-apps

greptile-apps Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge within the stated local-development scope.

Summary

Moves existing React imports and re-exports to @deck.gl/react/legacy without changing the current API.

  • Examples, test apps, and package exports now use the explicit legacy React entry.

No new actionable issues found. chrisgervang accepted keeping /legacy in examples-v10 and test apps because they use start-local; their published-dependency start limitation remains intentional.

Reviews (3) · Last reviewed commit: "Merge remote-tracking branch 'origin/mas..." · Reviewed by Greptile

Comment thread examples/website/scatterplot/app.tsx Resolved
`examples/` targets published deck.gl 9.x, whose @deck.gl/react has no
`/legacy` subpath, so its standalone `start` would fail to resolve the import.
Only `examples-v10/`, the test apps, the website and `deck.gl` switch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn
chrisgervang pushed a commit that referenced this pull request Nov 19, 2026
`examples/` targets published deck.gl 9.x, whose @deck.gl/react has no
`/legacy` subpath, so it stays on the root import, as in #11240.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn
@coveralls

coveralls commented Nov 19, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 82.385%. remained the same — chr/react-legacy-imports into master

…ports

# Conflicts:
#	examples-v10/website/contour/app.tsx
#	examples-v10/website/heatmap/app.tsx
#	examples-v10/website/screen-grid/app.tsx
@chrisgervang
chrisgervang added this pull request to the merge queue Nov 19, 2026
Merged via the queue into master with commit 68b568d Nov 19, 2026
9 checks passed
@chrisgervang
chrisgervang deleted the chr/react-legacy-imports branch November 19, 2026 17:33
chrisgervang pushed a commit that referenced this pull request Nov 19, 2026
Brings in master, including #11240. The examples-v10 and website import
conflicts take #11240's version, which already imports `/legacy`. The
"Heatmap filtering" whats-new section, which an earlier merge here dropped by
mistake, comes back with master's update.

Master added `_ColorScaleWidget` to @deck.gl/widgets (#11193), so the root
wraps it too, as the wrappers test requires for every widget class.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn

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

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