move kbn-client into its own package#258963
Conversation
…ally, or add an exception to src/dev/yarn_deduplicate/index.ts and then commit the changes and push to your branch
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Public APIs missing comments
Any counts in public APIs
Public APIs missing exports
Unknown metric groupsAPI count
History
|
maxcold
left a comment
There was a problem hiding this comment.
cloud_security_posture tests change lgtm
|
Starting backport for target branches: 8.19, 9.2, 9.3 https://github.com/elastic/kibana/actions/runs/23434087431 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
Extracts the Kibana tooling HTTP client (`KbnClient` and related
helpers) from `@kbn/test` into a dedicated `@kbn/kbn-client` package.
`@kbn/test` continues to re-export the same symbols so existing `import
{ … } from '@kbn/test'` call sites keep working.
- Smaller, clearer dependency graph for tools that only need a Kibana
HTTP client (e.g. `Scout`, `Cypress` helpers, `evals`) without pulling
in the full FTR/Jest/Mocha surface of `@kbn/test`.
- Single public entry for client APIs instead of deep imports like
`@kbn/test/src/kbn_client/...`, which aligns with package boundaries and
makes types like UiSettingValues and ReqOptions part of a stable export
surface.
- Easier next steps to peel off other focused pieces (e.g. SAML session
management) on top of `@kbn/kbn-client` instead of growing `@kbn/test`
further.
- New package is `devOnly` like @kbn/test.
- Jest/unit tests for the client live under `@kbn/kbn-client`.
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit c701e38)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## Summary
Extracts the Kibana tooling HTTP client (`KbnClient` and related
helpers) from `@kbn/test` into a dedicated `@kbn/kbn-client` package.
`@kbn/test` continues to re-export the same symbols so existing `import
{ … } from '@kbn/test'` call sites keep working.
### Why
- Smaller, clearer dependency graph for tools that only need a Kibana
HTTP client (e.g. `Scout`, `Cypress` helpers, `evals`) without pulling
in the full FTR/Jest/Mocha surface of `@kbn/test`.
- Single public entry for client APIs instead of deep imports like
`@kbn/test/src/kbn_client/...`, which aligns with package boundaries and
makes types like UiSettingValues and ReqOptions part of a stable export
surface.
- Easier next steps to peel off other focused pieces (e.g. SAML session
management) on top of `@kbn/kbn-client` instead of growing `@kbn/test`
further.
### Notes
- New package is `devOnly` like @kbn/test.
- Jest/unit tests for the client live under `@kbn/kbn-client`.
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit c701e38)
# Conflicts:
# .github/CODEOWNERS
# src/platform/packages/shared/kbn-kbn-client/src/kbn_client/kbn_client_requester_error.test.ts
# x-pack/platform/packages/shared/kbn-evals/moon.yml
# x-pack/platform/packages/shared/kbn-evals/src/utils/evaluations_kbn_client.test.ts
# x-pack/platform/packages/shared/kbn-evals/src/utils/evaluations_kbn_client.ts
# x-pack/platform/packages/shared/kbn-evals/src/utils/kbn_client_with_retries.ts
# x-pack/platform/packages/shared/kbn-evals/tsconfig.json
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## Summary
Extracts the Kibana tooling HTTP client (`KbnClient` and related
helpers) from `@kbn/test` into a dedicated `@kbn/kbn-client` package.
`@kbn/test` continues to re-export the same symbols so existing `import
{ … } from '@kbn/test'` call sites keep working.
### Why
- Smaller, clearer dependency graph for tools that only need a Kibana
HTTP client (e.g. `Scout`, `Cypress` helpers, `evals`) without pulling
in the full FTR/Jest/Mocha surface of `@kbn/test`.
- Single public entry for client APIs instead of deep imports like
`@kbn/test/src/kbn_client/...`, which aligns with package boundaries and
makes types like UiSettingValues and ReqOptions part of a stable export
surface.
- Easier next steps to peel off other focused pieces (e.g. SAML session
management) on top of `@kbn/kbn-client` instead of growing `@kbn/test`
further.
### Notes
- New package is `devOnly` like @kbn/test.
- Jest/unit tests for the client live under `@kbn/kbn-client`.
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit c701e38)
# Conflicts:
# .github/CODEOWNERS
# src/platform/packages/shared/kbn-kbn-client/src/kbn_client/kbn_client_requester_error.test.ts
# src/platform/packages/shared/kbn-test/src/auth/session_manager.ts
# x-pack/platform/packages/shared/kbn-evals/moon.yml
# x-pack/platform/packages/shared/kbn-evals/src/utils/evaluations_kbn_client.test.ts
# x-pack/platform/packages/shared/kbn-evals/src/utils/evaluations_kbn_client.ts
# x-pack/platform/packages/shared/kbn-evals/src/utils/kbn_client_with_retries.ts
# x-pack/platform/packages/shared/kbn-evals/tsconfig.json
# x-pack/solutions/security/test/cloud_security_posture_functional/data_views/data_views.ts
# x-pack/solutions/security/test/moon.yml
# x-pack/solutions/security/test/tsconfig.json
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## Summary
Extracts the Kibana tooling HTTP client (`KbnClient` and related
helpers) from `@kbn/test` into a dedicated `@kbn/kbn-client` package.
`@kbn/test` continues to re-export the same symbols so existing `import
{ … } from '@kbn/test'` call sites keep working.
### Why
- Smaller, clearer dependency graph for tools that only need a Kibana
HTTP client (e.g. `Scout`, `Cypress` helpers, `evals`) without pulling
in the full FTR/Jest/Mocha surface of `@kbn/test`.
- Single public entry for client APIs instead of deep imports like
`@kbn/test/src/kbn_client/...`, which aligns with package boundaries and
makes types like UiSettingValues and ReqOptions part of a stable export
surface.
- Easier next steps to peel off other focused pieces (e.g. SAML session
management) on top of `@kbn/kbn-client` instead of growing `@kbn/test`
further.
### Notes
- New package is `devOnly` like @kbn/test.
- Jest/unit tests for the client live under `@kbn/kbn-client`.
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit c701e38)
# Conflicts:
# .github/CODEOWNERS
# src/platform/packages/shared/kbn-kbn-client/src/kbn_client/kbn_client_requester_error.test.ts
# src/platform/packages/shared/kbn-scout/src/common/services/clients.ts
# src/platform/packages/shared/kbn-scout/src/playwright/fixtures/scope/worker/core_fixtures.ts
# src/platform/packages/shared/kbn-scout/src/playwright/fixtures/scope/worker/scout_space/index.ts
# src/platform/packages/shared/kbn-scout/src/playwright/fixtures/scope/worker/scout_space/parallel.ts
# src/platform/packages/shared/kbn-scout/src/playwright/fixtures/scope/worker/ui_settings/index.ts
# src/platform/packages/shared/kbn-scout/src/playwright/fixtures/scope/worker/ui_settings/single_thread.ts
# src/platform/packages/shared/kbn-test/src/auth/session_manager.ts
# src/platform/packages/shared/kbn-test/src/functional_test_runner/lib/dedicated_task_runner.ts
# x-pack/platform/packages/shared/kbn-evals/moon.yml
# x-pack/platform/packages/shared/kbn-evals/src/utils/evaluations_kbn_client.test.ts
# x-pack/platform/packages/shared/kbn-evals/src/utils/evaluations_kbn_client.ts
# x-pack/platform/packages/shared/kbn-evals/src/utils/http_handler_from_kbn_client.ts
# x-pack/platform/packages/shared/kbn-evals/src/utils/kbn_client_with_retries.ts
# x-pack/platform/packages/shared/kbn-evals/tsconfig.json
# x-pack/solutions/security/test/cloud_security_posture_functional/data_views/data_views.ts
# x-pack/solutions/security/test/moon.yml
# x-pack/solutions/security/test/tsconfig.json
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## Summary
Extracts the Kibana tooling HTTP client (`KbnClient` and related
helpers) from `@kbn/test` into a dedicated `@kbn/kbn-client` package.
`@kbn/test` continues to re-export the same symbols so existing `import
{ … } from '@kbn/test'` call sites keep working.
### Why
- Smaller, clearer dependency graph for tools that only need a Kibana
HTTP client (e.g. `Scout`, `Cypress` helpers, `evals`) without pulling
in the full FTR/Jest/Mocha surface of `@kbn/test`.
- Single public entry for client APIs instead of deep imports like
`@kbn/test/src/kbn_client/...`, which aligns with package boundaries and
makes types like UiSettingValues and ReqOptions part of a stable export
surface.
- Easier next steps to peel off other focused pieces (e.g. SAML session
management) on top of `@kbn/kbn-client` instead of growing `@kbn/test`
further.
### Notes
- New package is `devOnly` like @kbn/test.
- Jest/unit tests for the client live under `@kbn/kbn-client`.
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
1 similar comment
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
# Backport This will backport the following commits from `main` to `9.2`: - [move kbn-client into its own package (#258963)](#258963) <!--- Backport version: 11.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Dzmitry Lemechko","email":"dzmitry.lemechko@elastic.co"},"sourceCommit":{"committedDate":"2026-03-23T11:02:23Z","message":"move kbn-client into its own package (#258963)\n\n## Summary\n\nExtracts the Kibana tooling HTTP client (`KbnClient` and related\nhelpers) from `@kbn/test` into a dedicated `@kbn/kbn-client` package.\n`@kbn/test` continues to re-export the same symbols so existing `import\n{ … } from '@kbn/test'` call sites keep working.\n\n### Why\n\n- Smaller, clearer dependency graph for tools that only need a Kibana\nHTTP client (e.g. `Scout`, `Cypress` helpers, `evals`) without pulling\nin the full FTR/Jest/Mocha surface of `@kbn/test`.\n- Single public entry for client APIs instead of deep imports like\n`@kbn/test/src/kbn_client/...`, which aligns with package boundaries and\nmakes types like UiSettingValues and ReqOptions part of a stable export\nsurface.\n- Easier next steps to peel off other focused pieces (e.g. SAML session\nmanagement) on top of `@kbn/kbn-client` instead of growing `@kbn/test`\nfurther.\n\n### Notes\n- New package is `devOnly` like @kbn/test.\n- Jest/unit tests for the client live under `@kbn/kbn-client`.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"c701e38da601a1981589cce98ad76bc03e316852","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","v9.4.0"],"title":"move kbn-client into its own package","number":258963,"url":"https://github.com/elastic/kibana/pull/258963","mergeCommit":{"message":"move kbn-client into its own package (#258963)\n\n## Summary\n\nExtracts the Kibana tooling HTTP client (`KbnClient` and related\nhelpers) from `@kbn/test` into a dedicated `@kbn/kbn-client` package.\n`@kbn/test` continues to re-export the same symbols so existing `import\n{ … } from '@kbn/test'` call sites keep working.\n\n### Why\n\n- Smaller, clearer dependency graph for tools that only need a Kibana\nHTTP client (e.g. `Scout`, `Cypress` helpers, `evals`) without pulling\nin the full FTR/Jest/Mocha surface of `@kbn/test`.\n- Single public entry for client APIs instead of deep imports like\n`@kbn/test/src/kbn_client/...`, which aligns with package boundaries and\nmakes types like UiSettingValues and ReqOptions part of a stable export\nsurface.\n- Easier next steps to peel off other focused pieces (e.g. SAML session\nmanagement) on top of `@kbn/kbn-client` instead of growing `@kbn/test`\nfurther.\n\n### Notes\n- New package is `devOnly` like @kbn/test.\n- Jest/unit tests for the client live under `@kbn/kbn-client`.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"c701e38da601a1981589cce98ad76bc03e316852"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/258963","number":258963,"mergeCommit":{"message":"move kbn-client into its own package (#258963)\n\n## Summary\n\nExtracts the Kibana tooling HTTP client (`KbnClient` and related\nhelpers) from `@kbn/test` into a dedicated `@kbn/kbn-client` package.\n`@kbn/test` continues to re-export the same symbols so existing `import\n{ … } from '@kbn/test'` call sites keep working.\n\n### Why\n\n- Smaller, clearer dependency graph for tools that only need a Kibana\nHTTP client (e.g. `Scout`, `Cypress` helpers, `evals`) without pulling\nin the full FTR/Jest/Mocha surface of `@kbn/test`.\n- Single public entry for client APIs instead of deep imports like\n`@kbn/test/src/kbn_client/...`, which aligns with package boundaries and\nmakes types like UiSettingValues and ReqOptions part of a stable export\nsurface.\n- Easier next steps to peel off other focused pieces (e.g. SAML session\nmanagement) on top of `@kbn/kbn-client` instead of growing `@kbn/test`\nfurther.\n\n### Notes\n- New package is `devOnly` like @kbn/test.\n- Jest/unit tests for the client live under `@kbn/kbn-client`.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"c701e38da601a1981589cce98ad76bc03e316852"}},{"url":"https://github.com/elastic/kibana/pull/259147","number":259147,"branch":"9.3","state":"OPEN"}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
## Summary
Extracts the Kibana tooling HTTP client (`KbnClient` and related
helpers) from `@kbn/test` into a dedicated `@kbn/kbn-client` package.
`@kbn/test` continues to re-export the same symbols so existing `import
{ … } from '@kbn/test'` call sites keep working.
### Why
- Smaller, clearer dependency graph for tools that only need a Kibana
HTTP client (e.g. `Scout`, `Cypress` helpers, `evals`) without pulling
in the full FTR/Jest/Mocha surface of `@kbn/test`.
- Single public entry for client APIs instead of deep imports like
`@kbn/test/src/kbn_client/...`, which aligns with package boundaries and
makes types like UiSettingValues and ReqOptions part of a stable export
surface.
- Easier next steps to peel off other focused pieces (e.g. SAML session
management) on top of `@kbn/kbn-client` instead of growing `@kbn/test`
further.
### Notes
- New package is `devOnly` like @kbn/test.
- Jest/unit tests for the client live under `@kbn/kbn-client`.
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
|
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
# Backport This will backport the following commits from `main` to `9.3`: - [move kbn-client into its own package (#258963)](#258963) <!--- Backport version: 11.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Dzmitry Lemechko","email":"dzmitry.lemechko@elastic.co"},"sourceCommit":{"committedDate":"2026-03-23T11:02:23Z","message":"move kbn-client into its own package (#258963)\n\n## Summary\n\nExtracts the Kibana tooling HTTP client (`KbnClient` and related\nhelpers) from `@kbn/test` into a dedicated `@kbn/kbn-client` package.\n`@kbn/test` continues to re-export the same symbols so existing `import\n{ … } from '@kbn/test'` call sites keep working.\n\n### Why\n\n- Smaller, clearer dependency graph for tools that only need a Kibana\nHTTP client (e.g. `Scout`, `Cypress` helpers, `evals`) without pulling\nin the full FTR/Jest/Mocha surface of `@kbn/test`.\n- Single public entry for client APIs instead of deep imports like\n`@kbn/test/src/kbn_client/...`, which aligns with package boundaries and\nmakes types like UiSettingValues and ReqOptions part of a stable export\nsurface.\n- Easier next steps to peel off other focused pieces (e.g. SAML session\nmanagement) on top of `@kbn/kbn-client` instead of growing `@kbn/test`\nfurther.\n\n### Notes\n- New package is `devOnly` like @kbn/test.\n- Jest/unit tests for the client live under `@kbn/kbn-client`.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"c701e38da601a1981589cce98ad76bc03e316852","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","v9.4.0"],"title":"move kbn-client into its own package","number":258963,"url":"https://github.com/elastic/kibana/pull/258963","mergeCommit":{"message":"move kbn-client into its own package (#258963)\n\n## Summary\n\nExtracts the Kibana tooling HTTP client (`KbnClient` and related\nhelpers) from `@kbn/test` into a dedicated `@kbn/kbn-client` package.\n`@kbn/test` continues to re-export the same symbols so existing `import\n{ … } from '@kbn/test'` call sites keep working.\n\n### Why\n\n- Smaller, clearer dependency graph for tools that only need a Kibana\nHTTP client (e.g. `Scout`, `Cypress` helpers, `evals`) without pulling\nin the full FTR/Jest/Mocha surface of `@kbn/test`.\n- Single public entry for client APIs instead of deep imports like\n`@kbn/test/src/kbn_client/...`, which aligns with package boundaries and\nmakes types like UiSettingValues and ReqOptions part of a stable export\nsurface.\n- Easier next steps to peel off other focused pieces (e.g. SAML session\nmanagement) on top of `@kbn/kbn-client` instead of growing `@kbn/test`\nfurther.\n\n### Notes\n- New package is `devOnly` like @kbn/test.\n- Jest/unit tests for the client live under `@kbn/kbn-client`.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"c701e38da601a1981589cce98ad76bc03e316852"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/258963","number":258963,"mergeCommit":{"message":"move kbn-client into its own package (#258963)\n\n## Summary\n\nExtracts the Kibana tooling HTTP client (`KbnClient` and related\nhelpers) from `@kbn/test` into a dedicated `@kbn/kbn-client` package.\n`@kbn/test` continues to re-export the same symbols so existing `import\n{ … } from '@kbn/test'` call sites keep working.\n\n### Why\n\n- Smaller, clearer dependency graph for tools that only need a Kibana\nHTTP client (e.g. `Scout`, `Cypress` helpers, `evals`) without pulling\nin the full FTR/Jest/Mocha surface of `@kbn/test`.\n- Single public entry for client APIs instead of deep imports like\n`@kbn/test/src/kbn_client/...`, which aligns with package boundaries and\nmakes types like UiSettingValues and ReqOptions part of a stable export\nsurface.\n- Easier next steps to peel off other focused pieces (e.g. SAML session\nmanagement) on top of `@kbn/kbn-client` instead of growing `@kbn/test`\nfurther.\n\n### Notes\n- New package is `devOnly` like @kbn/test.\n- Jest/unit tests for the client live under `@kbn/kbn-client`.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"c701e38da601a1981589cce98ad76bc03e316852"}},{"url":"https://github.com/elastic/kibana/pull/259146","number":259146,"branch":"9.3","state":"OPEN"}]}] BACKPORT-->
# Backport This will backport the following commits from `main` to `8.19`: - [move kbn-client into its own package (#258963)](#258963) <!--- Backport version: 11.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Dzmitry Lemechko","email":"dzmitry.lemechko@elastic.co"},"sourceCommit":{"committedDate":"2026-03-23T11:02:23Z","message":"move kbn-client into its own package (#258963)\n\n## Summary\n\nExtracts the Kibana tooling HTTP client (`KbnClient` and related\nhelpers) from `@kbn/test` into a dedicated `@kbn/kbn-client` package.\n`@kbn/test` continues to re-export the same symbols so existing `import\n{ … } from '@kbn/test'` call sites keep working.\n\n### Why\n\n- Smaller, clearer dependency graph for tools that only need a Kibana\nHTTP client (e.g. `Scout`, `Cypress` helpers, `evals`) without pulling\nin the full FTR/Jest/Mocha surface of `@kbn/test`.\n- Single public entry for client APIs instead of deep imports like\n`@kbn/test/src/kbn_client/...`, which aligns with package boundaries and\nmakes types like UiSettingValues and ReqOptions part of a stable export\nsurface.\n- Easier next steps to peel off other focused pieces (e.g. SAML session\nmanagement) on top of `@kbn/kbn-client` instead of growing `@kbn/test`\nfurther.\n\n### Notes\n- New package is `devOnly` like @kbn/test.\n- Jest/unit tests for the client live under `@kbn/kbn-client`.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"c701e38da601a1981589cce98ad76bc03e316852","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","v9.4.0"],"title":"move kbn-client into its own package","number":258963,"url":"https://github.com/elastic/kibana/pull/258963","mergeCommit":{"message":"move kbn-client into its own package (#258963)\n\n## Summary\n\nExtracts the Kibana tooling HTTP client (`KbnClient` and related\nhelpers) from `@kbn/test` into a dedicated `@kbn/kbn-client` package.\n`@kbn/test` continues to re-export the same symbols so existing `import\n{ … } from '@kbn/test'` call sites keep working.\n\n### Why\n\n- Smaller, clearer dependency graph for tools that only need a Kibana\nHTTP client (e.g. `Scout`, `Cypress` helpers, `evals`) without pulling\nin the full FTR/Jest/Mocha surface of `@kbn/test`.\n- Single public entry for client APIs instead of deep imports like\n`@kbn/test/src/kbn_client/...`, which aligns with package boundaries and\nmakes types like UiSettingValues and ReqOptions part of a stable export\nsurface.\n- Easier next steps to peel off other focused pieces (e.g. SAML session\nmanagement) on top of `@kbn/kbn-client` instead of growing `@kbn/test`\nfurther.\n\n### Notes\n- New package is `devOnly` like @kbn/test.\n- Jest/unit tests for the client live under `@kbn/kbn-client`.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"c701e38da601a1981589cce98ad76bc03e316852"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/258963","number":258963,"mergeCommit":{"message":"move kbn-client into its own package (#258963)\n\n## Summary\n\nExtracts the Kibana tooling HTTP client (`KbnClient` and related\nhelpers) from `@kbn/test` into a dedicated `@kbn/kbn-client` package.\n`@kbn/test` continues to re-export the same symbols so existing `import\n{ … } from '@kbn/test'` call sites keep working.\n\n### Why\n\n- Smaller, clearer dependency graph for tools that only need a Kibana\nHTTP client (e.g. `Scout`, `Cypress` helpers, `evals`) without pulling\nin the full FTR/Jest/Mocha surface of `@kbn/test`.\n- Single public entry for client APIs instead of deep imports like\n`@kbn/test/src/kbn_client/...`, which aligns with package boundaries and\nmakes types like UiSettingValues and ReqOptions part of a stable export\nsurface.\n- Easier next steps to peel off other focused pieces (e.g. SAML session\nmanagement) on top of `@kbn/kbn-client` instead of growing `@kbn/test`\nfurther.\n\n### Notes\n- New package is `devOnly` like @kbn/test.\n- Jest/unit tests for the client live under `@kbn/kbn-client`.\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"c701e38da601a1981589cce98ad76bc03e316852"}},{"url":"https://github.com/elastic/kibana/pull/259147","number":259147,"branch":"9.3","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/259148","number":259148,"branch":"9.2","state":"OPEN"}]}] BACKPORT--> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Summary
Extracts the Kibana tooling HTTP client (
KbnClientand related helpers) from@kbn/testinto a dedicated@kbn/kbn-clientpackage.@kbn/testcontinues to re-export the same symbols so existingimport { … } from '@kbn/test'call sites keep working.Why
Scout,Cypresshelpers,evals) without pulling in the full FTR/Jest/Mocha surface of@kbn/test.@kbn/test/src/kbn_client/..., which aligns with package boundaries and makes types like UiSettingValues and ReqOptions part of a stable export surface.@kbn/kbn-clientinstead of growing@kbn/testfurther.Notes
devOnlylike @kbn/test.@kbn/kbn-client.