Skip to content

Commit 825a629

Browse files
authored
chore: replace deprecated lodash per method packages with main lodash package (#693)
1 parent 3d9a5ed commit 825a629

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

packages/charts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"dependencies": {
2222
"@babel/runtime": "7.11.0",
23-
"lodash.debounce": "^4.0.8",
23+
"lodash": "^4.17.20",
2424
"react-content-loader": "5.1.0",
2525
"recharts": "2.0.0-beta.6"
2626
},

packages/charts/src/hooks/useObserveXAxisHeights.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import debounce from 'lodash.debounce';
1+
import debounce from 'lodash/debounce';
22
import { RefObject, useEffect, useRef, useState } from 'react';
33

44
const defaultAxisHeight = 30;

packages/main/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"dependencies": {
3434
"@babel/runtime": "7.11.0",
3535
"@ui5/webcomponents-react-base": "^0.10.1",
36-
"lodash.debounce": "^4.0.8",
36+
"lodash": "^4.17.20",
3737
"react-content-loader": "5.1.0",
3838
"react-jss": "10.1.1",
3939
"react-table": "7.5.0",

packages/main/src/components/AnalyticalTable/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { TableScaleWidthMode } from '@ui5/webcomponents-react/lib/TableScaleWidt
55
import { TableSelectionBehavior } from '@ui5/webcomponents-react/lib/TableSelectionBehavior';
66
import { TableSelectionMode } from '@ui5/webcomponents-react/lib/TableSelectionMode';
77
import { ValueState } from '@ui5/webcomponents-react/lib/ValueState';
8-
import debounce from 'lodash.debounce';
8+
import debounce from 'lodash/debounce';
99
import React, {
1010
ComponentType,
1111
CSSProperties,

packages/main/src/components/ObjectPage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { ToolbarDesign } from '@ui5/webcomponents-react/lib/ToolbarDesign';
1616
import { ToolbarSpacer } from '@ui5/webcomponents-react/lib/ToolbarSpacer';
1717
import { ToolbarStyle } from '@ui5/webcomponents-react/lib/ToolbarStyle';
1818
import { CommonProps } from '@ui5/webcomponents-react/interfaces/CommonProps';
19-
import debounce from 'lodash.debounce';
19+
import debounce from 'lodash/debounce';
2020
import React, {
2121
ComponentType,
2222
FC,

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13514,6 +13514,11 @@ lodash@^4.17.19:
1351413514
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b"
1351513515
integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==
1351613516

13517+
lodash@^4.17.20:
13518+
version "4.17.20"
13519+
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52"
13520+
integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==
13521+
1351713522
1351813523
version "3.0.0"
1351913524
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-3.0.0.tgz#f3a08516a5dea893336a7dee14d18a1cfdab77c4"

0 commit comments

Comments
 (0)