mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
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:
parent
195c8b052e
commit
e38350f7f9
361 changed files with 1111 additions and 1123 deletions
|
@ -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(
|
||||
() =>
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue