Commit graph

3120 commits

Author SHA1 Message Date
renovate[bot]
2ea506e30b
Update babel (main) (#181248)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@babel/cli](https://babel.dev/docs/en/next/babel-cli)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-cli))
| [`^7.23.9` ->
`^7.24.1`](https://renovatebot.com/diffs/npm/@babel%2fcli/7.23.9/7.24.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fcli/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fcli/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fcli/7.23.9/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fcli/7.23.9/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/core](https://babel.dev/docs/en/next/babel-core)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-core))
| [`^7.24.0` ->
`^7.24.4`](https://renovatebot.com/diffs/npm/@babel%2fcore/7.24.0/7.24.4)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fcore/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fcore/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fcore/7.24.0/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fcore/7.24.0/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/eslint-parser](https://babel.dev/)
([source](https://togithub.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser))
| [`^7.23.10` ->
`^7.24.1`](https://renovatebot.com/diffs/npm/@babel%2feslint-parser/7.23.10/7.24.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2feslint-parser/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2feslint-parser/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2feslint-parser/7.23.10/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2feslint-parser/7.23.10/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/generator](https://babel.dev/docs/en/next/babel-generator)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-generator))
| [`^7.23.6` ->
`^7.24.4`](https://renovatebot.com/diffs/npm/@babel%2fgenerator/7.23.6/7.24.4)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fgenerator/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fgenerator/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fgenerator/7.23.6/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fgenerator/7.23.6/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/parser](https://babel.dev/docs/en/next/babel-parser)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-parser))
| [`^7.24.0` ->
`^7.24.4`](https://renovatebot.com/diffs/npm/@babel%2fparser/7.24.0/7.24.4)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fparser/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fparser/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fparser/7.24.0/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fparser/7.24.0/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@babel/plugin-transform-class-properties](https://babel.dev/docs/en/next/babel-plugin-transform-class-properties)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-class-properties))
| [`^7.23.3` ->
`^7.24.1`](https://renovatebot.com/diffs/npm/@babel%2fplugin-transform-class-properties/7.23.3/7.24.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fplugin-transform-class-properties/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fplugin-transform-class-properties/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fplugin-transform-class-properties/7.23.3/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fplugin-transform-class-properties/7.23.3/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@babel/plugin-transform-numeric-separator](https://babel.dev/docs/en/next/babel-plugin-transform-numeric-separator)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-numeric-separator))
| [`^7.23.4` ->
`^7.24.1`](https://renovatebot.com/diffs/npm/@babel%2fplugin-transform-numeric-separator/7.23.4/7.24.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fplugin-transform-numeric-separator/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fplugin-transform-numeric-separator/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fplugin-transform-numeric-separator/7.23.4/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fplugin-transform-numeric-separator/7.23.4/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@babel/plugin-transform-runtime](https://babel.dev/docs/en/next/babel-plugin-transform-runtime)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime))
| [`^7.24.0` ->
`^7.24.3`](https://renovatebot.com/diffs/npm/@babel%2fplugin-transform-runtime/7.24.0/7.24.3)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fplugin-transform-runtime/7.24.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fplugin-transform-runtime/7.24.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fplugin-transform-runtime/7.24.0/7.24.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fplugin-transform-runtime/7.24.0/7.24.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/preset-env](https://babel.dev/docs/en/next/babel-preset-env)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-preset-env))
| [`^7.24.0` ->
`^7.24.4`](https://renovatebot.com/diffs/npm/@babel%2fpreset-env/7.24.0/7.24.4)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fpreset-env/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fpreset-env/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fpreset-env/7.24.0/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fpreset-env/7.24.0/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@babel/preset-react](https://babel.dev/docs/en/next/babel-preset-react)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-preset-react))
| [`^7.23.3` ->
`^7.24.1`](https://renovatebot.com/diffs/npm/@babel%2fpreset-react/7.23.3/7.24.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fpreset-react/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fpreset-react/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fpreset-react/7.23.3/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fpreset-react/7.23.3/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@babel/preset-typescript](https://babel.dev/docs/en/next/babel-preset-typescript)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-preset-typescript))
| [`^7.23.3` ->
`^7.24.1`](https://renovatebot.com/diffs/npm/@babel%2fpreset-typescript/7.23.3/7.24.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fpreset-typescript/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fpreset-typescript/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fpreset-typescript/7.23.3/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fpreset-typescript/7.23.3/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/runtime](https://babel.dev/docs/en/next/babel-runtime)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-runtime))
| [`^7.24.0` ->
`^7.24.4`](https://renovatebot.com/diffs/npm/@babel%2fruntime/7.24.0/7.24.4)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fruntime/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fruntime/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fruntime/7.24.0/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fruntime/7.24.0/7.24.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/traverse](https://babel.dev/docs/en/next/babel-traverse)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-traverse))
| [`^7.24.0` ->
`^7.24.1`](https://renovatebot.com/diffs/npm/@babel%2ftraverse/7.24.0/7.24.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2ftraverse/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2ftraverse/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2ftraverse/7.24.0/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2ftraverse/7.24.0/7.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/types](https://babel.dev/docs/en/next/babel-types)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-types))
| [`7.21.2` ->
`7.24.0`](https://renovatebot.com/diffs/npm/@babel%2ftypes/7.21.2/7.24.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2ftypes/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2ftypes/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2ftypes/7.21.2/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2ftypes/7.21.2/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>babel/babel (@&#8203;babel/cli)</summary>

###
[`v7.24.1`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7241-2024-03-19)

[Compare
Source](https://togithub.com/babel/babel/compare/v7.23.9...v7.24.1)

##### 🐛 Bug Fix

- `babel-helper-create-class-features-plugin`,
`babel-plugin-proposal-decorators`
- [#&#8203;16350](https://togithub.com/babel/babel/pull/16350) Fix
decorated class computed keys ordering
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- [#&#8203;16344](https://togithub.com/babel/babel/pull/16344) Fix
decorated class static field private access
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- `babel-plugin-proposal-decorators`,
`babel-plugin-proposal-json-modules`,
`babel-plugin-transform-async-generator-functions`,
`babel-plugin-transform-regenerator`, `babel-plugin-transform-runtime`,
`babel-preset-env`
- [#&#8203;16329](https://togithub.com/babel/babel/pull/16329) Respect
`moduleName` for `@babel/runtime/regenerator` imports
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-helper-create-class-features-plugin`,
`babel-plugin-proposal-decorators`,
`babel-plugin-proposal-pipeline-operator`,
`babel-plugin-transform-class-properties`
- [#&#8203;16331](https://togithub.com/babel/babel/pull/16331) Fix
decorator memoiser binding kind
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- `babel-helper-create-class-features-plugin`,
`babel-helper-replace-supers`, `babel-plugin-proposal-decorators`,
`babel-plugin-transform-class-properties`
- [#&#8203;16325](https://togithub.com/babel/babel/pull/16325) Fix
decorator evaluation private environment
([@&#8203;JLHwung](https://togithub.com/JLHwung))

##### 📝 Documentation

- [#&#8203;16319](https://togithub.com/babel/babel/pull/16319) Update
SECURITY.md
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))

##### 🏠 Internal

-   `babel-code-frame`, `babel-highlight`
- [#&#8203;16359](https://togithub.com/babel/babel/pull/16359) Replace
`chalk` with `picocolors`
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-helper-fixtures`, `babel-helpers`,
`babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression`,
`babel-plugin-proposal-pipeline-operator`,
`babel-plugin-transform-unicode-sets-regex`, `babel-preset-env`,
`babel-preset-flow`
- [#&#8203;16352](https://togithub.com/babel/babel/pull/16352) Run Babel
transform tests on old node if possible
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- `babel-helpers`, `babel-plugin-transform-async-generator-functions`,
`babel-plugin-transform-class-properties`,
`babel-plugin-transform-class-static-block`,
`babel-plugin-transform-modules-commonjs`,
`babel-plugin-transform-modules-systemjs`,
`babel-plugin-transform-regenerator`, `babel-plugin-transform-runtime`,
`babel-preset-env`, `babel-runtime-corejs3`, `babel-runtime`,
`babel-standalone`
- [#&#8203;16323](https://togithub.com/babel/babel/pull/16323) Allow
separate helpers to be excluded in Babel 8
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- `babel-helper-module-imports`,
`babel-plugin-proposal-import-wasm-source`,
`babel-plugin-proposal-json-modules`,
`babel-plugin-proposal-record-and-tuple`,
`babel-plugin-transform-react-jsx-development`,
`babel-plugin-transform-react-jsx`
- [#&#8203;16349](https://togithub.com/babel/babel/pull/16349) Support
merging imports in import injector
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-helper-create-class-features-plugin`,
`babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression`,
`babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining`,
`babel-plugin-bugfix-v8-static-class-fields-redefine-readonly`,
`babel-plugin-external-helpers`,
`babel-plugin-proposal-async-do-expressions`,
`babel-plugin-proposal-decorators`,
`babel-plugin-proposal-destructuring-private`,
`babel-plugin-proposal-do-expressions`,
`babel-plugin-proposal-duplicate-named-capturing-groups-regex`,
`babel-plugin-proposal-explicit-resource-management`,
`babel-plugin-proposal-export-default-from`,
`babel-plugin-proposal-function-bind`,
`babel-plugin-proposal-function-sent`,
`babel-plugin-proposal-import-attributes-to-assertions`,
`babel-plugin-proposal-import-defer`,
`babel-plugin-proposal-import-wasm-source`,
`babel-plugin-proposal-json-modules`,
`babel-plugin-proposal-optional-chaining-assign`,
`babel-plugin-proposal-partial-application`,
`babel-plugin-proposal-pipeline-operator`,
`babel-plugin-proposal-record-and-tuple`,
`babel-plugin-proposal-regexp-modifiers`,
`babel-plugin-proposal-throw-expressions`,
`babel-plugin-syntax-async-do-expressions`,
`babel-plugin-syntax-decimal`, `babel-plugin-syntax-decorators`,
`babel-plugin-syntax-destructuring-private`,
`babel-plugin-syntax-do-expressions`,
`babel-plugin-syntax-explicit-resource-management`,
`babel-plugin-syntax-export-default-from`, `babel-plugin-syntax-flow`,
`babel-plugin-syntax-function-bind`,
`babel-plugin-syntax-function-sent`,
`babel-plugin-syntax-import-assertions`,
`babel-plugin-syntax-import-attributes`,
`babel-plugin-syntax-import-defer`,
`babel-plugin-syntax-import-reflection`,
`babel-plugin-syntax-import-source`, `babel-plugin-syntax-jsx`,
`babel-plugin-syntax-module-blocks`,
`babel-plugin-syntax-optional-chaining-assign`,
`babel-plugin-syntax-partial-application`,
`babel-plugin-syntax-pipeline-operator`,
`babel-plugin-syntax-record-and-tuple`,
`babel-plugin-syntax-throw-expressions`,
`babel-plugin-syntax-typescript`,
`babel-plugin-transform-arrow-functions`,
`babel-plugin-transform-async-generator-functions`,
`babel-plugin-transform-async-to-generator`,
`babel-plugin-transform-block-scoped-functions`,
`babel-plugin-transform-block-scoping`,
`babel-plugin-transform-class-properties`,
`babel-plugin-transform-class-static-block`,
`babel-plugin-transform-classes`,
`babel-plugin-transform-computed-properties`,
`babel-plugin-transform-destructuring`,
`babel-plugin-transform-dotall-regex`,
`babel-plugin-transform-duplicate-keys`,
`babel-plugin-transform-dynamic-import`,
`babel-plugin-transform-exponentiation-operator`,
`babel-plugin-transform-export-namespace-from`,
`babel-plugin-transform-flow-comments`,
`babel-plugin-transform-flow-strip-types`,
`babel-plugin-transform-for-of`, `babel-plugin-transform-function-name`,
`babel-plugin-transform-instanceof`, `babel-plugin-transform-jscript`,
`babel-plugin-transform-json-strings`,
`babel-plugin-transform-literals`,
`babel-plugin-transform-logical-assignment-operators`,
`babel-plugin-transform-member-expression-literals`,
`babel-plugin-transform-modules-amd`,
`babel-plugin-transform-modules-commonjs`,
`babel-plugin-transform-modules-systemjs`,
`babel-plugin-transform-modules-umd`,
`babel-plugin-transform-new-target`,
`babel-plugin-transform-nullish-coalescing-operator`,
`babel-plugin-transform-numeric-separator`,
`babel-plugin-transform-object-assign`,
`babel-plugin-transform-object-rest-spread`,
`babel-plugin-transform-object-set-prototype-of-to-assign`,
`babel-plugin-transform-object-super`,
`babel-plugin-transform-optional-catch-binding`,
`babel-plugin-transform-optional-chaining`,
`babel-plugin-transform-parameters`,
`babel-plugin-transform-private-methods`,
`babel-plugin-transform-private-property-in-object`,
`babel-plugin-transform-property-literals`,
`babel-plugin-transform-property-mutators`,
`babel-plugin-transform-proto-to-assign`,
`babel-plugin-transform-react-constant-elements`,
`babel-plugin-transform-react-display-name`,
`babel-plugin-transform-react-inline-elements`,
`babel-plugin-transform-react-jsx-compat`,
`babel-plugin-transform-react-jsx-self`,
`babel-plugin-transform-react-jsx-source`,
`babel-plugin-transform-react-pure-annotations`,
`babel-plugin-transform-regenerator`,
`babel-plugin-transform-reserved-words`,
`babel-plugin-transform-runtime`,
`babel-plugin-transform-shorthand-properties`,
`babel-plugin-transform-spread`, `babel-plugin-transform-sticky-regex`,
`babel-plugin-transform-strict-mode`,
`babel-plugin-transform-template-literals`,
`babel-plugin-transform-typeof-symbol`,
`babel-plugin-transform-typescript`,
`babel-plugin-transform-unicode-escapes`,
`babel-plugin-transform-unicode-property-regex`,
`babel-plugin-transform-unicode-regex`,
`babel-plugin-transform-unicode-sets-regex`, `babel-preset-env`,
`babel-preset-flow`, `babel-preset-react`, `babel-preset-typescript`
- [#&#8203;16332](https://togithub.com/babel/babel/pull/16332) Test
Babel 7 plugins compatibility with Babel 8 core
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-compat-data`, `babel-plugin-transform-object-rest-spread`,
`babel-preset-env`
- [#&#8203;16318](https://togithub.com/babel/babel/pull/16318) \[babel
8] Fix `@babel/compat-data` package.json
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))

##### 🔬 Output optimization

- `babel-helper-replace-supers`,
`babel-plugin-transform-class-properties`,
`babel-plugin-transform-classes`, `babel-plugin-transform-parameters`,
`babel-plugin-transform-runtime`
- [#&#8203;16345](https://togithub.com/babel/babel/pull/16345) Optimize
the use of `assertThisInitialized` after `super()`
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- `babel-plugin-transform-class-properties`,
`babel-plugin-transform-classes`
- [#&#8203;16343](https://togithub.com/babel/babel/pull/16343) Use
simpler `assertThisInitialized` more often
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- `babel-plugin-proposal-decorators`,
`babel-plugin-transform-class-properties`,
`babel-plugin-transform-object-rest-spread`, `babel-traverse`
- [#&#8203;16342](https://togithub.com/babel/babel/pull/16342) Consider
well-known and registered symbols as literals
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-core`, `babel-plugin-external-helpers`,
`babel-plugin-proposal-decorators`,
`babel-plugin-proposal-function-bind`,
`babel-plugin-transform-class-properties`,
`babel-plugin-transform-classes`,
`babel-plugin-transform-flow-comments`,
`babel-plugin-transform-flow-strip-types`,
`babel-plugin-transform-function-name`,
`babel-plugin-transform-modules-systemjs`,
`babel-plugin-transform-parameters`,
`babel-plugin-transform-private-property-in-object`,
`babel-plugin-transform-react-jsx`, `babel-plugin-transform-runtime`,
`babel-plugin-transform-spread`, `babel-plugin-transform-typescript`,
`babel-preset-env`
- [#&#8203;16326](https://togithub.com/babel/babel/pull/16326) Reduce
the use of class names
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))

</details>

<details>
<summary>babel/babel (@&#8203;babel/eslint-parser)</summary>

###
[`v7.24.1`](https://togithub.com/babel/babel/compare/v7.23.10...v7.24.1)

[Compare
Source](https://togithub.com/babel/babel/compare/v7.23.10...v7.24.1)

</details>

<details>
<summary>babel/babel (@&#8203;babel/parser)</summary>

### [`v7.24.4`](https://togithub.com/babel/babel/releases/tag/v7.24.4)

[Compare
Source](https://togithub.com/babel/babel/compare/v7.24.1...v7.24.4)

#### v7.24.4 (2024-04-03)

Thanks [@&#8203;Dunqing](https://togithub.com/Dunqing),
[@&#8203;luiscubal](https://togithub.com/luiscubal), and
[@&#8203;samualtnorman](https://togithub.com/samualtnorman) for your
first PRs!

##### 👓 Spec Compliance

-   `babel-parser`
- [#&#8203;16403](https://togithub.com/babel/babel/pull/16403) Forbid
initializerless using ([@&#8203;JLHwung](https://togithub.com/JLHwung))
- `babel-helpers`, `babel-plugin-proposal-decorators`,
`babel-runtime-corejs3`
- [#&#8203;16388](https://togithub.com/babel/babel/pull/16388) Ensure
decorators are callable
([@&#8203;JLHwung](https://togithub.com/JLHwung))

##### 🐛 Bug Fix

-   `babel-generator`
- [#&#8203;16402](https://togithub.com/babel/babel/pull/16402) fix:
Correctly prints `{ [key in Bar]? }`
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- [#&#8203;16394](https://togithub.com/babel/babel/pull/16394) fix:
Correctly generate `TSMappedType`
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- `babel-compat-data`,
`babel-plugin-bugfix-firefox-class-in-computed-class-key`,
`babel-preset-env`
- [#&#8203;16390](https://togithub.com/babel/babel/pull/16390) Create
bugfix plugin for classes in computed keys in Firefox
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-helper-create-class-features-plugin`,
`babel-plugin-proposal-decorators`
- [#&#8203;16387](https://togithub.com/babel/babel/pull/16387) fix:
support mutated outer decorated class binding
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- [#&#8203;16385](https://togithub.com/babel/babel/pull/16385) fix:
Decorators when `super()` exists and `protoInit` is not needed
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
-   `babel-plugin-transform-block-scoping`
- [#&#8203;16384](https://togithub.com/babel/babel/pull/16384) fix:
Transform scoping for `for X` in loop
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- [#&#8203;16368](https://togithub.com/babel/babel/pull/16368) fix:
Capture `let` when the `for` body is not a block
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- `babel-core`, `babel-plugin-transform-block-scoped-functions`,
`babel-plugin-transform-block-scoping`
- [#&#8203;16363](https://togithub.com/babel/babel/pull/16363) Fix
incorrect function hoisting in some case statements
([@&#8203;luiscubal](https://togithub.com/luiscubal))

##### Committers: 7

-   Babel Bot ([@&#8203;babel-bot](https://togithub.com/babel-bot))
-   Dunqing ([@&#8203;Dunqing](https://togithub.com/Dunqing))
-   Huáng Jùnliàng ([@&#8203;JLHwung](https://togithub.com/JLHwung))
-   Luís Reis ([@&#8203;luiscubal](https://togithub.com/luiscubal))
- Nicolò Ribaudo
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- Samual Norman
([@&#8203;samualtnorman](https://togithub.com/samualtnorman))
-   [@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu)

### [`v7.24.1`](https://togithub.com/babel/babel/releases/tag/v7.24.1)

[Compare
Source](https://togithub.com/babel/babel/compare/v7.24.0...v7.24.1)

#### v7.24.1 (2024-03-19)

##### 🐛 Bug Fix

- `babel-helper-create-class-features-plugin`,
`babel-plugin-proposal-decorators`
- [#&#8203;16350](https://togithub.com/babel/babel/pull/16350) Fix
decorated class computed keys ordering
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- [#&#8203;16344](https://togithub.com/babel/babel/pull/16344) Fix
decorated class static field private access
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- `babel-plugin-proposal-decorators`,
`babel-plugin-proposal-json-modules`,
`babel-plugin-transform-async-generator-functions`,
`babel-plugin-transform-regenerator`, `babel-plugin-transform-runtime`,
`babel-preset-env`
- [#&#8203;16329](https://togithub.com/babel/babel/pull/16329) Respect
`moduleName` for `@babel/runtime/regenerator` imports
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-helper-create-class-features-plugin`,
`babel-plugin-proposal-decorators`,
`babel-plugin-proposal-pipeline-operator`,
`babel-plugin-transform-class-properties`
- [#&#8203;16331](https://togithub.com/babel/babel/pull/16331) Fix
decorator memoiser binding kind
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- `babel-helper-create-class-features-plugin`,
`babel-helper-replace-supers`, `babel-plugin-proposal-decorators`,
`babel-plugin-transform-class-properties`
- [#&#8203;16325](https://togithub.com/babel/babel/pull/16325) Fix
decorator evaluation private environment
([@&#8203;JLHwung](https://togithub.com/JLHwung))

##### 📝 Documentation

- [#&#8203;16319](https://togithub.com/babel/babel/pull/16319) Update
SECURITY.md
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))

##### 🏠 Internal

-   `babel-code-frame`, `babel-highlight`
- [#&#8203;16359](https://togithub.com/babel/babel/pull/16359) Replace
`chalk` with `picocolors`
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-helper-fixtures`, `babel-helpers`,
`babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression`,
`babel-plugin-proposal-pipeline-operator`,
`babel-plugin-transform-unicode-sets-regex`, `babel-preset-env`,
`babel-preset-flow`
- [#&#8203;16352](https://togithub.com/babel/babel/pull/16352) Run Babel
transform tests on old node if possible
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- `babel-helper-module-imports`,
`babel-plugin-proposal-import-wasm-source`,
`babel-plugin-proposal-json-modules`,
`babel-plugin-proposal-record-and-tuple`,
`babel-plugin-transform-react-jsx-development`,
`babel-plugin-transform-react-jsx`
- [#&#8203;16349](https://togithub.com/babel/babel/pull/16349) Support
merging imports in import injector
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
-   Other
- [#&#8203;16332](https://togithub.com/babel/babel/pull/16332) Test
Babel 7 plugins compatibility with Babel 8 core
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))

##### 🔬 Output optimization

- `babel-helper-replace-supers`,
`babel-plugin-transform-class-properties`,
`babel-plugin-transform-classes`, `babel-plugin-transform-parameters`,
`babel-plugin-transform-runtime`
- [#&#8203;16345](https://togithub.com/babel/babel/pull/16345) Optimize
the use of `assertThisInitialized` after `super()`
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- `babel-plugin-transform-class-properties`,
`babel-plugin-transform-classes`
- [#&#8203;16343](https://togithub.com/babel/babel/pull/16343) Use
simpler `assertThisInitialized` more often
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- `babel-plugin-proposal-decorators`,
`babel-plugin-transform-class-properties`,
`babel-plugin-transform-object-rest-spread`, `babel-traverse`
- [#&#8203;16342](https://togithub.com/babel/babel/pull/16342) Consider
well-known and registered symbols as literals
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-core`, `babel-plugin-external-helpers`,
`babel-plugin-proposal-decorators`,
`babel-plugin-proposal-function-bind`,
`babel-plugin-transform-class-properties`,
`babel-plugin-transform-classes`,
`babel-plugin-transform-flow-comments`,
`babel-plugin-transform-flow-strip-types`,
`babel-plugin-transform-function-name`,
`babel-plugin-transform-modules-systemjs`,
`babel-plugin-transform-parameters`,
`babel-plugin-transform-private-property-in-object`,
`babel-plugin-transform-react-jsx`, `babel-plugin-transform-runtime`,
`babel-plugin-transform-spread`, `babel-plugin-transform-typescript`,
`babel-preset-env`
- [#&#8203;16326](https://togithub.com/babel/babel/pull/16326) Reduce
the use of class names
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))

##### Committers: 4

-   Babel Bot ([@&#8203;babel-bot](https://togithub.com/babel-bot))
-   Huáng Jùnliàng ([@&#8203;JLHwung](https://togithub.com/JLHwung))
- Nicolò Ribaudo
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
-   [@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/elastic/kibana).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjMwMS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOk9wZXJhdGlvbnMiLCJyZWxlYXNlX25vdGU6c2tpcCJdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2024-04-23 10:56:45 -05:00
renovate[bot]
14f2d95fd0
Update dependency elastic-apm-node to ^4.5.2 (main) (#181241)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [elastic-apm-node](https://togithub.com/elastic/apm-agent-nodejs) |
[`^4.5.0` ->
`^4.5.2`](https://renovatebot.com/diffs/npm/elastic-apm-node/4.5.0/4.5.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/elastic-apm-node/4.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/elastic-apm-node/4.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/elastic-apm-node/4.5.0/4.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/elastic-apm-node/4.5.0/4.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>elastic/apm-agent-nodejs (elastic-apm-node)</summary>

###
[`v4.5.2`](https://togithub.com/elastic/apm-agent-nodejs/releases/tag/v4.5.2)

[Compare
Source](https://togithub.com/elastic/apm-agent-nodejs/compare/v4.5.0...v4.5.2)

For more information, please see the
[changelog](https://www.elastic.co/guide/en/apm/agent/nodejs/current/release-notes-4.x.html#release-notes-4.5.2).

##### Elastic APM Node.js agent layer ARNs

|Region|ARN|
|------|---|

|af-south-1|arn:aws:lambda:af-south-1:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|ap-east-1|arn:aws:lambda:ap-east-1:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|ap-northeast-1|arn:aws:lambda:ap-northeast-1:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|ap-northeast-2|arn:aws:lambda:ap-northeast-2:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|ap-northeast-3|arn:aws:lambda:ap-northeast-3:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|ap-south-1|arn:aws:lambda:ap-south-1:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|ap-southeast-1|arn:aws:lambda:ap-southeast-1:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|ap-southeast-2|arn:aws:lambda:ap-southeast-2:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|ap-southeast-3|arn:aws:lambda:ap-southeast-3:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|ca-central-1|arn:aws:lambda:ca-central-1:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|eu-central-1|arn:aws:lambda:eu-central-1:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|eu-north-1|arn:aws:lambda:eu-north-1:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|eu-south-1|arn:aws:lambda:eu-south-1:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|eu-west-1|arn:aws:lambda:eu-west-1:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|eu-west-2|arn:aws:lambda:eu-west-2:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|eu-west-3|arn:aws:lambda:eu-west-3:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|me-south-1|arn:aws:lambda:me-south-1:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|sa-east-1|arn:aws:lambda:sa-east-1:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|us-east-1|arn:aws:lambda:us-east-1:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|us-east-2|arn:aws:lambda:us-east-2:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|us-west-1|arn:aws:lambda:us-west-1:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

|us-west-2|arn:aws:lambda:us-west-2:267093732750:layer:elastic-apm-node-ver-4-5-2:1|

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/elastic/kibana).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjMwMS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOkNvcmUiLCJiYWNrcG9ydDpza2lwIiwicmVsZWFzZV9ub3RlOnNraXAiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2024-04-22 09:48:47 +02:00
Saarika Bhasi
439f4a8876
[ML] Support adding inference_id in a flyout (#180330)
## Summary

* Creates a new package - ` @kbn/inference_integration_flyout` 
* Above package has implementation for adding new inference endpoint id,
including Elastic, third party integration and instructions to upload
via Eland python client, in a flyout.
* The above package is used for supporting semantic_text feature and is
accessed via`add a new inference endpoint` button

## Screen Recording


dbd36634-bd4a-49f1-b1d5-d7b6c90444bc


### Checklist


- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-04-21 21:20:28 -04:00
Cee Chen
cbc68cd40c
Upgrade EUI to v94.1.0 (major EuiTable refactors) (#180514)
`v93.6.0`  `v94.1.0`

> [!important]
> 👋 Hello everyone - this is a special release containing `EuiTable`'s
conversion to Emotion, several long-overdue cleanups and breaking
changes, and one or two fun new features. First, let's address the big
questions:

### Q: I'm listed as a codeowner, how much should I manually QA/review?

Answer: It depends on what exactly in your code changed, but _in
general_ I would strongly suggest at least pulling this branch down and
doing a quick visual smoke test of all tables (_note: **not**
datagrids_) in your apps/plugins. You should not expect to see any major
visual regressions.

If your table contained any kind of custom styling or behavior (e.g.
custom CSS, etc.) I **strongly** recommend taking more time to QA
thoroughly to ensure your table still looks and behaves as expected.
Teams with very manual or specific updates will be flagged below in
comment threads.

### Q: When do I need to review by?

This PR will be merged **after** 8.14FF. Because this upgrade touches so
many files and teams, we're aiming for asking for an admin merge by EOD
4/18 regardless of full approval status.

As always, you're welcome to ping us after merge if you find any issues
later ([see our
FAQ](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)),
as you will have until 8.15FF to catch any bugs.

### Q: What breaking changes were made, and why?

Here's a quick shortlist of all the changes made that affected the
majority of the commits in this PR:

#### <u>Removed several top-level table props</u>
- The `responsive` prop has been removed in favor of the new
`responsiveBreakpoint` prop (same `false` behavior as before)
- The following props were removed from basic and in-memory tables:
  - `hasActions`, `isSelectable`, and `isExpandable`
- These props were not used for functionality and were only used for
styling tables in mobile/responsive views, which is not a best practice
pattern we wanted for our APIs. Mobile tables are now styled correctly
without needing consumers to pass these extra props.
  - `textOnly`
- This prop was unused and had no meaningful impact on tables or table
content.

#### Removed hidden mobile vs. desktop DOM

Previously, EUI would set classes that applied `display: none` CSS for
content that was hidden for mobile vs. desktop. This is no longer the
case, and content that only displays for mobile or only displays for
desktop will no longer render to the DOM at all if the table is not in
that responsive state.

This is both more performant when rendering large quantities of
cells/content, and simpler to write test assertions for when comparing
what the user actually sees vs. what the DOM ‘sees’.
(c3eeb08441e4b6efe6505e7cddaa87b540ddb259,
78cefcd954a7b46eaccd05e431b5e24dc86071a3)

#### Removed direct usages of table `className`s

EuiTable `classNames` no longer have any styles attached to them, so
some instances where Kibana usages were applying the `className` for
styles have been replaced with direct component usage or removed
entirely (86ce80b61f).

#### Custom table cell styles

Any custom CSS for table cells was previously being applied to the inner
`div.euiTableCellContent` wrapper. As of this latest release, the
`className` and `css` props will now be applied directly to the outer
`td.euiTableRowCell` element. If you were targeting custom styles table
cells, please re-QA your styles to ensure everything still looks as
expected.

---

<details open><summary>Full changelog (click to collapse)</summary>

##
[`v94.1.0-backport.0`](https://github.com/elastic/eui/releases/v94.1.0-backport.0)

**This is a backport release only intended for use by Kibana.**

**Bug fixes**

- Fixed a visual text alignment regression in `EuiTableRowCell`s with
the `row` header scope
([#7681](https://github.com/elastic/eui/pull/7681))

**Accessibility**

- Improved `EuiBasicTable` and `EuiInMemoryTable`'s selection checkboxes
to have unique aria-labels per row
([#7672](https://github.com/elastic/eui/pull/7672))

## [`v94.1.0`](https://github.com/elastic/eui/releases/v94.1.0)

- Updated `EuiTableHeaderCell` to show a subdued `sortable` icon for
columns that are not currently sorted but can be
([#7656](https://github.com/elastic/eui/pull/7656))
- Updated `EuiBasicTable` and `EuiInMemoryTable`'s
`columns[].actions[]`'s to pass back click events to `onClick` callbacks
as the second callback
([#7667](https://github.com/elastic/eui/pull/7667))

## [`v94.0.0`](https://github.com/elastic/eui/releases/v94.0.0)

- Updated `EuiTable`, `EuiBasicTable`, and `EuiInMemoryTable` with a new
`responsiveBreakpoint` prop, which allows customizing the point at which
the table collapses into a mobile-friendly view with cards
([#7625](https://github.com/elastic/eui/pull/7625))
- Updated `EuiProvider`'s `componentDefaults` prop to allow configuring
`EuiTable.responsiveBreakpoint`
([#7625](https://github.com/elastic/eui/pull/7625))

**Bug fixes**

- `EuiBasicTable` & `EuiInMemoryTable` `isPrimary` actions are now
correctly shown on mobile views
([#7640](https://github.com/elastic/eui/pull/7640))
- Table `mobileOptions`:
([#7642](https://github.com/elastic/eui/pull/7642))
- `mobileOptions.align` is now respected instead of all cells being
forced to left alignment
- `textTruncate` and `textOnly` are now respected even if a `render`
function is not passed

**Breaking changes**

- Removed unused `EuiTableHeaderButton` component
([#7621](https://github.com/elastic/eui/pull/7621))
- Removed the `responsive` prop from `EuiTable`, `EuiBasicTable`, and
`EuiInMemoryTable`. Use the new `responsiveBreakpoint` prop instead
([#7625](https://github.com/elastic/eui/pull/7625))
- The following props are no longer needed by `EuiBasicTable` or
`EuiInMemoryTable` for responsive table behavior to work correctly, and
can be removed: ([#7632](https://github.com/elastic/eui/pull/7632))
  - `isSelectable`
  - `isExpandable`
  - `hasActions`
- Removed the `showOnHover` prop from `EuiTableRowCell` /
`EuiBasicTable`/`EuiInMemoryTable`'s `columns` API. Use the new actions
`columns[].actions[].showOnHover` API instead.
([#7640](https://github.com/elastic/eui/pull/7640))
- Removed top-level `textOnly` prop from `EuiBasicTable` and
`EuiInMemoryTable`. Use `columns[].textOnly` instead.
([#7642](https://github.com/elastic/eui/pull/7642))

**DOM changes**

- `EuiTable` mobile headers no longer render in the DOM when not visible
(previously rendered with `display: none`). This may affect DOM testing
assertions. ([#7625](https://github.com/elastic/eui/pull/7625))
- `EuiTableRowCell` now applies passed `className`s to the parent `<td>`
element, instead of to the inner cell content `<div>`.
([#7631](https://github.com/elastic/eui/pull/7631))
- `EuiTableRow`s rendered by basic and memory tables now only render a
`.euiTableRow-isSelectable` className if the selection checkbox is not
disabled ([#7632](https://github.com/elastic/eui/pull/7632))
- `EuiTableRowCell`s with `textOnly` set to `false` will no longer
attempt to apply the `.euiTableCellContent__text` className to child
elements. ([#7641](https://github.com/elastic/eui/pull/7641))
- `EuiTableRowCell` no longer renders mobile headers to the DOM unless
the current table is displaying its responsive view.
([#7642](https://github.com/elastic/eui/pull/7642))
- `EuiTableHeaderCell` and `EuiTableRowCell` will no longer render in
the DOM at all on mobile if their columns' `mobileOptions.show` is set
to `false`. ([#7642](https://github.com/elastic/eui/pull/7642))
- `EuiTableHeaderCell` and `EuiTableRowCell` will no longer render in
the DOM at all on desktop if their columns' `mobileOptions.only` is set
to `true`. ([#7642](https://github.com/elastic/eui/pull/7642))

**CSS-in-JS conversions**

- Converted `EuiTable`, `EuiTableRow`, `EuiTableRowCell`, and all other
table subcomponents to Emotion
([#7654](https://github.com/elastic/eui/pull/7654))
- Removed the following `EuiTable` Sass variables:
([#7654](https://github.com/elastic/eui/pull/7654))
  - `$euiTableCellContentPadding`
  - `$euiTableCellContentPaddingCompressed`
  - `$euiTableCellCheckboxWidth`
  - `$euiTableHoverColor`
  - `$euiTableSelectedColor`
  - `$euiTableHoverSelectedColor`
  - `$euiTableActionsBorderColor`
  - `$euiTableHoverClickableColor`
  - `$euiTableFocusClickableColor`
- Removed the following `EuiTable` Sass mixins:
([#7654](https://github.com/elastic/eui/pull/7654))
  - `euiTableActionsBackgroundMobile`
  - `euiTableCellCheckbox`
  - `euiTableCell`
</details>
2024-04-19 00:05:48 +01:00
Sébastien Loix
5be49cac39
[Stateful sidenav] Remove analytics IA group (#181132) 2024-04-18 16:12:16 +01:00
Jean-Louis Leysens
29fb11b358
[HTTP/OAS] @kbn/router-to-openapispec (#180683)
## Summary

Introduces a new package for generating OAS from Kibana's routers. This
first iteration includes:

* E2E conversion of Core's `Router` and `CoreVersionedRouter` routes
into a single OAS document (not written to disk or shared anywhere
yet...)
* Support for
[`$ref`](https://swagger.io/docs/specification/using-ref/?sbsearch=%24ref)
by introducing the `meta.id` field `@kbn/config-schema`'s base type.
This is intended to be used only response/request schemas initially.

## TODO

- [x] More unit tests

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-04-17 04:03:16 -07:00
Dzmitry Lemechko
5942fb9fef
[chore] bump chromedriver to 123 (#181002)
## Summary

Updating chromedriver to support running tests on Chrome v124
2024-04-17 11:28:37 +02:00
Rachel Shen
9579635c25
[Share Modal Redesign] Reporting Refactor Modals (#180009)
## Summary

This PR refactors https://github.com/elastic/kibana/pull/179206 to have
each export type be registered in Reporting and then passed into the
share plugin.

This PR is focused on the redesign in terms of the export modals. Test
refactoring will be done in a separate PR.
Partially closes https://github.com/elastic/kibana-team/issues/753

- [x] Need to refactor this PR to include @eokoneyo's general modal
component
- [x] Lens needs to have Export with all three report type options - to
avoid circular dependencies move the Lens CSV stuff into the reporting
plugin vs having it in Lens
- [x] Canvas should not be affected by these changes (so the old
share/reporting code has to stay for canvas)
https://github.com/elastic/kibana/issues/151523 to keep in mind for the
redesign

Failed tests will be covered in this PR
https://github.com/elastic/kibana/pull/180406


### TO TEST 

Mark `share.new_version.enabled: true` in your kibana.dev.yml


### Checklist

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))

---------

Co-authored-by: Eyo Okon Eyo <eyo.eyo@elastic.co>
Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2024-04-16 15:01:44 -07:00
Kevin Lacabane
66587d8940
[Obs AI Assistant] ai assistant system connector (#179980)
## Summary

Creates a system connector that can call the observability ai assistant
to execute actions on behalf of user. The connector is tagged as tech
preview.

The connector can be triggered when an alert fires. Connector can be
configured with an initial message to the assistant which generates an
answer and triggers potential actions on the assistant side. The current
experimental scenario is to ask the assistant to generate a report of
the alert that fired (by initially providing some context in the first
message), recalling any information/potential resolutions of previous
occurrences stored in the knowledge base and also including other active
alerts that may be related. One last step that can be asked to the
assistant is to trigger an action, currently only sending the report (or
any other message) to a preconfigured slack webhook is supported.

## Testing
_Note: when asked to send a message to another connector (in our case
slack), we'll try to include a link to the generated conversation. It is
only possible to generate this link if
[server.publicBaseUrl](https://www.elastic.co/guide/en/kibana/current/settings.html#server-publicBaseUrl)
is correctly set in kibana settings._

- Create a slack webhook connector
- Get slack webhook. I can share one and invite you to the workspace, or
if you want to create one:
    - create personal workspace at https://slack.com/signin#workspaces
    - create an app for that workspace at https://api.slack.com/apps
- under Features > OAuth & Permissions > Scopes > Bot Token Scopes, add
`incoming-webhook` permission
    - install the app
    - webhook url is available under Features > Incoming Webhooks
- Create a rule that can be triggered with available documents and
attach observability AI assistant connector. (I use `Error Count
Threshold` and generate errors via `node scripts/synthtrace
many_errors.ts --live`)
- configure the connector with one genai connector and a message with
instructions. Example:
```
High error count alert has triggered. Execute the following steps:
  - create a graph of the error count for the service impacted by the alert for the last 24h
  - to help troubleshoot recall past occurrences of this alarm, also any other active alerts. Generate a report with all the found informations and send it to slack connector as a single message. Also include the link to this conversation in the report
```
- Track alert status and verify connector was executed. You should get a
slack notification sent by the assistant, and a new conversation will be
stored

TODO
- unit/integration tests - see
https://github.com/elastic/kibana/pull/168369 for reference
implementation
- documentation

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2024-04-15 22:22:06 +02:00
Rodney Norris
308f514a45
[Search] Introduced Notebooks view for console (#180400)
## Summary

This PR adds the search-notebooks plugin and a python notebook renderer
to the persistent console.

### Screenshots
Console Closed
<img width="1418" alt="image"
src="8e2e2934-a19f-4204-8a31-1e8eab7fd20f">
Notebooks:
<img width="1418" alt="image"
src="bf9d40ad-352d-482e-8d84-f426c3026c69">
<img width="1418" alt="image"
src="fcf8cac2-4640-49e8-9bce-94a5a853383f">

Console View
<img width="1418" alt="image"
src="9230d1c2-3987-41f8-aa86-77a20509b8c0">

### Checklist

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [x] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2024-04-15 11:10:28 -05:00
Sid
195265cb81
Upgrades undici from 5.28.3 to 5.28.4 (#180486)
## Summary

Upgrades `undici` from v5.28.3 to v5.28.4.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2024-04-11 13:58:51 +02:00
Sander Philipse
1fa7a69fb6
Move shared index management types to package (#179932)
## Summary

This moves a number of types that are used outside of the index
management plugin to a package so we can avoid cyclical dependencies in
the work we're doing to add semantic text as a mapping type. That will
depend on the ML plugin, which has dependencies that themselves depend
on a few types from index management. I split this into a separate PR
for ease of reviewing.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2024-04-10 17:48:06 +02:00
Kurt
ba2c27c95a
Upgrading express from 4.17.3 --> 4.19.2 (#180373)
## Summary

Upgrading `express` from 4.17.3. to 4.19.2


[Changelog](https://github.com/expressjs/express/compare/4.17.3...4.19.2)
2024-04-10 08:13:17 -04:00
Cee Chen
459ed573b6
Upgrade EUI to v93.6.0 (#180316)
`v93.5.2`  `v93.6.0`

---

## [`v93.6.0`](https://github.com/elastic/eui/releases/v93.6.0)

- Updated `EuiBreadcrumb` styles to improve visual distinction of
clickable breadcrumbs
([#7615](https://github.com/elastic/eui/pull/7615))

**Deprecations**

- Deprecated `color` prop on `EuiBreadcrumb`
([#7615](https://github.com/elastic/eui/pull/7615))

**Bug fixes**

- Fixed `EuiComboBox` to correctly select full matches within groups via
the `Enter` key ([#7658](https://github.com/elastic/eui/pull/7658))

**Accessibility**

- Updated `EuiHeaderBreadcrumb` styles to ensure min. required color
contrast ([#7643](https://github.com/elastic/eui/pull/7643))
- `EuiSuperSelect` now correctly reads out parent `EuiFormRow` labels to
screen readers ([#7650](https://github.com/elastic/eui/pull/7650))
- `EuiSuperSelect` now more closely mimics native `<select>` behavior in
its keyboard behavior and navigation
([#7650](https://github.com/elastic/eui/pull/7650))
- `EuiSuperSelect` no longer strands keyboard focus on close
([#7650](https://github.com/elastic/eui/pull/7650))
- `EuiSuperSelect` now correctly allows keyboard navigating past
disabled options in the middle of the options list
([#7650](https://github.com/elastic/eui/pull/7650))
2024-04-09 14:49:25 -07:00
Clint Andrew Hall
15dea75d52
[dx] Tweak profiling to include the webpack visualization from CI (#180335) 2024-04-09 12:03:35 -04:00
Steph Milovic
29fe28539b
[Security solution] LangChain Streaming (#174126) 2024-04-05 09:53:50 -06:00
Clint Andrew Hall
4059af12e1
[dx][webpack] Output two additional and helpful visualizations of webpack stats (#180099)
As titled. Run `node scripts/build_kibana_platform_plugins.js --dist
--profile --focus=[PLUGIN]` and view the `target` directory for two
additional visualizations of webpack stats.

## Statoscope
>Statoscope is a toolkit for analyzing (with UI-base report) and
validate stats of your bundle.
>
>Learn more on [Statoscope: A Course Of Intensive Therapy For Your
Bundle](https://www.smashingmagazine.com/2022/02/statoscope-course-intensive-therapy-bundle/).

https://github.com/statoscope/statoscope

<img width="1981" alt="Screenshot 2024-04-04 at 7 22 57 PM"
src="38128335-e852-4ccc-9aa5-b5fefbf5e6a2">

Statoscope has been incredibly useful in determining _why_ a module,
library or chunk exists, as well as any duplicates.

## Webpack Visualizer

One of the defacto standards for stats analysis, automatically generated
when profiling.

<img width="2336" alt="Screenshot 2024-04-04 at 7 27 30 PM"
src="7c6aca0c-a8f2-42fa-9972-bf396aaebe75">

---------

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2024-04-04 20:48:37 -07:00
Rodney Norris
f385496a40
[Search] introduce notebooks plugin (#179870)
## Summary

Introduced the search_notebooks plugin which has a set of default python
notebooks that can be served to the frontend via API endpoints.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-04-04 14:16:11 -05:00
Eyo O. Eyo
03696a4561
Share Modal (#179037)
## Summary

This PR is based off of https://github.com/elastic/kibana/pull/176617,
which in turn builds off of the generic tabbed modal component created
here https://github.com/elastic/kibana/pull/176261.
Partially addresses https://github.com/elastic/kibana-team/issues/753

The PR introduces an alternate way of sharing a dashboard by
consolidating the existing share options into a single place.

## TO TEST
Set `share.new_version.enabled: true `in your kibana.dev.yml in order to
see these changes.
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios


Co-authored-by: rshen91 <rshen@elastic.co>
2024-04-04 09:06:14 -07:00
Alejandro Fernández Haro
947dac2846
Upgrade elasticsearch-js to 8.13.0 (#179747) 2024-04-03 08:56:29 -07:00
Sébastien Loix
43de4b5d57
[Stateful sidenav] Update static definitions (#179043) 2024-04-03 15:43:21 +01:00
Jeramy Soucy
b6670ae48a
Upgrade webpack-dev-middleware@5.3.3→5.3.4 (#179738)
## Summary

Upgrades development dependency `webpack-dev-middleware` from v5.3.3 to
v5.3.4.
2024-04-02 11:28:24 +02:00
Cee Chen
1ba10aa76d
Upgrade EUI to v93.5.2 (#179749)
`v93.5.1`  `v93.5.2`

---

## [`v93.5.2`](https://github.com/elastic/eui/releases/v93.5.2)

**Dependency updates**

- Updated `react-virtualized-auto-sizer` to 1.0.24
([#7598](https://github.com/elastic/eui/pull/7598))
- Updated `react-window` to 1.8.10
([#7600](https://github.com/elastic/eui/pull/7600))

**CSS-in-JS conversions**

- Updated EUI's internal style memoization/performance utility to have
configurable error/warning levels via `setEuiDevProviderWarning`
([#7626](https://github.com/elastic/eui/pull/7626))
2024-04-01 13:02:35 -05:00
Walter Rafelsberger
bb33a8e78b
[ML] AIOps: Move code from plugins/aiops/common to packages. (#179178)
## Summary

This moves code from `plugins/aiops/common` to packages. The `aiops`
plugin will from now on have only a `server` and `public` directory.
This is in preparation for additional AIOps related public APIs and to
avoid cyclic dependency problems for other consuming plugins.

- Package `@kbn/aiops-utils` was renamed to `@kbn/aiops-common`.
- For each AIOps feature a package was created:
`@kbn/aiops-change-point-detection`, `@kbn/aiops-log-pattern-analysis`
and `@kbn/aiops-log-rate-analysis`.

### Checklist

- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2024-03-28 18:40:36 +01:00
Cauê Marcondes
aadfa5dffd
[UX/Maps] Fixing APM data view id (#179257)
closes https://github.com/elastic/kibana/issues/177461

UX fix:
<img width="813" alt="Screenshot 2024-03-22 at 14 03 58"
src="48352560-d5c4-4258-8bfe-5b8dc6e4bf41">

Maps Obs layer
<img width="1325" alt="Screenshot 2024-03-22 at 16 11 31"
src="a68bbef3-a30a-45e4-987f-b472ee0db394">

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-03-28 12:14:32 +00:00
Nathan Reese
c8bfea57c1
[dashboard] decouple "link to library" and "unlink from library" actions from AttributeService (#178584)
There are 2 paths for decoupling from AttributeService
1. replace existing actions with new actions that use
`HasLibraryTransforms` interface. Update all embeddables to implement
`HasLibraryTransforms` interfaces.
2. Rename existing actions as `legacy`. Create new actions that use
`HasLibraryTransforms` interface. Provide a reference implementation for
new actions. Convert embeddables to new `HasLibraryTransforms` interface
as the embeddables get converted to react embeddables.

Option 2 was chosen to limit scope and gradually convert embeddables to
`HasLibraryTransforms` interface.

This PR:
1. Remove `@kbn/presentation-library` package. Interfaces in this
package have been rolled into `@kbn/presentation-publishing` package.
2. Rename existing interface as `HasLegacyLibraryTransforms`
3. Create new interface `HasLibraryTransforms` 
4. Rename `AddToLibraryAction` action to `LegacyAddToLibraryAction`.
Modify action to use `HasLegacyLibraryTransforms` interface and guards.
5. Rename `UnlinkFromLibraryAction` action to
`LegacyUnlinkFromLibraryAction`. Modify action to use
`HasLegacyLibraryTransforms` interface and guards.
6. Rename `LibraryNotificationAction` action to
`LegacyLibraryNotificationAction`. Modify action to use
`LegacyUnlinkFromLibraryAction`.
7. Create new `AddToLibraryAction`. Code action to use
`HasLibraryTransforms` interface.
8. Create new `UnlinkFromLibraryAction`. Code action to use
`HasLibraryTransforms` interface.
9. Create new `LibraryNotificationAction`. Code action to use
`UnlinkFromLibraryAction` action.
10. Update MapEmbeddable to implement `HasLibraryTransforms` interface
so that Map embeddable can be used to test new actions.

### Test
1. install sample web logs
2. create new dashboard
3. Click "Add panel" and select "Maps".
4. Click "Save and return".
5. Save dashboard. Inspect dashboard saved object. Verify panel is
by-value and contains `attributes` in `panelsJSON`
<img width="300" alt="Screenshot 2024-03-22 at 2 49 56 PM"
src="49189613-f7c4-435d-88ab-d9c8ceb1575f">
6. Go back to dashboard and open context menu. Click "more" and then
click "Save to library".
7. Save dashboard. Inspect dashboard saved object. Verify panel is
by-reference and does not contain `attributes` in `panelsJSON`.
<img width="300" alt="Screenshot 2024-03-22 at 2 52 19 PM"
src="e3b2eace-a48d-4dd0-a771-f22436d72935">
8. Go to maps listing page. Verify map is displayed in listing page.
Open map and verify it opens. Add some new layers and save map.
11. Go back to dashboard. Verify map contains new layers added to saved
object.
12. Open context menu. Click "more" and then click "Unlink from
library".
13. Save dashboard and verify map panel is now by-value again.

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2024-03-27 16:27:03 -06:00
Marco Liberati
fb19e57a4e
[ES|QL] New @kbn/esql-services package (#179029)
## Summary

Closes https://github.com/elastic/kibana/issues/172649

This PR extracts the ES|QL service like "validation", "autocomplete",
"code_action" (quick fixes) and some other services into a separate
package `@kbn/esql-validation-autocomplete` which has no tie with Monaco
editor anymore.

All the AST and grammar logic has been encapsulated into a single
`@kbn/esql-ast` package who contains the `getAst` function together with
the `parser` and `lexer`.

## Validation enhancements

The validation API has been enhanced to gracefully degrade whenever
callbacks are not provided, via the `ignoreOnMissingCallback` option.
Tests are included as well for this scenario.

### Example plugin

An example plugin app has been developed to show to to use the
validation API

<img width="500" alt="Screenshot 2024-03-22 at 17 45 38"
src="ebc172d3-ee61-4f3a-9e42-dcb9b15c7e69">

The app starts with a missing callback:

<img width="855" alt="Screenshot 2024-03-22 at 17 36 22"
src="c9b81370-8a10-487d-b22f-2359e1365a54">

Toggling the ignore option will hide the index error due to the lack of
`getSources` callback:

<img width="816" alt="Screenshot 2024-03-22 at 17 28 17"
src="931f4e5f-3ad6-46f7-97ca-63d7bb66646b">

Warnings are shown as well when detected:

<img width="807" alt="Screenshot 2024-03-22 at 17 35 56"
src="5e3e0537-cba2-475f-946b-0302867384ca">

#### Code snippet

The example app produces a copyable code snippet of the current
configuration of the validator:

![Code
snippet](https://private-user-images.githubusercontent.com/924948/316838987-fd16da58-8790-40b2-851d-b92aca1811dc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTE0NTY0MzUsIm5iZiI6MTcxMTQ1NjEzNSwicGF0aCI6Ii85MjQ5NDgvMzE2ODM4OTg3LWZkMTZkYTU4LTg3OTAtNDBiMi04NTFkLWI5MmFjYTE4MTFkYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMzI2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDMyNlQxMjI4NTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00ZDhhOGRlMjZjMzZhN2NjNTdkYWMxYTNjOWVkNTA3NDk5NGViOTg2NWEzMTAyZGM4MGYyOTQ0YjQ2N2Q3ZDI1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.H-3r_B57NK1-rS8UbR_bxlNtAMQ0flFGtW0oTIiOlr0)

### Checklist

- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-03-27 14:39:48 +01:00
Jeramy Soucy
7391431ae7
Upgrade tar@6.1.15→6.2.1 (#179462)
## Summary

Upgrades `tar` from v6.1.15 to v6.2.1, and @types/tar from from v6.1.5
to v6.1.11.
2024-03-27 09:14:10 -04:00
renovate[bot]
a8d65dc6ca
Update dependency elastic-apm-node to ^4.5.0 (main) (#179081)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jean-Louis Leysens <jeanlouis.leysens@elastic.co>
2024-03-26 09:34:17 -07:00
Cee Chen
8eb2fbd805
Upgrade EUI to v93.5.1 (#179363)
`v93.4.0`  `v93.5.1`

---

## [`v93.5.1`](https://github.com/elastic/eui/releases/v93.5.1)

**Bug fixes**

- Fixed unvirtualized `EuiSelectable`s to not cause Jest/jsdom errors on
active option change ([#7618](https://github.com/elastic/eui/pull/7618))

## [`v93.5.0`](https://github.com/elastic/eui/releases/v93.5.0)

- `EuiHeaderLinks` now accepts a `children` render function that will be
passed a `closeMobilePopover` callback, allowing consumers to close the
mobile popover by its content
([#7603](https://github.com/elastic/eui/pull/7603))
- Updated `EuiSelectable` to support scrolling list containers when
`listProps.isVirtualization` is set to `false`
([#7609](https://github.com/elastic/eui/pull/7609))

**Bug fixes**

- Fixed `EuiIconTip`'s default `aria-label` text to be i18n tokenizable
([#7606](https://github.com/elastic/eui/pull/7606))
- Fixed `EuiTextArea`'s CSS box model to no longer render a few extra
pixels of strut height
([#7607](https://github.com/elastic/eui/pull/7607))

**Dependency updates**

- Updated `@types/refractor` to v3.4.0
([#7590](https://github.com/elastic/eui/pull/7590))
- Updated `@types/lodash` to v4.14.202
([#7591](https://github.com/elastic/eui/pull/7591))
- Removed `@types/resize-observer-browser` dependency. `ResizeObserver`
types should already be baked in to Typescript as of 4.2+
([#7592](https://github.com/elastic/eui/pull/7592))
- Updated `classnames` to v2.5.1
([#7593](https://github.com/elastic/eui/pull/7593))
- Updated `@types/numeral` to v2.0.5
([#7594](https://github.com/elastic/eui/pull/7594))
- Updated `@types/react-window` to 1.8.8
([#7597](https://github.com/elastic/eui/pull/7597))
- Updated `prop-types` to v15.18.1
([#7602](https://github.com/elastic/eui/pull/7602))
- Removed `prop-types` as a peer dependency, per package recommendation
([#7602](https://github.com/elastic/eui/pull/7602))

**Accessibility**

- `EuiIcons` no longer apply `aria-hidden` to empty icons, as long as a
valid title or label is provided to the icon. In particular, this is
intended to improve the accessibility of loading `EuiIconTip`s.
([#7606](https://github.com/elastic/eui/pull/7606))
2024-03-26 08:44:31 -07:00
Nick Partridge
af5645247e
[Lens] Replace expression_gauge from Goal to Bullet (#177766)
## Summary

Migrates the Lens `Bullet Horizontal` and `Bullet Vertical` charts to the new design. Adds the `Semi-circular Gauge`, `Arc Gauge` and `Circular Gauge` chart types to Lens. See comparison between old and new designs below.

### Horizontal Bullet

<img width="891" alt="image"
src="18c3ec03-203f-4058-a543-4c7bde58dfd2">

### Vertical Bullet

<img width="736" alt="image"
src="f3da410a-8003-4647-8027-f6a13416aa38">

### Semi-circular Gauge

<img width="870" alt="image"
src="b1b3cc1b-1155-4fac-8ae7-fb1992fdfa99">

### Arc Gauge

<img width="849" alt="image"
src="bf552604-44cf-4db8-819d-a4d1558fc679">

### Circular Gauge

<img width="846" alt="image"
src="19ee5dc3-fd86-434c-ad62-6063361f60e5">
2024-03-26 08:42:13 -07:00
Sander Philipse
a64642b58c
[Search] Create connectors plugin (#178663)
## Summary

Creates a new search-connectors-plugin that houses some shared stateful
code for connectors. Right now this houses just images and a list of
connector types. In the futures this will also house API calls.


### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [x] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [x] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)


### Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to
identify risks that should be tested prior to the change/feature
release.

When forming the risk matrix, consider some of the following examples
and how they may potentially impact the change:

| Risk | Probability | Severity | Mitigation/Notes |

|---------------------------|-------------|----------|-------------------------|
| Multiple Spaces&mdash;unexpected behavior in non-default Kibana Space.
| Low | High | Integration tests will verify that all features are still
supported in non-default Kibana Space and when user switches between
spaces. |
| Multiple nodes&mdash;Elasticsearch polling might have race conditions
when multiple Kibana nodes are polling for the same tasks. | High | Low
| Tasks are idempotent, so executing them multiple times will not result
in logical error, but will degrade performance. To test for this case we
add plenty of unit tests around this logic and document manual testing
procedure. |
| Code should gracefully handle cases when feature X or plugin Y are
disabled. | Medium | High | Unit tests will verify that any feature flag
or plugin combination still results in our service operational. |
| [See more potential risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) |


### For maintainers

- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-03-26 06:56:16 -07:00
dkirchan
7b11832ea5
[Securitry][Buildkite] Moved dev dependencies to the correct section (#178392)
## Summary

Moved dev dependencies to the correct section
2024-03-26 13:53:50 +01:00
Søren Louv-Jansen
bb72b3e8e9
[ObsAiAssistant] Move AI Assistant Management plugin to x-pack (#179235)
This PR moves the AI Assistant Management plugin into x-pack to
co-locate it with the other assistant plugins and to make it possible to
statically import from the other assistant plugins. This is not
currently possible because the Management plugin is in OSS and the other
plugins are in xpack.
2024-03-25 08:36:36 -05:00
Marta Bondyra
0c9bfb89c7
[Lens] remove barely used redux-logger (#179326)
## Summary

Removes redux-logger as we agreed we barely use it.
2024-03-25 13:20:51 +01:00
Cee Chen
3a165855d5
Upgrade EUI to v93.4.0 (#178890)
`v93.3.0` `v93.4.0`

---

## [`v93.4.0`](https://github.com/elastic/eui/releases/v93.4.0)

- Added the following properties to `EuiButtonGroup`'s `options`
configs: `toolTipContent`, `toolTipProps`, and `title`. These new
properties allow wrapping buttons in `EuiToolTips`, and additionally
customizing or disabling the native browser `title` tooltip.
([#7461](https://github.com/elastic/eui/pull/7461))
- Enhanced `EuiResizeObserver` and `useResizeObserver`'s performance to
not trigger page reflows on resize event
([#7575](https://github.com/elastic/eui/pull/7575))
- Updated `EuiSuperUpdateButton` to support custom button text via an
optional `children` prop
([#7576](https://github.com/elastic/eui/pull/7576))

**Bug fixes**

- Fixed `EuiFlyout` to not repeatedly remove/add a body class on resize
([#7462](https://github.com/elastic/eui/pull/7462))
- Fixed `EuiToast` title text to wrap instead of overflowing out of the
container ([#7568](https://github.com/elastic/eui/pull/7568))
- Fixed a visual bug with `EuiHeaderBreadcrumbs` with popovers
([#7580](https://github.com/elastic/eui/pull/7580))

**Deprecations**

- Deprecated `euiPalettePositive` and `euiPaletteNegative` in favour of
a more culturally inclusive `euiPaletteGreen` and `euiPaletteRed`
([#7570](https://github.com/elastic/eui/pull/7570))
- Deprecated all charts theme exports in favor of `@elastic/charts`
exports: ([#7572](https://github.com/elastic/eui/pull/7572))
- Deprecated `EUI_CHARTS_THEME_<DARK|LIGHT>` in favor of
`<DARK|LIGHT>_THEME` from `@elastic/charts`.
([#7572](https://github.com/elastic/eui/pull/7572))
- Deprecated `EUI_SPARKLINE_THEME_PARTIAL` in favor of
`useSparklineOverrides` theme from the kibana `charts` plugin `theme`
service.

**Accessibility**

- Updated `EuiModal` to set an `aria-modal` attribute and a default
`dialog` role ([#7564](https://github.com/elastic/eui/pull/7564))
- Updated `EuiConfirmModal` to set a default `alertdialog` role
([#7564](https://github.com/elastic/eui/pull/7564))
- Fixed `EuiModal` and `EuiConfirmModal` to properly trap
Safari+VoiceOver's virtual cursor
([#7564](https://github.com/elastic/eui/pull/7564))
2024-03-22 11:06:11 -07:00
Samiul Monir
ef899e40bf
[Kibana] AI Playground (#178049)
## Summary

We are planning to continue further development in `kibana` and this
feature will be gated.


### Checklist

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

---------

Co-authored-by: Yan Savitski <yan.savitski@elastic.co>
Co-authored-by: Joseph McElroy <joseph.mcelroy@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-03-21 17:10:31 +01:00
Sébastien Loix
37dee75e31
[Stateful sidenav] Add deeplink definitions & hide page side nav (#178861) 2024-03-20 12:39:47 +00:00
Walter Rafelsberger
be9ad681ba
[ML] Consolidate redundant time_buckets into @kbn/ml-time-buckets. (#178756)
## Summary

Follow up to #46227.

Consolidates multiple copies of `time_buckets.js` into
`@kbn/ml-time-buckets`. The scope of this PR is just to consolidate the
files. In follow ups we still need to: Refactor JS to TS and get rid of
the code that uses this using "dependency cache" in the `ml` plugin.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2024-03-20 13:39:07 +01:00
Pierre Gayvallet
07feb4f1f4
Enable TS decorators (#178873)
## Summary

Extracted from https://github.com/elastic/kibana/pull/175080

- Enable support for TS decorators (by enabling `experimentalDecorators`
and `emitDecoratorMetadata` on base TS config)
- Add plugins to babel configuration to support decorators 
  - `@babel/plugin-proposal-decorators`
  - `babel-plugin-transform-typescript-metadata`
- Import `reflect-metadata` to mimic `emitDecoratorMetadata`
  - on server-side in `setup_node_env` 
  - on browser-side from core's entrypoint
2024-03-20 12:02:41 +01:00
Sid
bccb0cd4ba
Upgrade nodemailer dependency 6.6.2 -> 6.9.9 (#176487)
Update nodemailer production dependency (6.6.2 -> 6.9.9)

Nodemailer changelog: 
- Fixing GHSA:
https://github.com/nodemailer/nodemailer/blob/master/CHANGELOG.md#699-2024-02-01
- Update hotmail/outlook well known service
https://github.com/nodemailer/nodemailer/blob/master/CHANGELOG.md#673-2022-03-21

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2024-03-19 17:00:55 +01:00
Panagiota Mitsopoulou
d5dfee7146
New slo plugin (#177937)
Fixes https://github.com/elastic/kibana/issues/176420

## 🍒 Summary
This PR copies the SLO code that was inside the Observability app into
its own app under `observability-solution/slo` folder.


4f6b8dfb-9612-4d30-ad50-4ee5c55a9c32

## ✔️  Acceptance criteria
- URL of new app: `app/slos`
- Design and functionality are not changed. 
- Git history has been retained for all files in
`x-pack/plugins/observability_solution/slo`.
- SLO should appear on server less
- SLO code inside `observability_solution/observability` code has been
removed. A new clean up round might be needed though for possible
leftovers.
- Burn rate rule is registered within the new slo app
- SLO embeddables are moved inside the new slo app
  - overview
  - alerts embeddable
  - error budget burn down
- Alerts table configuration registration for slo details page and
alerts table embeddable is still done in the observability app. Response
Ops team is working on removing the need to register the alert table
anyway
- Slo app is wrapped into `ApplicationUsageTrackingProvider` which will
send slo `Application usage` information tracked by the `slo` appId
- Redirect old `app/observability/slos` route to `app/slos`
- Rename old `xpack.observability.slo` keys to `xpack.slo` in the
translation files


## 🌮 How to test
Design and functionality didn't change, so simply navigate to existing
slo pages and try to break it
- Slo list page
  - group by
  - unified search
  - toggle buttons
  - actions
- Slo creation
  - try group by as well 
- Slo detail page
  - Actions on top 
  - navigate to overview and alerts tabs
- Create SLO flyout in Logs Explorer
- Create burn rate rules and verify they appear on rules page
- Verify SLO alerts appear on Alerts page and slo details page
- Embeddables
  - Through the dashboard app
- Using the attach to dashboard action on the slo card item on slo list
page and the error budget burn down chart on the slo detail page
- SLOs only for platinum users
- Permissions
- Spaces


## TODO

- [x] Move slo stuff from observability folder to new slo plugin
- [x] Remove old slo stuff from observability folder
- [x] Update references 
- [x] Fix typescript and eslint errors
- [x] Paths
- [x] Locators
- [x] Burn rate rule registration
- [x] Embeddable Alerts table configuration registration
- [x] Embeddables
- [x] Translations
- [x] Verify plugin.ts files contain all registration logic
  - [x] public
  - [x] server
- [x] Final cleanup for observability folder
- [x] Run tests
- [x] Application Usage (Telemetry)
- [x] Permissions

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: shahzad31 <shahzad31comp@gmail.com>
Co-authored-by: Coen Warmer <coen.warmer@gmail.com>
2024-03-19 03:17:34 -07:00
Walter Rafelsberger
8364ce85b3
[ML] AIOps: Add performance journey for log rate analysis. (#178017)
## Summary

Part of #173301.

Add a performance journey for AIOps Log Rate Analysis.

To run the performance journey locally, run:

```
node scripts/run_performance.js --journey-path x-pack/performance/journeys/aiops_log_rate_analysis.ts
```

Review notes:

- The small dataset used isn't set up using `esArchiver`, because it's
just 18 docs we're reusing a file from AIOps integration tests und using
bulk ingest to create the index. The data view necessary to populate the
UI is created with an `kibanaServer.request` call.
- Because of the above, the usual `es/kbnArchiver` cleanup cannot kick
in. To support manual cleanup, I added an `afterSteps` option similar to
the existing `beforeSteps` option. This allows us to delete the index
and data view during teardown.
- Kibana operations team triggered by `.buildkite/ftr_configs.yml`.


Journey showing up in APM:

<img width="1638" alt="image"
src="14f130f5-c125-4390-90d0-96002bc916f3">

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2024-03-19 09:25:33 +01:00
Sébastien Loix
059e4a57d0
[Stateful sidenav] Breadcrumb switcher (#178112) 2024-03-18 11:01:12 +00:00
Larry Gregory
2d3cec1265
Removes unused dependencies (#178730) 2024-03-15 20:18:35 -04:00
Larry Gregory
c3f685c08f
Remove @cypress/snapshot (#178723)
## Summary

Removes the unused `@cypress/snapshot` dependency.
2024-03-14 10:28:26 -04:00
Pierre Gayvallet
b816af44a4
[Security into Core] expose authc.getCurrentUser from core.security (#177976)
## Summary

First part of https://github.com/elastic/kibana/issues/174578

- Introduce the new `security` core service, both on the browser and
server-side.
- In this first stage, this service only has a single API:
`authc.getCurrentUser`
- Have the security plugin register its API to Core for ex-exposition

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-03-14 05:31:18 -07:00
renovate[bot]
c312baeec1
Update dependency terser to ^5.28.1 (main) (#178575)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [terser](https://terser.org)
([source](https://togithub.com/terser/terser)) | [`^5.26.0` ->
`^5.28.1`](https://renovatebot.com/diffs/npm/terser/5.26.0/5.28.1) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/terser/5.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/terser/5.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/terser/5.26.0/5.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/terser/5.26.0/5.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>terser/terser (terser)</summary>

###
[`v5.28.1`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5281)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.28.0...v5.28.1)

(hotfix release)

-   Reverts v5.28.0

###
[`v5.28.0`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5280)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.27.2...v5.28.0)

- Optimise redundant or shrinkable bitwise operations (`|`, `^`, `&`,
`>>`, `<<`)
-   Evaluate some `BigInt` math operations

###
[`v5.27.2`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5272)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.27.1...v5.27.2)

- Recognise `this` as a reference to the surrounding class in
`drop_unused`. Closes
[#&#8203;1472](https://togithub.com/terser/terser/issues/1472)

###
[`v5.27.1`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5271)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.27.0...v5.27.1)

- Fixed case where `collapse_vars` inlines `await` expressions into
non-async functions.

###
[`v5.27.0`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5270)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.26.0...v5.27.0)

- Created `minify_sync()` alternative to `minify()` since there's no
async code left.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/elastic/kibana).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMzguMSIsInVwZGF0ZWRJblZlciI6IjM3LjIzOC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2024-03-13 11:22:44 -05:00
renovate[bot]
11288d12e7
Update babel (main) (#178573)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@babel/cli](https://babel.dev/docs/en/next/babel-cli)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-cli))
| [`^7.23.4` ->
`^7.23.9`](https://renovatebot.com/diffs/npm/@babel%2fcli/7.23.4/7.23.9)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fcli/7.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fcli/7.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fcli/7.23.4/7.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fcli/7.23.4/7.23.9?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/core](https://babel.dev/docs/en/next/babel-core)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-core))
| [`^7.23.6` ->
`^7.24.0`](https://renovatebot.com/diffs/npm/@babel%2fcore/7.23.6/7.24.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fcore/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fcore/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fcore/7.23.6/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fcore/7.23.6/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/eslint-parser](https://babel.dev/)
([source](https://togithub.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser))
| [`^7.23.3` ->
`^7.23.10`](https://renovatebot.com/diffs/npm/@babel%2feslint-parser/7.23.3/7.23.10)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2feslint-parser/7.23.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2feslint-parser/7.23.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2feslint-parser/7.23.3/7.23.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2feslint-parser/7.23.3/7.23.10?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@babel/helper-plugin-utils](https://babel.dev/docs/en/next/babel-helper-plugin-utils)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-helper-plugin-utils))
| [`^7.22.5` ->
`^7.24.0`](https://renovatebot.com/diffs/npm/@babel%2fhelper-plugin-utils/7.22.5/7.24.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fhelper-plugin-utils/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fhelper-plugin-utils/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fhelper-plugin-utils/7.22.5/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fhelper-plugin-utils/7.22.5/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/parser](https://babel.dev/docs/en/next/babel-parser)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-parser))
| [`^7.23.6` ->
`^7.24.0`](https://renovatebot.com/diffs/npm/@babel%2fparser/7.23.9/7.24.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fparser/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fparser/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fparser/7.23.9/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fparser/7.23.9/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@babel/plugin-transform-runtime](https://babel.dev/docs/en/next/babel-plugin-transform-runtime)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime))
| [`^7.23.6` ->
`^7.24.0`](https://renovatebot.com/diffs/npm/@babel%2fplugin-transform-runtime/7.23.6/7.24.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fplugin-transform-runtime/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fplugin-transform-runtime/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fplugin-transform-runtime/7.23.6/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fplugin-transform-runtime/7.23.6/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/preset-env](https://babel.dev/docs/en/next/babel-preset-env)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-preset-env))
| [`^7.23.6` ->
`^7.24.0`](https://renovatebot.com/diffs/npm/@babel%2fpreset-env/7.23.6/7.24.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fpreset-env/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fpreset-env/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fpreset-env/7.23.6/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fpreset-env/7.23.6/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/register](https://babel.dev/docs/en/next/babel-register)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-register))
| [`^7.22.15` ->
`^7.23.7`](https://renovatebot.com/diffs/npm/@babel%2fregister/7.22.15/7.23.7)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fregister/7.23.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fregister/7.23.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fregister/7.22.15/7.23.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fregister/7.22.15/7.23.7?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/runtime](https://babel.dev/docs/en/next/babel-runtime)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-runtime))
| [`^7.23.6` ->
`^7.24.0`](https://renovatebot.com/diffs/npm/@babel%2fruntime/7.23.6/7.24.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2fruntime/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2fruntime/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2fruntime/7.23.6/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2fruntime/7.23.6/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/traverse](https://babel.dev/docs/en/next/babel-traverse)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-traverse))
| [`^7.23.6` ->
`^7.24.0`](https://renovatebot.com/diffs/npm/@babel%2ftraverse/7.23.6/7.24.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2ftraverse/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2ftraverse/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2ftraverse/7.23.6/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2ftraverse/7.23.6/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [@babel/types](https://babel.dev/docs/en/next/babel-types)
([source](https://togithub.com/babel/babel/tree/HEAD/packages/babel-types))
| [`^7.21.2` ->
`^7.24.0`](https://renovatebot.com/diffs/npm/@babel%2ftypes/7.21.2/7.24.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@babel%2ftypes/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@babel%2ftypes/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@babel%2ftypes/7.21.2/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@babel%2ftypes/7.21.2/7.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>babel/babel (@&#8203;babel/cli)</summary>

###
[`v7.23.9`](https://togithub.com/babel/babel/blob/HEAD/CHANGELOG.md#v7239-2024-01-25)

[Compare
Source](https://togithub.com/babel/babel/compare/v7.23.4...v7.23.9)

##### 🐛 Bug Fix

- `babel-helper-transform-fixture-test-runner`,
`babel-plugin-transform-function-name`,
`babel-plugin-transform-modules-systemjs`, `babel-preset-env`
- [#&#8203;16225](https://togithub.com/babel/babel/pull/16225) fix:
`systemjs` re-traverses helpers
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- `babel-helper-create-class-features-plugin`,
`babel-plugin-proposal-decorators`
- [#&#8203;16226](https://togithub.com/babel/babel/pull/16226) Improve
decorated private method check
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- `babel-plugin-proposal-decorators`,
`babel-plugin-transform-async-generator-functions`,
`babel-plugin-transform-runtime`, `babel-preset-env`
- [#&#8203;16224](https://togithub.com/babel/babel/pull/16224) Properly
sort `core-js@3` imports
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
-   `babel-traverse`
- [#&#8203;15383](https://togithub.com/babel/babel/pull/15383) fix:
Don't throw in `getTypeAnnotation` when using TS+inference
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
-   Other
- [#&#8203;16210](https://togithub.com/babel/babel/pull/16210) \[eslint]
Fix `no-use-before-define` for class ref in fields
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))

##### 🏠 Internal

-   `babel-core`, `babel-parser`, `babel-template`
- [#&#8203;16222](https://togithub.com/babel/babel/pull/16222) Migrate
`eslint-parser` to cts
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
-   `babel-types`
- [#&#8203;16213](https://togithub.com/babel/babel/pull/16213) Remove
`@babel/types` props that are not produced by the parser
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))

##### 🏃‍♀️ Performance

-   `babel-parser`
- [#&#8203;16072](https://togithub.com/babel/babel/pull/16072) perf:
Improve parser performance for typescript
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))

##### 🔬 Output optimization

- `babel-helper-create-class-features-plugin`,
`babel-plugin-proposal-decorators`,
`babel-plugin-proposal-destructuring-private`,
`babel-plugin-proposal-pipeline-operator`,
`babel-plugin-transform-class-properties`,
`babel-plugin-transform-class-static-block`,
`babel-plugin-transform-new-target`,
`babel-plugin-transform-parameters`,
`babel-plugin-transform-private-methods`, `babel-preset-env`
- [#&#8203;16218](https://togithub.com/babel/babel/pull/16218) Improve
temporary variables for decorators
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- `babel-helpers`, `babel-plugin-proposal-explicit-resource-management`,
`babel-runtime-corejs2`, `babel-runtime-corejs3`, `babel-runtime`
- [#&#8203;15959](https://togithub.com/babel/babel/pull/15959) Improve
output of `using`
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))

</details>

<details>
<summary>babel/babel (@&#8203;babel/parser)</summary>

### [`v7.24.0`](https://togithub.com/babel/babel/releases/tag/v7.24.0)

[Compare
Source](https://togithub.com/babel/babel/compare/v7.23.9...v7.24.0)

#### v7.24.0 (2024-02-28)

Thanks [@&#8203;ajihyf](https://togithub.com/ajihyf) for your first PR!

Release post with summary and highlights: https://babeljs.io/7.24.0

##### 🚀 New Feature

-   `babel-standalone`
- [#&#8203;11696](https://togithub.com/babel/babel/pull/11696) Export
babel tooling packages in `@babel/standalone`
([@&#8203;ajihyf](https://togithub.com/ajihyf))
- `babel-core`, `babel-helper-create-class-features-plugin`,
`babel-helpers`, `babel-plugin-transform-class-properties`
- [#&#8203;16267](https://togithub.com/babel/babel/pull/16267) Implement
`noUninitializedPrivateFieldAccess` assumption
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-helper-create-class-features-plugin`, `babel-helpers`,
`babel-plugin-proposal-decorators`,
`babel-plugin-proposal-pipeline-operator`,
`babel-plugin-syntax-decorators`,
`babel-plugin-transform-class-properties`, `babel-runtime-corejs2`,
`babel-runtime-corejs3`, `babel-runtime`
- [#&#8203;16242](https://togithub.com/babel/babel/pull/16242) Support
decorator 2023-11 normative updates
([@&#8203;JLHwung](https://togithub.com/JLHwung))
-   `babel-preset-flow`
- [#&#8203;16309](https://togithub.com/babel/babel/pull/16309) \[babel
7] Allow setting `ignoreExtensions` in Flow preset
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- [#&#8203;16284](https://togithub.com/babel/babel/pull/16284) Add
`experimental_useHermesParser` option in `preset-flow`
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- `babel-helper-import-to-platform-api`,
`babel-plugin-proposal-import-wasm-source`,
`babel-plugin-proposal-json-modules`, `babel-standalone`
- [#&#8203;16172](https://togithub.com/babel/babel/pull/16172) Add
transform support for JSON modules imports
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
-   `babel-plugin-transform-runtime`
- [#&#8203;16241](https://togithub.com/babel/babel/pull/16241) Add back
`moduleName` option to `@babel/plugin-transform-runtime`
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
-   `babel-parser`, `babel-types`
- [#&#8203;16277](https://togithub.com/babel/babel/pull/16277) Allow
import attributes for `TSImportType`
([@&#8203;sosukesuzuki](https://togithub.com/sosukesuzuki))

##### 🐛 Bug Fix

-   `babel-plugin-proposal-do-expressions`, `babel-traverse`
- [#&#8203;16305](https://togithub.com/babel/babel/pull/16305) fix:
avoid `popContext` on unvisited node paths
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- `babel-helper-create-class-features-plugin`,
`babel-plugin-transform-private-methods`,
`babel-plugin-transform-private-property-in-object`
- [#&#8203;16312](https://togithub.com/babel/babel/pull/16312) Fix class
private properties when `privateFieldsAsSymbols`
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- `babel-helper-create-class-features-plugin`,
`babel-plugin-transform-private-methods`
- [#&#8203;16307](https://togithub.com/babel/babel/pull/16307) Fix the
support of `arguments` in private `get/set` method
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- `babel-helper-create-class-features-plugin`, `babel-helpers`,
`babel-plugin-proposal-decorators`
- [#&#8203;16287](https://togithub.com/babel/babel/pull/16287) Reduce
decorator static property size
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- `babel-helper-create-class-features-plugin`,
`babel-plugin-proposal-decorators`
- [#&#8203;16281](https://togithub.com/babel/babel/pull/16281) Fix
evaluation order of decorators with cached receiver
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- [#&#8203;16279](https://togithub.com/babel/babel/pull/16279) Fix
decorator this memoization
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- [#&#8203;16266](https://togithub.com/babel/babel/pull/16266) Preserve
`static` on decorated private `accessor`
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- [#&#8203;16258](https://togithub.com/babel/babel/pull/16258) fix:
handle decorated async private method and generator
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- `babel-helper-create-class-features-plugin`,
`babel-plugin-proposal-decorators`,
`babel-plugin-transform-async-generator-functions`,
`babel-plugin-transform-private-methods`,
`babel-plugin-transform-private-property-in-object`,
`babel-plugin-transform-typescript`, `babel-preset-env`
- [#&#8203;16275](https://togithub.com/babel/babel/pull/16275) Fix class
private properties when `privateFieldsAsProperties`
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
-   `babel-helpers`
- [#&#8203;16268](https://togithub.com/babel/babel/pull/16268) Do not
consider `arguments` in a helper as a global reference
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
-   `babel-helpers`, `babel-plugin-proposal-decorators`
- [#&#8203;16270](https://togithub.com/babel/babel/pull/16270) Handle
symbol key class elements decoration
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- [#&#8203;16265](https://togithub.com/babel/babel/pull/16265) Do not
define `access.get` for public setter decorators
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))

##### 💅 Polish

- `babel-core`, `babel-helper-create-class-features-plugin`,
`babel-preset-env`
- [#&#8203;12428](https://togithub.com/babel/babel/pull/12428) Suggest
using `BABEL_SHOW_CONFIG_FOR` for config problems
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))

##### 🏠 Internal

-   `babel-helper-transform-fixture-test-runner`
- [#&#8203;16278](https://togithub.com/babel/babel/pull/16278) Continue
writing `output.js` when `exec.js` throws
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))

##### 🔬 Output optimization

- `babel-helper-create-class-features-plugin`,
`babel-plugin-proposal-decorators`
- [#&#8203;16306](https://togithub.com/babel/babel/pull/16306) Avoid
intermediate functions for private accessors with decs
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-helper-create-class-features-plugin`, `babel-helpers`,
`babel-plugin-proposal-decorators`,
`babel-plugin-proposal-pipeline-operator`,
`babel-plugin-transform-class-properties`
- [#&#8203;16294](https://togithub.com/babel/babel/pull/16294) More
aggressively inline decorators in the static block
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- `babel-helper-create-class-features-plugin`, `babel-helpers`,
`babel-plugin-transform-private-methods`
- [#&#8203;16283](https://togithub.com/babel/babel/pull/16283) Do not
use `classPrivateMethodGet`
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- `babel-helper-create-class-features-plugin`, `babel-helpers`,
`babel-plugin-proposal-decorators`
- [#&#8203;16287](https://togithub.com/babel/babel/pull/16287) Reduce
decorator static property size
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))
- `babel-helper-create-class-features-plugin`,
`babel-plugin-proposal-decorators`,
`babel-plugin-transform-class-properties`
- [#&#8203;16280](https://togithub.com/babel/babel/pull/16280) Reduce
element decorator temp variables
([@&#8203;JLHwung](https://togithub.com/JLHwung))
- `babel-helper-create-class-features-plugin`, `babel-helper-fixtures`,
`babel-helpers`,
`babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining`,
`babel-plugin-proposal-decorators`,
`babel-plugin-proposal-destructuring-private`,
`babel-plugin-proposal-optional-chaining-assign`,
`babel-plugin-transform-class-properties`,
`babel-plugin-transform-class-static-block`,
`babel-plugin-transform-private-methods`,
`babel-plugin-transform-private-property-in-object`, `babel-preset-env`,
`babel-runtime-corejs2`, `babel-runtime-corejs3`, `babel-runtime`
- [#&#8203;16261](https://togithub.com/babel/babel/pull/16261) Do not
use descriptors for private class elements
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
-   `babel-helpers`, `babel-plugin-proposal-decorators`
- [#&#8203;16263](https://togithub.com/babel/babel/pull/16263) Reduce
helper size for decorator 2023-11
([@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu))

##### Committers: 7

-   Babel Bot ([@&#8203;babel-bot](https://togithub.com/babel-bot))
-   Huáng Jùnliàng ([@&#8203;JLHwung](https://togithub.com/JLHwung))
- Nicolò Ribaudo
([@&#8203;nicolo-ribaudo](https://togithub.com/nicolo-ribaudo))
- SUZUKI Sosuke
([@&#8203;sosukesuzuki](https://togithub.com/sosukesuzuki))
- Yarden Shoham
([@&#8203;yardenshoham](https://togithub.com/yardenshoham))
-   [@&#8203;liuxingbaoyu](https://togithub.com/liuxingbaoyu)
-   flyafly ([@&#8203;ajihyf](https://togithub.com/ajihyf))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/elastic/kibana).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMzguMSIsInVwZGF0ZWRJblZlciI6IjM3LjIzOC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2024-03-13 11:22:28 -05:00
Pierre Gayvallet
4a806b689d
Use a single require-in-the-middle hook (#178285)
## Summary

Doing investigations on Kibana startup time, we discovered that the
usage of `require-in-the-middle` has some significant performance
drawback for initial start / module load time.

After investigating, we discovered that the perf hit of the library is
directly related to the number of hooks that are being defined (as the
patching logic is executed once PER hook, surprisingly).

I will be opening an issue upstream to discuss about the problem, but
for now, we'll be working around it from there.

This PR brings some perf improvements by changing the way we're using
the lib, and using a single hook now delegating to the various patching
methods instead of creating one hook per module patch.

### Perf gain

Tests were only performed locally (we will confirm in other environments
once the PR is merged), but the results are quite encouraging.

#### Without the PR

- Process startup: ~2000ms
- Preboot: ~5000ms  
- Setup: ~6000ms
- Start: ~1000ms

#### With the PR

- Process startup: ~1650ms
- Preboot: ~4100ms  
- Setup: ~5150ms
- Start: ~1000ms (no changes, expected given we don't load any module
there)


So TLDR: ~18% in term of initial code loading time.

Thanks to @dgieselaar and @rudolf for the group effort on the
investigation
2024-03-13 09:02:32 -07:00