kibana/packages
Alexi Doak f6e2f2e44c
[7.17] Upgrade Puppeteer to v24.10.1 (#223985) (#224154)
# Backport

This will backport the following commits from `main` to `7.17`:
- [Upgrade Puppeteer to v24.10.1
(#223985)](https://github.com/elastic/kibana/pull/223985)

<!--- Backport version: 10.0.1 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ersin
Erdal","email":"92688503+ersin-erdal@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-06-16T17:56:05Z","message":"Upgrade
Puppeteer to v24.10.1 (#223985)\n\nThis PR upgrades Puppeteer version to
v24.10.1.\n\nTested locally, works as expected:\n\n<img width=\"968\"
alt=\"Screenshot 2025-06-14 at 02 28
49\"\nsrc=\"https://github.com/user-attachments/assets/52ede4a6-d342-45f6-9fdf-5a01ce77fb47\"\n/>\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Alexi
Doak <109488926+doakalexi@users.noreply.github.com>\nCo-authored-by:
Alexandra Doak
<alexandra.doak@elastic.co>","sha":"1a8b6694b28674a3826ee57c1cb7440a9a64601b","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","ci:cloud-deploy","backport:version","v7.17.28","v9.1.0","v8.19.0","v7.17.29","v8.17.7","v8.18.2","v9.0.2","v9.0.3","v8.18.3","v8.17.8"],"title":"Upgrade
Puppeteer to
v24.10.1","number":223985,"url":"https://github.com/elastic/kibana/pull/223985","mergeCommit":{"message":"Upgrade
Puppeteer to v24.10.1 (#223985)\n\nThis PR upgrades Puppeteer version to
v24.10.1.\n\nTested locally, works as expected:\n\n<img width=\"968\"
alt=\"Screenshot 2025-06-14 at 02 28
49\"\nsrc=\"https://github.com/user-attachments/assets/52ede4a6-d342-45f6-9fdf-5a01ce77fb47\"\n/>\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Alexi
Doak <109488926+doakalexi@users.noreply.github.com>\nCo-authored-by:
Alexandra Doak
<alexandra.doak@elastic.co>","sha":"1a8b6694b28674a3826ee57c1cb7440a9a64601b"}},"sourceBranch":"main","suggestedTargetBranches":["7.17","8.17","8.18"],"targetPullRequestStates":[{"branch":"7.17","label":"v7.17.28","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/223985","number":223985,"mergeCommit":{"message":"Upgrade
Puppeteer to v24.10.1 (#223985)\n\nThis PR upgrades Puppeteer version to
v24.10.1.\n\nTested locally, works as expected:\n\n<img width=\"968\"
alt=\"Screenshot 2025-06-14 at 02 28
49\"\nsrc=\"https://github.com/user-attachments/assets/52ede4a6-d342-45f6-9fdf-5a01ce77fb47\"\n/>\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Alexi
Doak <109488926+doakalexi@users.noreply.github.com>\nCo-authored-by:
Alexandra Doak
<alexandra.doak@elastic.co>","sha":"1a8b6694b28674a3826ee57c1cb7440a9a64601b"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/224115","number":224115,"state":"MERGED","mergeCommit":{"sha":"fe622ec8cfa8c3d945e61c7a940a5c3413b07aed","message":"[8.19]
Upgrade Puppeteer to v24.10.1 (#223985) (#224115)\n\n# Backport\n\nThis
will backport the following commits from `main` to `8.19`:\n- [Upgrade
Puppeteer to
v24.10.1\n(#223985)](https://github.com/elastic/kibana/pull/223985)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by:
Ersin Erdal
<92688503+ersin-erdal@users.noreply.github.com>\nCo-authored-by: Alexi
Doak <109488926+doakalexi@users.noreply.github.com>\nCo-authored-by:
Alexandra Doak
<alexandra.doak@elastic.co>"}},{"branch":"8.17","label":"v8.17.7","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/224116","number":224116,"state":"MERGED","mergeCommit":{"sha":"d322792ae59cbe58c8df8db82e64dc8a1ca8fbfc","message":"[9.0]
Upgrade Puppeteer to v24.10.1 (#223985) (#224116)\n\n# Backport\n\nThis
will backport the following commits from `main` to `9.0`:\n- [Upgrade
Puppeteer to
v24.10.1\n(#223985)](https://github.com/elastic/kibana/pull/223985)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\n---------\n\nCo-authored-by:
Ersin Erdal
<92688503+ersin-erdal@users.noreply.github.com>\nCo-authored-by: Alexi
Doak <109488926+doakalexi@users.noreply.github.com>\nCo-authored-by:
Alexandra Doak <alexandra.doak@elastic.co>"}}]}] BACKPORT-->

---------

Co-authored-by: Ersin Erdal <92688503+ersin-erdal@users.noreply.github.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-06-17 10:18:01 +02:00
..
elastic-apm-synthtrace [7.17] encoding fixes (#198857) 2024-11-05 07:18:09 -08:00
elastic-datemath [7.17] Update moment (main) (#206181) (#209688) 2025-02-05 11:00:50 +01:00
elastic-safer-lodash-set [7.17] Fix eslint rule for restricting certain lodash imports (#151023) (#151550) 2023-02-17 04:06:09 -07:00
kbn-ace chore(NA): replace babel config files by inline presets by default in the jsts_transpiler rule (#110620) (#111217) 2021-09-03 18:41:32 -04:00
kbn-alerts [7.17] Upgrade Typescript to 4.3.5 (#104470) (#158788) 2023-06-01 02:35:54 +01:00
kbn-analytics [7.17] Bump moment-timezone to the latest version (#155832) (#155970) 2023-05-01 06:06:46 -07:00
kbn-apm-config-loader [7.17] Upgrading APM Node (#205440) (#205576) 2025-01-07 21:59:31 -05:00
kbn-apm-utils chore(NA): replace babel config files by inline presets by default in the jsts_transpiler rule (#110620) (#111217) 2021-09-03 18:41:32 -04:00
kbn-babel-code-parser Updates Github link references from master to main (#116789) (#116792) 2021-10-29 10:08:30 -07:00
kbn-babel-preset [7.17] Upgrade babel to ^7 (#174003) 2024-01-02 11:01:07 -06:00
kbn-babel-register [7.17] Bump Node.js from 18.17.1 to 18.18.2 (#168914) (#169058) 2023-10-17 09:18:26 +02:00
kbn-cli-dev-mode Rewrite brittle test to more resilient, ignoring FORCE_COLOR (#187539) 2024-07-05 04:26:03 +01:00
kbn-config [7.17] Config loader: remove unecessary properties (#154902) (#155028) 2023-04-17 11:28:49 -07:00
kbn-config-schema [7.17] Upgrades joi to 17.7.1 (#150953) (#151201) 2023-02-14 17:29:47 -07:00
kbn-crypto [7.17] Backport test certificates from #111879 (#163099) 2023-08-04 08:04:08 -05:00
kbn-dev-utils [7.17] Disable allowAbsoluteUrls for axios (#215138) (#216103) 2025-03-27 07:04:37 -04:00
kbn-docs-utils [7.17] Upgrade Typescript to 4.3.5 (#104470) (#158788) 2023-06-01 02:35:54 +01:00
kbn-es [7.17] Upgrade Node.js to v20.10.0 (#173962) 2024-01-02 18:04:09 -06:00
kbn-es-archiver [7.17] Upgrade Node.js to v20.10.0 (#173962) 2024-01-02 18:04:09 -06:00
kbn-es-query [Security Solution] Adapt special character escape according to kuery grammer (#198288) 2024-12-03 03:27:31 -06:00
kbn-eslint-config [7.17] Changing load/dump in source files (#190641) (#190992) 2024-08-22 09:26:54 +02:00
kbn-eslint-import-resolver-kibana [7.17] Update dependency lru-cache to ^11.1.0 (main) (#216517) (#216829) 2025-04-05 00:35:25 +01:00
kbn-eslint-plugin-eslint [7.17] Changing load/dump in source files (#190641) (#190992) 2024-08-22 09:26:54 +02:00
kbn-expect [build_ts_refs] improve caches, allow building a subset of projects (#107981) (#108139) 2021-08-11 05:08:54 -04:00
kbn-field-types [7.17] Upgrade Typescript to 4.3.5 (#104470) (#158788) 2023-06-01 02:35:54 +01:00
kbn-i18n [7.17] Upgrade to Jest 29 (#143319) (#158607) 2023-06-09 16:25:26 -07:00
kbn-interpreter [7.16] [eslint] enable type-specific lint rules (#114184) (#117451) 2021-11-03 23:58:42 -06:00
kbn-io-ts-utils [7.17] [Infrastructure UI] Improve metrics settings error handling (#146272) (#146699) 2022-12-01 03:33:59 -07:00
kbn-legacy-logging [7.17] Bump Node.js from 18.17.1 to 18.18.2 (#168914) (#169058) 2023-10-17 09:18:26 +02:00
kbn-logging [7.16] [eslint] enable type-specific lint rules (#114184) (#117451) 2021-11-03 23:58:42 -06:00
kbn-mapbox-gl chore(NA): replace babel config files by inline presets by default in the jsts_transpiler rule (#110620) (#111217) 2021-09-03 18:41:32 -04:00
kbn-monaco [7.17] [CodeQL] resolve issue with incomplete string escaping (#196678) (#197082) 2024-10-22 06:29:11 -05:00
kbn-optimizer [7.17] Update dependency lru-cache to ^11.1.0 (main) (#216517) (#216829) 2025-04-05 00:35:25 +01:00
kbn-plugin-generator [7.17] [@kbn/plugin-generator] Skip .i18nrc.json for internal plugins (#150556) (#150694) 2023-02-09 17:28:58 -07:00
kbn-plugin-helpers [7.17] [node] Enable openssl legacy provider (#165147) 2023-08-30 17:46:38 -05:00
kbn-pm [7.17] chore(dep): bump brace-expansion from 1.1.11 to 1.11.12 and 2.0.1 to 2.0.2 (#223589) (#223621) 2025-06-13 02:25:17 +02:00
kbn-rule-data-utils [7.16] [ci] Run Jest tests in parallel (#117188) (#118244) 2021-11-18 18:45:18 -07:00
kbn-screenshotting-server [7.17] Upgrade Puppeteer to v24.10.1 (#223985) (#224154) 2025-06-17 10:18:01 +02:00
kbn-securitysolution-autocomplete [7.17] Upgrade Typescript to 4.3.5 (#104470) (#158788) 2023-06-01 02:35:54 +01:00
kbn-securitysolution-es-utils Update ES client to 7.16-canary.6 (#117305) 2021-11-04 16:48:31 +01:00
kbn-securitysolution-hook-utils Increases the timeout for the test from default 1 second. (#117389) (#117534) 2021-11-04 16:52:57 +00:00
kbn-securitysolution-io-ts-alerting-types [7.x][DX] Upgrade prettier to v2.4.0 (#112359) (#112524) 2021-09-19 22:34:46 -07:00
kbn-securitysolution-io-ts-list-types [Security Solution][Platform] - Update rule exported counts to include total object count (#116338) (#117464) 2021-11-04 05:34:21 +00:00
kbn-securitysolution-io-ts-types chore(NA): replace babel config files by inline presets by default in the jsts_transpiler rule (#110620) (#111217) 2021-09-03 18:41:32 -04:00
kbn-securitysolution-io-ts-utils [7.17] chore(NA): upgrade typescript into v4.7.4 (#162738) (#164765) 2023-08-30 23:08:35 +01:00
kbn-securitysolution-list-api Fixing exceptions export format (#114920) (#114949) 2021-10-14 02:06:34 -04:00
kbn-securitysolution-list-constants [7.16] [ci] Run Jest tests in parallel (#117188) (#118244) 2021-11-18 18:45:18 -07:00
kbn-securitysolution-list-hooks [Security Solutions] Fix host isolation exception list showing up on the exceptions list (#114987) (#115269) 2021-10-16 04:44:15 +00:00
kbn-securitysolution-list-utils [Security Solutions] Fix host isolation exception list showing up on the exceptions list (#114987) (#115269) 2021-10-16 04:44:15 +00:00
kbn-securitysolution-t-grid [7.16] [ci] Run Jest tests in parallel (#117188) (#118244) 2021-11-18 18:45:18 -07:00
kbn-securitysolution-utils Fixing exceptions export format (#114920) (#114949) 2021-10-14 02:06:34 -04:00
kbn-server-http-tools Backport #177309 to 7.17 (#182838) 2024-05-08 10:45:24 +02:00
kbn-server-route-repository [7.16] [kbn/io-ts] export and require importing individual functions (#117958) (#118075) 2021-11-11 18:32:39 -05:00
kbn-spec-to-console Moves glob to devDependencies (#198589) 2024-11-05 16:49:20 +01:00
kbn-std [7.17] Config loader: remove unecessary properties (#154902) (#155028) 2023-04-17 11:28:49 -07:00
kbn-storybook [7.17] Update dependency lru-cache to ^11.1.0 (main) (#216517) (#216829) 2025-04-05 00:35:25 +01:00
kbn-telemetry-tools [7.17] Migrate from listr to listr2 (#182683) (#183141) 2024-05-14 17:53:40 +02:00
kbn-test [7.17] chore(deps): bump formidable from to 2.1.2 to 2.1.3 (#219385) (#219422) 2025-04-29 21:57:10 +02:00
kbn-test-subj-selector [build_ts_refs] improve caches, allow building a subset of projects (#107981) (#108139) 2021-08-11 05:08:54 -04:00
kbn-timelion-grammar [7.x] [timelion] Move grammar to package (#111881) (#112373) 2021-09-16 12:59:21 -04:00
kbn-tinymath [7.17] Remove eslint-plugin-prefer-object-spread dependency (#162439) (#162461) 2023-07-25 13:52:01 -05:00
kbn-typed-react-router-config [7.17] Upgrade to Jest 29 (#143319) (#158607) 2023-06-09 16:25:26 -07:00
kbn-ui-framework [jest] update config files to get coverage per plugin (#111299) (#111674) 2021-09-09 04:47:28 -04:00
kbn-ui-shared-deps-npm [7.17] [Ops] Bump Node.js to version 18 (#160289) (#162722) 2023-08-15 09:16:19 +02:00
kbn-ui-shared-deps-src [7.17] [kbn/flot-charts] Use jQuery methods to build legends (#199871) (#200075) 2024-11-13 16:25:16 -06:00
kbn-utility-types [7.16] [eslint] enable type-specific lint rules (#114184) (#117451) 2021-11-03 23:58:42 -06:00
kbn-utils [7.17] Upgrade Node.js to 20.11.1 (#177043) 2024-02-20 16:29:08 -06:00
BUILD.bazel [Screenshotting/7.17] Server package for stateless code (#190950) 2024-08-22 06:28:45 -05:00
README.md Remove grunt (#111882) (#112474) 2021-09-16 17:48:57 -04:00

Kibana-related packages

This folder contains packages that are intended for use in Kibana and Kibana plugins.

tl;dr:

  • Don't publish to npm registry
  • Always use the @kbn namespace
  • Always set "private": true in package.json

Using these packages

We no longer publish these packages to the npm registry. Now, instead of specifying a version when including these packages, we rely on yarn workspaces, which sets up a symlink to the package.

For example if you want to use the @kbn/i18n package in Kibana itself, you can specify the dependency like this:

"@kbn/i18n": "1.0.0"

However, if you want to use this from a Kibana plugin, you need to use a link: dependency and account for the relative location of the Kibana repo, so it would instead be:

"@kbn/i18n": "link:../../kibana/packages/kbn-i18n"

How all of this works is described in more detail in the @kbn/pm docs.

Creating a new package

Create a new sub-folder. The name of the folder should mirror the name in the package's package.json. E.g. if the name is @kbn/i18n the folder name should be kbn-i18n.

All new packages should use the @kbn namespace, and should be marked with "private": true.

Unit tests for a package

Currently there is only one tool being used in order to test packages which is Jest. Below we will explain how it should be done.

Jest

A package should follow the pattern of having .test.js files as siblings of the source code files, and these run by Jest.

A package using the .test.js naming convention will have those tests automatically picked up by Jest and run by the unit test runner, currently mapped to the Kibana test script in the root package.json.

  • yarn test runs all unit tests.
  • yarn jest runs all Jest tests in Kibana.

In order for the plugin or package to use Jest, a jest.config.js file must be present in it's root. However, there are safeguards for this in CI should a test file be added without a corresponding config file.


Each package can also specify its own test script in the package's package.json, for cases where you'd prefer to run the tests from the local package directory.