kibana/packages
2024-02-20 16:29:08 -06:00
..
elastic-apm-synthtrace [7.17] chore(NA): upgrade typescript into v4.7.4 (#162738) (#164765) 2023-08-30 23:08:35 +01:00
elastic-datemath [7.17] chore(NA): upgrade typescript into v4.7.4 (#162738) (#164765) 2023-08-30 23:08:35 +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] Config loader: remove unecessary properties (#154902) (#155028) 2023-04-17 11:28:49 -07: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 [7.17] Upgrade to Jest 29 (#143319) (#158607) 2023-06-09 16:25:26 -07: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] [Ops] Upgrade to axios 1.4 (#163732) (#164418) 2023-08-23 08:51:55 -05: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 [7.17] [Unified Search] Fix "Edit as Query DSL" breaks when pasting in entire query DSL (#131906) (#157355) 2023-05-11 03:36:16 -07:00
kbn-eslint-config [7.17] chore(NA): upgrade typescript-eslint packages to v5.54.0 (#163895) 2023-08-17 00:47:54 +01:00
kbn-eslint-import-resolver-kibana Updates Github link references from master to main (#116789) (#116792) 2021-10-29 10:08:30 -07:00
kbn-eslint-plugin-eslint [eslint/module_migration] add exact option (#137000) (#137010) 2022-07-22 16:26:04 -07: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] [Ops] Bump Node.js to version 18 (#160289) (#162722) 2023-08-15 09:16:19 +02:00
kbn-optimizer [7.17] Replace deprecated node-sass with sass (#174114) 2024-01-02 18:07:07 -06: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 Revert "[7.17] Upgrade follow-redirects@1.5.2→1.5.4 (#174312)" (#174796) 2024-01-12 19:11:55 -05:00
kbn-rule-data-utils [7.16] [ci] Run Jest tests in parallel (#117188) (#118244) 2021-11-18 18:45:18 -07: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 Remove dependencies for empty @types/* packages (#144324) (#144688) 2022-11-07 07:39:15 -07: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 Updates Github link references from master to main (#116789) (#116792) 2021-10-29 10:08:30 -07:00
kbn-std [7.17] Config loader: remove unecessary properties (#154902) (#155028) 2023-04-17 11:28:49 -07:00
kbn-storybook [7.17] Replace deprecated node-sass with sass (#174114) 2024-01-02 18:07:07 -06:00
kbn-telemetry-tools [7.17] chore(NA): upgrade typescript-eslint packages to v5.54.0 (#163895) 2023-08-17 00:47:54 +01:00
kbn-test [7.17] Upgrade Node.js to 20.11.1 (#177043) 2024-02-20 16:29:08 -06: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] chore(NA): upgrade typescript into v4.7.4 (#162738) (#164765) 2023-08-30 23:08:35 +01: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 [7.17] chore(NA): upgrade typescript into v4.7.4 (#162738) (#164765) 2023-08-30 23:08:35 +01: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.