Skip to content

chore: upgrade Python bindings to kepler.gl 3.3.0-alpha.4 (React 19) - #3591

Open
igorDykhta wants to merge 4 commits into
masterfrom
igr/bump-bindings-python-to-latest-kepler
Open

chore: upgrade Python bindings to kepler.gl 3.3.0-alpha.4 (React 19)#3591
igorDykhta wants to merge 4 commits into
masterfrom
igr/bump-bindings-python-to-latest-kepler

Conversation

@igorDykhta

@igorDykhta igorDykhta commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Bump all @kepler.gl/* packages to 3.3.0-alpha.4 and align peer deps: React 19, Redux 5, React-Redux 9, TypeScript 5.6.
  • Replace UMD <script> tags in the standalone HTML export with an ESM import map + es-module-shims, since React 19 / Redux 5 / React-Redux 9 no longer publish UMD builds. The shim keeps exported maps working when opened as a local file:// document.
  • Fix Redux v5 TypeScript stricter typing in store.ts (StoreEnhancer cast).
  • Update CI version-check to handle full semver strings (e.g. 3.3.0-alpha.4) in addition to bare major tags.

Test plan

  • npm install && npm run build in bindings/python — JS bundle compiles cleanly.
  • npx tsc --noEmit — no TypeScript errors.
  • uv run pytest tests/ -v — all 101 tests pass.
  • Open a saved .html export in a browser (both via HTTP and from file://) and verify the map loads with kepler.gl 3.3.0-alpha.4.

Signed-off-by: Ihor Dykhta <ihordykhta@Ihors-MacBook-Pro.local>
Copilot AI review requested due to automatic review settings July 28, 2026 22:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Python Jupyter bindings to target the latest kepler.gl release (3.3.0-alpha.4), including aligning the standalone HTML export with the new React/Redux dependency model and updating the TS/JS build dependencies accordingly.

Changes:

  • Bump kepler.gl (and related frontend deps) to 3.3.0-alpha.4 and update the default CDN tag used by HTML export/tests.
  • Update HTML export to load React/Redux/etc via ESM + import maps (es-module-shims) instead of UMD scripts.
  • Adjust Redux store creation typing for Redux v5 in the TypeScript bindings.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
bindings/python/tests/test_html_export.py Updates HTML export assertions for the new kepler.gl CDN version and ESM-based dependency loading.
bindings/python/src/store.ts Switches to legacy_createStore for Redux v5 and removes the TS expect-error via a typed enhancer cast.
bindings/python/package.json Bumps kepler.gl packages and React/Redux ecosystem deps (React 19, Redux 5, React-Redux 9, TS 5.6).
bindings/python/keplergl/_html_export.py Updates default kepler.gl CDN version and changes exported HTML to use import maps + module shims to provide globals for the kepler UMD bundle.
bindings/python/DEVELOPMENT.md Raises Node.js prerequisite to >= 20.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -248,16 +248,20 @@ def test_contains_kepler_gl_cdn_script(self, sample_df):

def test_default_uses_latest_stable_cdn_tag(self, sample_df):
Comment on lines +243 to +246
window.React = React.default || React;
window.ReactDOM = Object.assign({{}}, ReactDOM.default || ReactDOM, ReactDOMClient);
window.Redux = Redux.default || Redux;
window.ReactRedux = ReactRedux.default || ReactRedux;
Signed-off-by: Ihor Dykhta <ihordykhta@Ihors-MacBook-Pro.local>
@igorDykhta igorDykhta changed the title chore: bump python bindings to latest kepler.gl chore: upgrade Python bindings to kepler.gl 3.3.0-alpha.4 (React 19) Jul 28, 2026
@igorDykhta
igorDykhta requested review from ilyabo and lixun910 July 28, 2026 22:33

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

Thank you! 👍

Ihor Dykhta added 2 commits July 29, 2026 04:32
Signed-off-by: Ihor Dykhta <ihordykhta@Ihors-MacBook-Pro.local>
Signed-off-by: Ihor Dykhta <ihordykhta@Ihors-MacBook-Pro.local>
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