mirror of
https://github.com/elastic/kibana.git
synced 2025-04-22 08:49:27 -04:00
3120 commits
Author | SHA1 | Message | Date | |
---|---|---|---|---|
|
2ea506e30b
|
Update babel (main) (#181248)
[](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>babel/babel (@​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` - [#​16350](https://togithub.com/babel/babel/pull/16350) Fix decorated class computed keys ordering ([@​JLHwung](https://togithub.com/JLHwung)) - [#​16344](https://togithub.com/babel/babel/pull/16344) Fix decorated class static field private access ([@​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` - [#​16329](https://togithub.com/babel/babel/pull/16329) Respect `moduleName` for `@babel/runtime/regenerator` imports ([@​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` - [#​16331](https://togithub.com/babel/babel/pull/16331) Fix decorator memoiser binding kind ([@​JLHwung](https://togithub.com/JLHwung)) - `babel-helper-create-class-features-plugin`, `babel-helper-replace-supers`, `babel-plugin-proposal-decorators`, `babel-plugin-transform-class-properties` - [#​16325](https://togithub.com/babel/babel/pull/16325) Fix decorator evaluation private environment ([@​JLHwung](https://togithub.com/JLHwung)) ##### 📝 Documentation - [#​16319](https://togithub.com/babel/babel/pull/16319) Update SECURITY.md ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) ##### 🏠 Internal - `babel-code-frame`, `babel-highlight` - [#​16359](https://togithub.com/babel/babel/pull/16359) Replace `chalk` with `picocolors` ([@​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` - [#​16352](https://togithub.com/babel/babel/pull/16352) Run Babel transform tests on old node if possible ([@​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` - [#​16323](https://togithub.com/babel/babel/pull/16323) Allow separate helpers to be excluded in Babel 8 ([@​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` - [#​16349](https://togithub.com/babel/babel/pull/16349) Support merging imports in import injector ([@​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` - [#​16332](https://togithub.com/babel/babel/pull/16332) Test Babel 7 plugins compatibility with Babel 8 core ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-compat-data`, `babel-plugin-transform-object-rest-spread`, `babel-preset-env` - [#​16318](https://togithub.com/babel/babel/pull/16318) \[babel 8] Fix `@babel/compat-data` package.json ([@​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` - [#​16345](https://togithub.com/babel/babel/pull/16345) Optimize the use of `assertThisInitialized` after `super()` ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-plugin-transform-class-properties`, `babel-plugin-transform-classes` - [#​16343](https://togithub.com/babel/babel/pull/16343) Use simpler `assertThisInitialized` more often ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-plugin-proposal-decorators`, `babel-plugin-transform-class-properties`, `babel-plugin-transform-object-rest-spread`, `babel-traverse` - [#​16342](https://togithub.com/babel/babel/pull/16342) Consider well-known and registered symbols as literals ([@​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` - [#​16326](https://togithub.com/babel/babel/pull/16326) Reduce the use of class names ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) </details> <details> <summary>babel/babel (@​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 (@​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 [@​Dunqing](https://togithub.com/Dunqing), [@​luiscubal](https://togithub.com/luiscubal), and [@​samualtnorman](https://togithub.com/samualtnorman) for your first PRs! ##### 👓 Spec Compliance - `babel-parser` - [#​16403](https://togithub.com/babel/babel/pull/16403) Forbid initializerless using ([@​JLHwung](https://togithub.com/JLHwung)) - `babel-helpers`, `babel-plugin-proposal-decorators`, `babel-runtime-corejs3` - [#​16388](https://togithub.com/babel/babel/pull/16388) Ensure decorators are callable ([@​JLHwung](https://togithub.com/JLHwung)) ##### 🐛 Bug Fix - `babel-generator` - [#​16402](https://togithub.com/babel/babel/pull/16402) fix: Correctly prints `{ [key in Bar]? }` ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - [#​16394](https://togithub.com/babel/babel/pull/16394) fix: Correctly generate `TSMappedType` ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-compat-data`, `babel-plugin-bugfix-firefox-class-in-computed-class-key`, `babel-preset-env` - [#​16390](https://togithub.com/babel/babel/pull/16390) Create bugfix plugin for classes in computed keys in Firefox ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-helper-create-class-features-plugin`, `babel-plugin-proposal-decorators` - [#​16387](https://togithub.com/babel/babel/pull/16387) fix: support mutated outer decorated class binding ([@​JLHwung](https://togithub.com/JLHwung)) - [#​16385](https://togithub.com/babel/babel/pull/16385) fix: Decorators when `super()` exists and `protoInit` is not needed ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-plugin-transform-block-scoping` - [#​16384](https://togithub.com/babel/babel/pull/16384) fix: Transform scoping for `for X` in loop ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - [#​16368](https://togithub.com/babel/babel/pull/16368) fix: Capture `let` when the `for` body is not a block ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-core`, `babel-plugin-transform-block-scoped-functions`, `babel-plugin-transform-block-scoping` - [#​16363](https://togithub.com/babel/babel/pull/16363) Fix incorrect function hoisting in some case statements ([@​luiscubal](https://togithub.com/luiscubal)) ##### Committers: 7 - Babel Bot ([@​babel-bot](https://togithub.com/babel-bot)) - Dunqing ([@​Dunqing](https://togithub.com/Dunqing)) - Huáng Jùnliàng ([@​JLHwung](https://togithub.com/JLHwung)) - Luís Reis ([@​luiscubal](https://togithub.com/luiscubal)) - Nicolò Ribaudo ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - Samual Norman ([@​samualtnorman](https://togithub.com/samualtnorman)) - [@​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` - [#​16350](https://togithub.com/babel/babel/pull/16350) Fix decorated class computed keys ordering ([@​JLHwung](https://togithub.com/JLHwung)) - [#​16344](https://togithub.com/babel/babel/pull/16344) Fix decorated class static field private access ([@​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` - [#​16329](https://togithub.com/babel/babel/pull/16329) Respect `moduleName` for `@babel/runtime/regenerator` imports ([@​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` - [#​16331](https://togithub.com/babel/babel/pull/16331) Fix decorator memoiser binding kind ([@​JLHwung](https://togithub.com/JLHwung)) - `babel-helper-create-class-features-plugin`, `babel-helper-replace-supers`, `babel-plugin-proposal-decorators`, `babel-plugin-transform-class-properties` - [#​16325](https://togithub.com/babel/babel/pull/16325) Fix decorator evaluation private environment ([@​JLHwung](https://togithub.com/JLHwung)) ##### 📝 Documentation - [#​16319](https://togithub.com/babel/babel/pull/16319) Update SECURITY.md ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) ##### 🏠 Internal - `babel-code-frame`, `babel-highlight` - [#​16359](https://togithub.com/babel/babel/pull/16359) Replace `chalk` with `picocolors` ([@​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` - [#​16352](https://togithub.com/babel/babel/pull/16352) Run Babel transform tests on old node if possible ([@​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` - [#​16349](https://togithub.com/babel/babel/pull/16349) Support merging imports in import injector ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - Other - [#​16332](https://togithub.com/babel/babel/pull/16332) Test Babel 7 plugins compatibility with Babel 8 core ([@​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` - [#​16345](https://togithub.com/babel/babel/pull/16345) Optimize the use of `assertThisInitialized` after `super()` ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-plugin-transform-class-properties`, `babel-plugin-transform-classes` - [#​16343](https://togithub.com/babel/babel/pull/16343) Use simpler `assertThisInitialized` more often ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-plugin-proposal-decorators`, `babel-plugin-transform-class-properties`, `babel-plugin-transform-object-rest-spread`, `babel-traverse` - [#​16342](https://togithub.com/babel/babel/pull/16342) Consider well-known and registered symbols as literals ([@​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` - [#​16326](https://togithub.com/babel/babel/pull/16326) Reduce the use of class names ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) ##### Committers: 4 - Babel Bot ([@​babel-bot](https://togithub.com/babel-bot)) - Huáng Jùnliàng ([@​JLHwung](https://togithub.com/JLHwung)) - Nicolò Ribaudo ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - [@​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> |
||
|
14f2d95fd0
|
Update dependency elastic-apm-node to ^4.5.2 (main) (#181241)
[](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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> |
||
|
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
|
||
|
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 (
|
||
|
5be49cac39
|
[Stateful sidenav] Remove analytics IA group (#181132) | ||
|
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> |
||
|
5942fb9fef
|
[chore] bump chromedriver to 123 (#181002)
## Summary Updating chromedriver to support running tests on Chrome v124 |
||
|
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> |
||
|
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> |
||
|
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=" |
||
|
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> |
||
|
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> |
||
|
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) |
||
|
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)) |
||
|
15dea75d52
|
[dx] Tweak profiling to include the webpack visualization from CI (#180335) | ||
|
29fe28539b
|
[Security solution] LangChain Streaming (#174126) | ||
|
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=" |
||
|
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> |
||
|
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> |
||
|
947dac2846
|
Upgrade elasticsearch-js to 8.13.0 (#179747) | ||
|
43de4b5d57
|
[Stateful sidenav] Update static definitions (#179043) | ||
|
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. |
||
|
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)) |
||
|
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) |
||
|
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=" |
||
|
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=" |
||
|
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=" |
||
|
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. |
||
|
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> |
||
|
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)) |
||
|
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=" |
||
|
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—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—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> |
||
|
7b11832ea5
|
[Securitry][Buildkite] Moved dev dependencies to the correct section (#178392)
## Summary Moved dev dependencies to the correct section |
||
|
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. |
||
|
0c9bfb89c7
|
[Lens] remove barely used redux-logger (#179326)
## Summary Removes redux-logger as we agreed we barely use it. |
||
|
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)) |
||
|
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> |
||
|
37dee75e31
|
[Stateful sidenav] Add deeplink definitions & hide page side nav (#178861) | ||
|
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) |
||
|
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 |
||
|
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> |
||
|
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.
|
||
|
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="
|
||
|
059e4a57d0
|
[Stateful sidenav] Breadcrumb switcher (#178112) | ||
|
2d3cec1265
|
Removes unused dependencies (#178730) | ||
|
c3f685c08f
|
Remove @cypress/snapshot (#178723)
## Summary Removes the unused `@cypress/snapshot` dependency. |
||
|
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> |
||
|
c312baeec1
|
Update dependency terser to ^5.28.1 (main) (#178575)
[](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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 [#​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> |
||
|
11288d12e7
|
Update babel (main) (#178573)
[](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>babel/babel (@​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` - [#​16225](https://togithub.com/babel/babel/pull/16225) fix: `systemjs` re-traverses helpers ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-helper-create-class-features-plugin`, `babel-plugin-proposal-decorators` - [#​16226](https://togithub.com/babel/babel/pull/16226) Improve decorated private method check ([@​JLHwung](https://togithub.com/JLHwung)) - `babel-plugin-proposal-decorators`, `babel-plugin-transform-async-generator-functions`, `babel-plugin-transform-runtime`, `babel-preset-env` - [#​16224](https://togithub.com/babel/babel/pull/16224) Properly sort `core-js@3` imports ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-traverse` - [#​15383](https://togithub.com/babel/babel/pull/15383) fix: Don't throw in `getTypeAnnotation` when using TS+inference ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - Other - [#​16210](https://togithub.com/babel/babel/pull/16210) \[eslint] Fix `no-use-before-define` for class ref in fields ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) ##### 🏠 Internal - `babel-core`, `babel-parser`, `babel-template` - [#​16222](https://togithub.com/babel/babel/pull/16222) Migrate `eslint-parser` to cts ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-types` - [#​16213](https://togithub.com/babel/babel/pull/16213) Remove `@babel/types` props that are not produced by the parser ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) ##### 🏃♀️ Performance - `babel-parser` - [#​16072](https://togithub.com/babel/babel/pull/16072) perf: Improve parser performance for typescript ([@​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` - [#​16218](https://togithub.com/babel/babel/pull/16218) Improve temporary variables for decorators ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-helpers`, `babel-plugin-proposal-explicit-resource-management`, `babel-runtime-corejs2`, `babel-runtime-corejs3`, `babel-runtime` - [#​15959](https://togithub.com/babel/babel/pull/15959) Improve output of `using` ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) </details> <details> <summary>babel/babel (@​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 [@​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` - [#​11696](https://togithub.com/babel/babel/pull/11696) Export babel tooling packages in `@babel/standalone` ([@​ajihyf](https://togithub.com/ajihyf)) - `babel-core`, `babel-helper-create-class-features-plugin`, `babel-helpers`, `babel-plugin-transform-class-properties` - [#​16267](https://togithub.com/babel/babel/pull/16267) Implement `noUninitializedPrivateFieldAccess` assumption ([@​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` - [#​16242](https://togithub.com/babel/babel/pull/16242) Support decorator 2023-11 normative updates ([@​JLHwung](https://togithub.com/JLHwung)) - `babel-preset-flow` - [#​16309](https://togithub.com/babel/babel/pull/16309) \[babel 7] Allow setting `ignoreExtensions` in Flow preset ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - [#​16284](https://togithub.com/babel/babel/pull/16284) Add `experimental_useHermesParser` option in `preset-flow` ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-helper-import-to-platform-api`, `babel-plugin-proposal-import-wasm-source`, `babel-plugin-proposal-json-modules`, `babel-standalone` - [#​16172](https://togithub.com/babel/babel/pull/16172) Add transform support for JSON modules imports ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-plugin-transform-runtime` - [#​16241](https://togithub.com/babel/babel/pull/16241) Add back `moduleName` option to `@babel/plugin-transform-runtime` ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-parser`, `babel-types` - [#​16277](https://togithub.com/babel/babel/pull/16277) Allow import attributes for `TSImportType` ([@​sosukesuzuki](https://togithub.com/sosukesuzuki)) ##### 🐛 Bug Fix - `babel-plugin-proposal-do-expressions`, `babel-traverse` - [#​16305](https://togithub.com/babel/babel/pull/16305) fix: avoid `popContext` on unvisited node paths ([@​JLHwung](https://togithub.com/JLHwung)) - `babel-helper-create-class-features-plugin`, `babel-plugin-transform-private-methods`, `babel-plugin-transform-private-property-in-object` - [#​16312](https://togithub.com/babel/babel/pull/16312) Fix class private properties when `privateFieldsAsSymbols` ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-helper-create-class-features-plugin`, `babel-plugin-transform-private-methods` - [#​16307](https://togithub.com/babel/babel/pull/16307) Fix the support of `arguments` in private `get/set` method ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-helper-create-class-features-plugin`, `babel-helpers`, `babel-plugin-proposal-decorators` - [#​16287](https://togithub.com/babel/babel/pull/16287) Reduce decorator static property size ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-helper-create-class-features-plugin`, `babel-plugin-proposal-decorators` - [#​16281](https://togithub.com/babel/babel/pull/16281) Fix evaluation order of decorators with cached receiver ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - [#​16279](https://togithub.com/babel/babel/pull/16279) Fix decorator this memoization ([@​JLHwung](https://togithub.com/JLHwung)) - [#​16266](https://togithub.com/babel/babel/pull/16266) Preserve `static` on decorated private `accessor` ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - [#​16258](https://togithub.com/babel/babel/pull/16258) fix: handle decorated async private method and generator ([@​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` - [#​16275](https://togithub.com/babel/babel/pull/16275) Fix class private properties when `privateFieldsAsProperties` ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-helpers` - [#​16268](https://togithub.com/babel/babel/pull/16268) Do not consider `arguments` in a helper as a global reference ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-helpers`, `babel-plugin-proposal-decorators` - [#​16270](https://togithub.com/babel/babel/pull/16270) Handle symbol key class elements decoration ([@​JLHwung](https://togithub.com/JLHwung)) - [#​16265](https://togithub.com/babel/babel/pull/16265) Do not define `access.get` for public setter decorators ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) ##### 💅 Polish - `babel-core`, `babel-helper-create-class-features-plugin`, `babel-preset-env` - [#​12428](https://togithub.com/babel/babel/pull/12428) Suggest using `BABEL_SHOW_CONFIG_FOR` for config problems ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) ##### 🏠 Internal - `babel-helper-transform-fixture-test-runner` - [#​16278](https://togithub.com/babel/babel/pull/16278) Continue writing `output.js` when `exec.js` throws ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) ##### 🔬 Output optimization - `babel-helper-create-class-features-plugin`, `babel-plugin-proposal-decorators` - [#​16306](https://togithub.com/babel/babel/pull/16306) Avoid intermediate functions for private accessors with decs ([@​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` - [#​16294](https://togithub.com/babel/babel/pull/16294) More aggressively inline decorators in the static block ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-helper-create-class-features-plugin`, `babel-helpers`, `babel-plugin-transform-private-methods` - [#​16283](https://togithub.com/babel/babel/pull/16283) Do not use `classPrivateMethodGet` ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-helper-create-class-features-plugin`, `babel-helpers`, `babel-plugin-proposal-decorators` - [#​16287](https://togithub.com/babel/babel/pull/16287) Reduce decorator static property size ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) - `babel-helper-create-class-features-plugin`, `babel-plugin-proposal-decorators`, `babel-plugin-transform-class-properties` - [#​16280](https://togithub.com/babel/babel/pull/16280) Reduce element decorator temp variables ([@​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` - [#​16261](https://togithub.com/babel/babel/pull/16261) Do not use descriptors for private class elements ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - `babel-helpers`, `babel-plugin-proposal-decorators` - [#​16263](https://togithub.com/babel/babel/pull/16263) Reduce helper size for decorator 2023-11 ([@​liuxingbaoyu](https://togithub.com/liuxingbaoyu)) ##### Committers: 7 - Babel Bot ([@​babel-bot](https://togithub.com/babel-bot)) - Huáng Jùnliàng ([@​JLHwung](https://togithub.com/JLHwung)) - Nicolò Ribaudo ([@​nicolo-ribaudo](https://togithub.com/nicolo-ribaudo)) - SUZUKI Sosuke ([@​sosukesuzuki](https://togithub.com/sosukesuzuki)) - Yarden Shoham ([@​yardenshoham](https://togithub.com/yardenshoham)) - [@​liuxingbaoyu](https://togithub.com/liuxingbaoyu) - flyafly ([@​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> |
||
|
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 |