Skip to content

fix: support Altair 6+ Vega-Lite MIME types in FigureAltair#1138

Merged
maartenbreddels merged 2 commits intomasterfrom
fix/altair-6-mime-type
Jan 21, 2026
Merged

fix: support Altair 6+ Vega-Lite MIME types in FigureAltair#1138
maartenbreddels merged 2 commits intomasterfrom
fix/altair-6-mime-type

Conversation

@maartenbreddels
Copy link
Copy Markdown
Contributor

Summary

  • Fix FigureAltair to support Altair 6+ which uses a different MIME type format (application/vnd.vegalite.v6.json instead of +json suffix)
  • Add unit tests for MIME type detection across v4, v5, v6 and error cases
  • Add uv development setup instructions to CLAUDE.md

This is a replacement for #1135 which had indentation issues. Credit to @SAKSHI-DOT693 for identifying the problem.

Test plan

  • Unit tests pass with Altair 5
  • Unit tests pass with Altair 6
  • CI passes

Closes #1127
Closes #1135

🤖 Generated with Claude Code

maartenbreddels and others added 2 commits January 21, 2026 09:47
Altair 6 introduces a new MIME type format (application/vnd.vegalite.v6.json)
that differs from v4/v5 (+json suffix). Update the MIME type detection to
find any vegalite MIME type instead of hardcoding specific versions.

Based on the issue identified in #1135.

Co-Authored-By: SAKSHI-DOT693 <[email protected]>
Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add instructions for setting up dev environment with uv
- Update test/server commands to use uv run
- Add uv.lock to .gitignore

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@maartenbreddels maartenbreddels temporarily deployed to fix/altair-6-mime-type - solara-stable PR #1138 January 21, 2026 08:48 — with Render Destroyed
@maartenbreddels maartenbreddels merged commit ddc3c78 into master Jan 21, 2026
34 checks passed
@EwoutH
Copy link
Copy Markdown
Contributor

EwoutH commented Jan 21, 2026

Thanks a lot for fixing that, really appreciated!

Would a new release be possible?

@SAKSHI-DOT693
Copy link
Copy Markdown
Contributor

Thanks! Glad this helped.

Given that Altair 6 currently breaks FigureAltair for existing users,
this does seem release-worthy to me, but I’ll leave the release timing
and scope to the maintainers.

@maartenbreddels
Copy link
Copy Markdown
Contributor Author

yeah, it's released, thank claude for that :) it managed that very smoothly, also the changelog is up to date: https://solara.dev/changelog

Thanks you all!

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.

altair v6.0.0 breaking change

3 participants