-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[deps] Update vega to 6.x #238618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[deps] Update vega to 6.x #238618
Conversation
…urce-definitions/scripts/fix-location-collection.ts'
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/streams --include-path /api/fleet --include-path /api/saved_objects/_import --include-path /api/saved_objects/_export --include-path /api/maintenance_window --include-path /api/agent_builder --update'
… into markov-2025_10_13-update_vega_6
dd9445b to
fd08d83
Compare
|
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you for this. The new dep has a good health score, but for posterity's sake, could you include the answers to all of the check list questions in the description?
src/platform/packages/shared/kbn-test/src/jest/setup/mocks.vega.js
Outdated
Show resolved
Hide resolved
@jeramysoucy This dependency is actually not a new one, it was already available as dependency of |
@markov00 Ah, ok. Thanks for clarifying that. I have no concern at all to keep it in, especially if the alternative is unfavorable. I just wanted to make sure we documented any alternatives and the reason for picking this one. |
nickofthyme
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing! ❤️
alvarezmelissa87
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and ML changes LGTM ⚡
csr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codeowner changes LGTM
💔 Build Failed
Failed CI StepsHistory
cc @markov00 |
Summary
Update Vega dependencies to 6.x.
This pull request updates the project's Vega and Vega-Lite dependencies to their latest major versions.
Dependency Upgrades and Import Handling
Upgraded
vega,vega-lite,vega-interpreter,vega-tooltip, and related libraries to their latest major versions inpackage.json, and updated their import paths throughout the codebase.Removed legacy Webpack and Storybook configuration for the old
vegabuild, includingnoParserules and aliases, and updated the import resolver to point to the newvega-liteandvega-tooltipbuild directories.Testing and TypeScript Support
vegaandvega-liteto ensure tests run correctly with the new versions, and updated Jest transform ignore patterns to support new Vega-related packages.tsconfig.base.jsonto include type definitions forvega-liteandvega-tooltip.Babel and Build Tools
@babel/plugin-syntax-import-attributesto dependencies and Babel preset to enable the new import attributes syntax.Test Snapshots
### Dependency added@babel/plugin-syntax-import-attributes- [x] Purpose: This plugin allows Babel to parse the JavaScript Import Attributes syntax without transforming it.- [x] Justification: Vega 6 and Vega-Lite uses this import attribute syntax in multiple places, for examplehttps://github.com/vega/vega/blob/b89378d5b8ac3af85a2c2f51112345a1ba50db99/packages/vega/index.js#L24
- [x] Alternatives explored: I was trying using@babel/generator's as suggested here but wasn't able to properly make it working.- [x] Existing dependencies: As described above, it can probably be possible to use babel generators for that but it was not working.The initial use of
@babel/plugin-syntax-import-attributeswas replace with the use of@babel/generatoras suggested here