chore(NA): upgrades uuid to v9.0.0 (#149135)

This PR upgrades uuid into its latest version `9.0.0`.
The previous default used version `v4` was kept where it was previously
used and places using `v1` or `v5` are still using it.

In this latest version they removed the deep import feature and as we
are not using tree shaking it increased our bundles by a significant
size. As such, I've moved this dependency into the `ui-shared-deps-npm`
bundle.

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Tiago Costa 2023-01-19 19:48:07 +00:00 committed by GitHub
parent 195c8b052e
commit e38350f7f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
361 changed files with 1111 additions and 1123 deletions

View file

@ -17,7 +17,7 @@ import {
import { EuiText } from '@elastic/eui';
import { ProcessorEvent } from '@kbn/observability-plugin/common';
import { DataView } from '@kbn/data-views-plugin/public';
import uuid from 'uuid';
import { v4 as uuidv4 } from 'uuid';
import { TRANSACTION_PAGE_LOAD } from '../../../../../common/transaction_types';
import {
PROCESSOR_EVENT,
@ -58,7 +58,7 @@ export function VisitorBreakdownChart({
}: Props) {
const kibana = useKibanaServices();
const LensEmbeddableComponent = kibana.lens.EmbeddableComponent;
const [localDataViewId] = useState<string>(uuid.v4());
const [localDataViewId] = useState<string>(uuidv4());
const lensAttributes = useMemo(
() =>

View file

@ -6,7 +6,7 @@
*/
import React, { useEffect, useState, useRef } from 'react';
import uuid from 'uuid';
import { v4 as uuidv4 } from 'uuid';
import styled from 'styled-components';
import { MapEmbeddable, MapEmbeddableInput } from '@kbn/maps-plugin/public';
@ -66,7 +66,7 @@ export function EmbeddedMapComponent() {
const input: MapEmbeddableInput = {
attributes: { title: '' },
id: uuid.v4(),
id: uuidv4(),
filters: mapFilters,
viewMode: ViewMode.VIEW,
isLayerTOCOpen: false,