[9.2] [deps] Update vega to 6.x (#238618)#245387
Merged
markov00 merged 1 commit intoelastic:9.2from Dec 5, 2025
Merged
Conversation
## 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 in `package.json`, and updated their import paths throughout the codebase. - Removed legacy Webpack and Storybook configuration for the old `vega` build, including `noParse` rules and aliases, and updated the import resolver to point to the new `vega-lite` and `vega-tooltip` build directories. **Testing and TypeScript Support** - Added a Jest setup mock for `vega` and `vega-lite` to ensure tests run correctly with the new versions, and updated Jest transform ignore patterns to support new Vega-related packages. - Updated `tsconfig.base.json` to include type definitions for `vega-lite` and `vega-tooltip`. **Babel and Build Tools** - Added `@babel/plugin-syntax-import-attributes` to dependencies and Babel preset to enable the new import attributes syntax. **Test Snapshots** - Updated Vega visualization test snapshots to reflect the new rendering/output from upgraded dependencies. --------- Co-authored-by: Tiago Costa <tiago.costa@elastic.co> (cherry picked from commit d8c23ae) # Conflicts: # package.json # src/platform/packages/shared/kbn-test/jest-preset.js
Contributor
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
|
jeramysoucy
approved these changes
Dec 5, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
mainto9.2:Questions ?
Please refer to the Backport tool documentation