kibana/packages/kbn-ui-shared-deps-npm
Alex Szabo 8cf68dc6ba
[Ops] Bump Node.js to version 18 (#160289)
## Summary

Bumps node.js to 18.17.0 (replacement for PR #144012 which was later
reverted)

As a result, these categorical additions were needed: 
- `node` evocations will need the `--openssl-legacy-provider` flag,
wherever it would use certain crypto functionalities
- tests required updating of the expected HTTPS Agent call arguments,
`noDelay` seems to be a default
 - `window.[NAME]` fields cannot be written directly
 - some stricter typechecks

This is using our in-house built node.js 18 versions through the URLs
the proxy-cache. (built with
https://github.com/elastic/kibana-custom-nodejs-builds/pull/4)

These urls are served from a bucket, where the RHEL7/Centos7 compatible
node distributables are. (see:
https://github.com/elastic/kibana-ci-proxy-cache/pull/7)

Further todos: 
 - [x] check docs wording and consistency
 - [ ] update the dependency report
 - [x] explain custom builds in documentation
 - [x] node_sass prebuilts

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
Co-authored-by: Thomas Watson <w@tson.dk>
2023-07-27 14:12:48 +02:00
..
src Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
BUILD.bazel [Ops] Bump Node.js to version 18 (#160289) 2023-07-27 14:12:48 +02:00
index.js Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
kibana.jsonc Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
package.json Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
README.mdx docs(NA): adds @kbn/ui-shared-deps-npm into ops devdocs (#132761) 2022-05-25 19:28:40 -07:00
tsconfig.json Transpile packages on demand, validate all TS projects (#146212) 2022-12-22 19:00:29 -06:00
webpack.config.js Add io-ts in kb-ui-shared-bundle (#159792) 2023-06-15 15:17:18 +02:00

---
id: kibDevDocsOpsUiSharedDepsNpm
slug: /kibana-dev-docs/ops/ui-shared-deps-npm
title: "@kbn/ui-shared-deps-npm"
description: A package to share single instances of npm external packages across bundles
date: 2022-05-24
tags: ['kibana', 'dev', 'contributor', 'operations', 'ui', 'shared', 'deps', 'npm']
---

This is a package of shared dependencies that must only have a single instance and are from the NPM external to 
the Kibana repository. To consume them, import the package and merge the `externals` export into your webpack 
externals config so that all references to the supported modules will be remapped to use the global versions.