Repository navigation
[deps] Upgrade uuid to v14 - #9663
Conversation
Upgrades uuid from ^8.3.0 to ^14.0.0 in @elastic/eui to address the vulnerability reported in elastic/security#10881. Also removes @types/uuid since uuid v14 ships its own TypeScript types. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
uuid v14 ships only ESM builds. Jest runs in CJS mode and Babel's file-relative .babelrc.js stops at the package.json boundary, so it never applies to files inside node_modules/uuid/. Fix by: - Adding transformIgnorePatterns to opt uuid into Babel transformation - Passing configFile explicitly to babel-jest so the project babelrc applies to node_modules files being transformed - Removing the redundant moduleNameMapper entry for uuid (was mapping uuid to itself) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
There was a problem hiding this comment.
Pull request overview
Upgrades the uuid dependency in @elastic/eui from v8 to v14, removes the now-unneeded @types/uuid (uuid v14 ships its own types), and adjusts Jest configuration to handle uuid's ESM-only build by enabling Babel transformation of the package and pointing babel-jest at the project's .babelrc.js explicitly.
Changes:
- Bump
uuidto^14.0.0and drop@types/uuidinpackages/eui/package.jsonandyarn.lock. - Update Jest config to add
transformIgnorePatternsallowlistinguuidand passconfigFiletobabel-jest. - Remove the now-redundant
'^uuid$'moduleNameMapperentry.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/eui/package.json | Bumps uuid to ^14.0.0 and removes the @types/uuid devDependency. |
| yarn.lock | Resolves uuid to 14.0.0 and removes the @types/uuid@^8.3.0 entry. |
| packages/eui/scripts/jest/config.js | Adds transformIgnorePatterns for uuid, sets explicit configFile for babel-jest, removes uuid moduleNameMapper. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "url-parse": "^1.5.10", | ||
| "use-sync-external-store": "^1.6.0", | ||
| "uuid": "^8.3.0", | ||
| "uuid": "^14.0.0", |
💚 Build Succeeded
History
cc @acstll |
💚 Build SucceededHistory
cc @acstll |
| '^.+\\.(js|tsx?)$': ['babel-jest', { | ||
| configFile: path.resolve(__dirname, '../../.babelrc.js'), | ||
| }], |
There was a problem hiding this comment.
@tkajtoch there's also this other approach to solve the same problem: elastic/elastic-charts@f7c3837
i don't specially like neither, but you probably have a more informed opinion…
There was a problem hiding this comment.
Either one is fine. Reusing our .babelrc feels like a good idea here and causes no config duplication
|
Code changes look good. I'm going to create a snapshot release of this and test it against Kibana to be 100% sure |
|
We can merge if Kibana CI is green: elastic/kibana#271204 |
tkajtoch
left a comment
There was a problem hiding this comment.
Kibana CI passed without unexpected errors - https://buildkite.com/elastic/kibana-pull-request/builds/448014#019e63fd-a6cb-4ab7-ba71-e9cfcf1f8953
LGTM ![]()
## Dependency updates - `@elastic/eui` - v116.1.0 ⏩ v116.2.0 --- ## Package updates ### @elastic/eui [`v116.2.0`](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added experimental support for always-visible sticky horizontal scrollbars in `EuiTable`, `EuiBasicTable` and `EuiInMemoryTable` useful for dense tables that exceed the height of the viewport. This feature is currently opt-in and can be enabled by setting `stickyScrollbar: true`. ([#9674](elastic/eui#9674)) - Added `significantEvents` glyph to `EuiIcon` ([#9665](elastic/eui#9665)) **Bug fixes** - Fixed `EuiDataGrid` incorrectly styling disabled `cellActions` icon buttons and making them look like they were not disabled ([#9672](elastic/eui#9672)) - Fixed a visual misalignment on `EuiSelectableTemplateSitewide` list items when search terms are highlighted ([#9669](elastic/eui#9669)) **Dependency updates** - Updated `uuid` to v14.0.0 ([#9663](elastic/eui#9663)) Co-authored-by: Claude Sonnet 4.6 <[email protected]>
## Dependency updates - `@elastic/eui` - v116.1.0 ⏩ v116.2.0 --- ## Package updates ### @elastic/eui [`v116.2.0`](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added experimental support for always-visible sticky horizontal scrollbars in `EuiTable`, `EuiBasicTable` and `EuiInMemoryTable` useful for dense tables that exceed the height of the viewport. This feature is currently opt-in and can be enabled by setting `stickyScrollbar: true`. ([elastic#9674](elastic/eui#9674)) - Added `significantEvents` glyph to `EuiIcon` ([elastic#9665](elastic/eui#9665)) **Bug fixes** - Fixed `EuiDataGrid` incorrectly styling disabled `cellActions` icon buttons and making them look like they were not disabled ([elastic#9672](elastic/eui#9672)) - Fixed a visual misalignment on `EuiSelectableTemplateSitewide` list items when search terms are highlighted ([elastic#9669](elastic/eui#9669)) **Dependency updates** - Updated `uuid` to v14.0.0 ([elastic#9663](elastic/eui#9663)) Co-authored-by: Claude Sonnet 4.6 <[email protected]>
## Dependency updates - `@elastic/eui` - v116.1.0 ⏩ v116.2.0 --- ## Package updates ### @elastic/eui [`v116.2.0`](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added experimental support for always-visible sticky horizontal scrollbars in `EuiTable`, `EuiBasicTable` and `EuiInMemoryTable` useful for dense tables that exceed the height of the viewport. This feature is currently opt-in and can be enabled by setting `stickyScrollbar: true`. ([elastic#9674](elastic/eui#9674)) - Added `significantEvents` glyph to `EuiIcon` ([elastic#9665](elastic/eui#9665)) **Bug fixes** - Fixed `EuiDataGrid` incorrectly styling disabled `cellActions` icon buttons and making them look like they were not disabled ([elastic#9672](elastic/eui#9672)) - Fixed a visual misalignment on `EuiSelectableTemplateSitewide` list items when search terms are highlighted ([elastic#9669](elastic/eui#9669)) **Dependency updates** - Updated `uuid` to v14.0.0 ([elastic#9663](elastic/eui#9663)) Co-authored-by: Claude Sonnet 4.6 <[email protected]>
## Dependency updates - `@elastic/eui` - v116.1.0 ⏩ v116.2.0 --- ## Package updates ### @elastic/eui [`v116.2.0`](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Added experimental support for always-visible sticky horizontal scrollbars in `EuiTable`, `EuiBasicTable` and `EuiInMemoryTable` useful for dense tables that exceed the height of the viewport. This feature is currently opt-in and can be enabled by setting `stickyScrollbar: true`. ([elastic#9674](elastic/eui#9674)) - Added `significantEvents` glyph to `EuiIcon` ([elastic#9665](elastic/eui#9665)) **Bug fixes** - Fixed `EuiDataGrid` incorrectly styling disabled `cellActions` icon buttons and making them look like they were not disabled ([elastic#9672](elastic/eui#9672)) - Fixed a visual misalignment on `EuiSelectableTemplateSitewide` list items when search terms are highlighted ([elastic#9669](elastic/eui#9669)) **Dependency updates** - Updated `uuid` to v14.0.0 ([elastic#9663](elastic/eui#9663)) Co-authored-by: Claude Sonnet 4.6 <[email protected]>
Summary
uuidfrom^8.3.0to^14.0.0in@elastic/eui@types/uuid— uuid v14 ships its own TypeScript typestransformIgnorePatternsto opt uuid into Babel transformation, and passesconfigFileexplicitly tobabel-jestso the project.babelrc.jsapplies across thenode_modulespackage boundary. Also removes a redundantmoduleNameMapperentry for uuid.Test plan
html_id_generatorandmatch_containerstill function correctly (both usev1which remains available in v14)🤖 Generated with Claude Code