Skip to content

[9.3] move kbn-client into its own package (#258963)#259146

Closed
dmlemeshko wants to merge 1 commit intoelastic:9.3from
dmlemeshko:backport/9.3/pr-258963
Closed

[9.3] move kbn-client into its own package (#258963)#259146
dmlemeshko wants to merge 1 commit intoelastic:9.3from
dmlemeshko:backport/9.3/pr-258963

Conversation

@dmlemeshko
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.3:

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)
@dmlemeshko dmlemeshko added the backport This PR is a backport of another PR label Mar 23, 2026
@dmlemeshko dmlemeshko enabled auto-merge (squash) March 23, 2026 15:47
@dmlemeshko dmlemeshko closed this Mar 23, 2026
auto-merge was automatically disabled March 23, 2026 15:48

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant