From 3d23722b302760dcdca10aeddfbf835a4196d4b9 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Thu, 31 Mar 2022 10:19:33 +0100 Subject: [PATCH] Update `@types/lodash` everywhere (#47020) * Update @types/lodash everywhere * Update @grafana/e2e as well --- .betterer.results | 2 +- package.json | 2 +- packages/grafana-data/package.json | 2 +- packages/grafana-e2e/package.json | 2 +- packages/grafana-runtime/package.json | 2 +- packages/grafana-ui/package.json | 2 +- packages/jaeger-ui-components/package.json | 2 +- .../components/LogsQueryField.test.tsx | 4 ++-- yarn.lock | 20 +++++++++---------- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.betterer.results b/.betterer.results index 4a297ad7ca0..a354be90586 100644 --- a/.betterer.results +++ b/.betterer.results @@ -305,7 +305,7 @@ exports[`no enzyme tests`] = { "public/app/plugins/datasource/cloudwatch/components/ConfigEditor.test.tsx:2974837543": [ [1, 19, 13, "RegExp match", "2409514259"] ], - "public/app/plugins/datasource/cloudwatch/components/LogsQueryField.test.tsx:4272466995": [ + "public/app/plugins/datasource/cloudwatch/components/LogsQueryField.test.tsx:132770839": [ [1, 19, 13, "RegExp match", "2409514259"] ], "public/app/plugins/datasource/elasticsearch/configuration/ConfigEditor.test.tsx:1089831034": [ diff --git a/package.json b/package.json index 21a208e426f..18841313fa1 100644 --- a/package.json +++ b/package.json @@ -130,7 +130,7 @@ "@types/jquery": "3.5.14", "@types/jsurl": "^1.2.28", "@types/lingui__macro": "^3", - "@types/lodash": "4.14.149", + "@types/lodash": "4.14.181", "@types/logfmt": "^1.2.1", "@types/mousetrap": "1.6.9", "@types/node": "16.11.26", diff --git a/packages/grafana-data/package.json b/packages/grafana-data/package.json index 21e06c70a8f..bda9b762e7e 100644 --- a/packages/grafana-data/package.json +++ b/packages/grafana-data/package.json @@ -55,7 +55,7 @@ "@types/history": "4.7.11", "@types/jest": "27.4.1", "@types/jquery": "3.5.14", - "@types/lodash": "4.14.149", + "@types/lodash": "4.14.181", "@types/marked": "4.0.3", "@types/node": "16.11.26", "@types/papaparse": "5.3.2", diff --git a/packages/grafana-e2e/package.json b/packages/grafana-e2e/package.json index f40b3d16f02..10aeec505b3 100644 --- a/packages/grafana-e2e/package.json +++ b/packages/grafana-e2e/package.json @@ -34,7 +34,7 @@ "@rollup/plugin-commonjs": "21.0.2", "@rollup/plugin-node-resolve": "13.1.3", "@types/chrome-remote-interface": "0.31.4", - "@types/lodash": "4.14.180", + "@types/lodash": "4.14.181", "@types/node": "16.11.26", "@types/uuid": "8.3.4", "rollup": "2.70.1", diff --git a/packages/grafana-runtime/package.json b/packages/grafana-runtime/package.json index 903624e581f..26039a58f38 100644 --- a/packages/grafana-runtime/package.json +++ b/packages/grafana-runtime/package.json @@ -44,7 +44,7 @@ "@types/angular": "1.8.4", "@types/history": "4.7.11", "@types/jest": "27.4.1", - "@types/lodash": "4.14.149", + "@types/lodash": "4.14.181", "@types/react": "17.0.42", "@types/react-dom": "17.0.14", "@types/systemjs": "^0.20.6", diff --git a/packages/grafana-ui/package.json b/packages/grafana-ui/package.json index 2d166e82fb4..b10a5ba1d76 100644 --- a/packages/grafana-ui/package.json +++ b/packages/grafana-ui/package.json @@ -130,7 +130,7 @@ "@types/is-hotkey": "0.1.7", "@types/jest": "27.4.1", "@types/jquery": "3.5.14", - "@types/lodash": "4.14.149", + "@types/lodash": "4.14.181", "@types/mock-raf": "1.0.3", "@types/node": "16.11.26", "@types/prismjs": "1.26.0", diff --git a/packages/jaeger-ui-components/package.json b/packages/jaeger-ui-components/package.json index 009b40ba01f..992888ce8ad 100644 --- a/packages/jaeger-ui-components/package.json +++ b/packages/jaeger-ui-components/package.json @@ -14,7 +14,7 @@ "@types/deep-freeze": "^0.1.1", "@types/grafana__slate-react": "npm:@types/slate-react@0.22.5", "@types/hoist-non-react-statics": "^3.3.1", - "@types/lodash": "4.14.149", + "@types/lodash": "4.14.181", "@types/prop-types": "^15", "@types/react": "17.0.42", "@types/react-icons": "2.2.7", diff --git a/public/app/plugins/datasource/cloudwatch/components/LogsQueryField.test.tsx b/public/app/plugins/datasource/cloudwatch/components/LogsQueryField.test.tsx index 172c785c5d2..5572214d07d 100644 --- a/public/app/plugins/datasource/cloudwatch/components/LogsQueryField.test.tsx +++ b/public/app/plugins/datasource/cloudwatch/components/LogsQueryField.test.tsx @@ -5,11 +5,11 @@ import { ExploreId } from '../../../../types'; import { DescribeLogGroupsRequest } from '../types'; import { SelectableValue } from '@grafana/data'; // eslint-disable-next-line lodash/import-scope -import _, { Cancelable } from 'lodash'; +import _, { DebouncedFunc } from 'lodash'; jest .spyOn(_, 'debounce') - .mockImplementation((func: (...args: any) => any, wait?: number) => func as typeof func & Cancelable); + .mockImplementation((func: (...args: any) => any, wait?: number) => func as DebouncedFunc); describe('CloudWatchLogsQueryField', () => { it('updates upstream query log groups on region change', async () => { diff --git a/yarn.lock b/yarn.lock index 04158de575b..12821098b79 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4002,7 +4002,7 @@ __metadata: "@types/history": 4.7.11 "@types/jest": 27.4.1 "@types/jquery": 3.5.14 - "@types/lodash": 4.14.149 + "@types/lodash": 4.14.181 "@types/marked": 4.0.3 "@types/node": 16.11.26 "@types/papaparse": 5.3.2 @@ -4070,7 +4070,7 @@ __metadata: "@rollup/plugin-commonjs": 21.0.2 "@rollup/plugin-node-resolve": 13.1.3 "@types/chrome-remote-interface": 0.31.4 - "@types/lodash": 4.14.180 + "@types/lodash": 4.14.181 "@types/node": 16.11.26 "@types/uuid": 8.3.4 babel-loader: 8.2.4 @@ -4184,7 +4184,7 @@ __metadata: "@types/angular": 1.8.4 "@types/history": 4.7.11 "@types/jest": 27.4.1 - "@types/lodash": 4.14.149 + "@types/lodash": 4.14.181 "@types/react": 17.0.42 "@types/react-dom": 17.0.14 "@types/systemjs": ^0.20.6 @@ -4399,7 +4399,7 @@ __metadata: "@types/is-hotkey": 0.1.7 "@types/jest": 27.4.1 "@types/jquery": 3.5.14 - "@types/lodash": 4.14.149 + "@types/lodash": 4.14.181 "@types/mock-raf": 1.0.3 "@types/node": 16.11.26 "@types/prismjs": 1.26.0 @@ -4596,7 +4596,7 @@ __metadata: "@types/deep-freeze": ^0.1.1 "@types/grafana__slate-react": "npm:@types/slate-react@0.22.5" "@types/hoist-non-react-statics": ^3.3.1 - "@types/lodash": 4.14.149 + "@types/lodash": 4.14.181 "@types/prop-types": ^15 "@types/react": 17.0.42 "@types/react-icons": 2.2.7 @@ -10151,10 +10151,10 @@ __metadata: languageName: node linkType: hard -"@types/lodash@npm:4.14.180": - version: 4.14.180 - resolution: "@types/lodash@npm:4.14.180" - checksum: fc42ae3473695cac6e91553f832fef8eb51a31c1c0381cafa81b00dc3efe18e279786bdda77caf0b90a8340ba2ba7aa46ae6541d69870565f775d04c89128bc1 +"@types/lodash@npm:4.14.181": + version: 4.14.181 + resolution: "@types/lodash@npm:4.14.181" + checksum: 0d1863d8383fd2f8bb42e9e3fc1d6255bb88ff034d6df848941063698944313dae944fc1270315613e3d303fae7c7a9a86085ad3235ed6204c56c4b0b3699aa9 languageName: node linkType: hard @@ -20498,7 +20498,7 @@ __metadata: "@types/jquery": 3.5.14 "@types/jsurl": ^1.2.28 "@types/lingui__macro": ^3 - "@types/lodash": 4.14.149 + "@types/lodash": 4.14.181 "@types/logfmt": ^1.2.1 "@types/mousetrap": 1.6.9 "@types/node": 16.11.26