Skip to content

[deps] Upgrade uuid to v14 - #9663

Merged
acstll merged 3 commits into
elastic:mainfrom
acstll:upgrade/uuid-v14
May 26, 2026
Merged

acstll merged 3 commits into
elastic:mainfrom
acstll:upgrade/uuid-v14

Conversation

@acstll

@acstll acstll commented May 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Upgrades uuid from ^8.3.0 to ^14.0.0 in @elastic/eui
  • Removes @types/uuid — uuid v14 ships its own TypeScript types
  • Fixes Jest config to handle uuid v14's ESM-only builds: adds transformIgnorePatterns to opt uuid into Babel transformation, and passes configFile explicitly to babel-jest so the project .babelrc.js applies across the node_modules package boundary. Also removes a redundant moduleNameMapper entry for uuid.

Test plan

  • TypeScript compiles without errors
  • Jest test suite passes (uuid v14 is now correctly transformed for CJS environments)
  • html_id_generator and match_container still function correctly (both use v1 which remains available in v14)

🤖 Generated with Claude Code

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]>
@acstll acstll added the skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) label May 15, 2026
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]>
@acstll
acstll marked this pull request as ready for review May 15, 2026 11:29
@acstll
acstll requested a review from a team as a code owner May 15, 2026 11:29
Copilot AI review requested due to automatic review settings May 15, 2026 11:29
@acstll acstll self-assigned this May 15, 2026

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

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 uuid to ^14.0.0 and drop @types/uuid in packages/eui/package.json and yarn.lock.
  • Update Jest config to add transformIgnorePatterns allowlisting uuid and pass configFile to babel-jest.
  • Remove the now-redundant '^uuid$' moduleNameMapper entry.

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.

Comment thread packages/eui/package.json
"url-parse": "^1.5.10",
"use-sync-external-store": "^1.6.0",
"uuid": "^8.3.0",
"uuid": "^14.0.0",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

2205f8f 👍

@acstll acstll removed the skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) label May 15, 2026
@elasticmachine

Copy link
Copy Markdown
Collaborator

💚 Build Succeeded

History

cc @acstll

@elasticmachine

Copy link
Copy Markdown
Collaborator

💚 Build Succeeded

History

cc @acstll

@tkajtoch
tkajtoch self-requested a review May 15, 2026 16:08
Comment on lines +65 to +67
'^.+\\.(js|tsx?)$': ['babel-jest', {
configFile: path.resolve(__dirname, '../../.babelrc.js'),
}],

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@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…

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.

Either one is fine. Reusing our .babelrc feels like a good idea here and causes no config duplication

@tkajtoch

Copy link
Copy Markdown
Contributor

Code changes look good. I'm going to create a snapshot release of this and test it against Kibana to be 100% sure

@tkajtoch

Copy link
Copy Markdown
Contributor

We can merge if Kibana CI is green: elastic/kibana#271204

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

@acstll
acstll merged commit 5f02bfb into elastic:main May 26, 2026
2 checks passed
acstll added a commit to elastic/kibana that referenced this pull request May 27, 2026
## 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]>
smith pushed a commit to smith/kibana that referenced this pull request May 27, 2026
## 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]>
dej611 pushed a commit to dej611/kibana that referenced this pull request May 29, 2026
## 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]>
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request Aug 5, 2026
## 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]>
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.

4 participants