Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
setupFilesAfterEnv: ['<rootDir>/test-utils/setup-tests-after.ts'],
moduleNameMapper: {
'\\.(css|less|scss|sass)$': 'jest-transform-css',
'^lodash-es$': 'lodash',
},
testMatch: ['**/*.test.[jt]s?(x)'],
testPathIgnorePatterns: ['.visual.'],
Expand Down
21 changes: 19 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"@hello-pangea/dnd": "^18.0.1",
"@tanstack/react-virtual": "^3.13.9",
"blueimp-md5": "^2.19.0",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"rc-slider": "^11.1.8",
"react-transition-group": "^4.4.5",
"react-virtualized-auto-sizer": "^1.0.26",
Expand Down Expand Up @@ -170,7 +170,7 @@
"@types/blueimp-md5": "^2.18.2",
"@types/chroma-js": "^3.1.1",
"@types/jest": "^29.5.14",
"@types/lodash": "^4.17.17",
"@types/lodash-es": "^4.17.12",
"@types/react": "^18.3.23",
"@types/react-dom": "^18.3.7",
"@types/react-transition-group": "^4.4.12",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import groupBy from 'lodash/groupBy';
import {groupBy} from 'lodash-es';

import type {DropdownMenuItem} from '../../../DropdownMenu';
import type {ActionsPanelItem} from '../../types';
Expand Down
3 changes: 1 addition & 2 deletions src/components/Hotkey/parse.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import capitalize from 'lodash/capitalize';
import uniqBy from 'lodash/uniqBy';
import {capitalize, uniqBy} from 'lodash-es';

import type {KeyDefs, KeyParser, PlatformDefs} from './types';
import {split} from './utils';
Expand Down
3 changes: 1 addition & 2 deletions src/components/List/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import type {
DroppableProvided,
} from '@hello-pangea/dnd';
import {DragDropContext, Draggable, Droppable} from '@hello-pangea/dnd';
import isEqual from 'lodash/isEqual';
import isObject from 'lodash/isObject';
import {isEqual, isObject} from 'lodash-es';
import type {Size} from 'react-virtualized-auto-sizer';
import AutoSizer from 'react-virtualized-auto-sizer';
import type {VariableSizeListProps} from 'react-window';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Pagination/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import uniq from 'lodash/uniq';
import {uniq} from 'lodash-es';

import type {PaginationSize} from './types';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Select/__stories__/Select.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';

import {Plus, TrashBin} from '@gravity-ui/icons';
import type {Decorator, Meta, StoryObj} from '@storybook/react-webpack5';
import escapeRegExp from 'lodash/escapeRegExp';
import {escapeRegExp} from 'lodash-es';
import {useArgs} from 'storybook/preview-api';

import {Select} from '..';
Expand Down
3 changes: 1 addition & 2 deletions src/components/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

import * as React from 'react';

import get from 'lodash/get';
import has from 'lodash/has';
import {get, has} from 'lodash-es';

import type {AriaLabelingProps, QAProps} from '../types';
import {block} from '../utils/cn';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/__stories__/Adaptive.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {StoryFn} from '@storybook/react-webpack5';
import cloneDeep from 'lodash/cloneDeep';
import {cloneDeep} from 'lodash-es';

import {Table} from '../Table';
import type {TableProps} from '../Table';
Expand Down
3 changes: 1 addition & 2 deletions src/components/Table/__stories__/Table.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import * as React from 'react';

import {CircleChevronDownFill, Pencil} from '@gravity-ui/icons';
import type {Meta, StoryFn} from '@storybook/react-webpack5';
import cloneDeep from 'lodash/cloneDeep';
import isEqual from 'lodash/isEqual';
import {cloneDeep, isEqual} from 'lodash-es';
import {action} from 'storybook/actions';

import type {TableAction, TableSettingsData} from '..';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';

import {ArrowRotateLeft} from '@gravity-ui/icons';
import isEqual from 'lodash/isEqual';
import {isEqual} from 'lodash-es';

import {Button} from '../../../Button';
import type {ButtonButtonProps} from '../../../Button';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import * as React from 'react';

import {Ellipsis} from '@gravity-ui/icons';
import memoize from 'lodash/memoize';
import {memoize} from 'lodash-es';

import {useUniqId} from '../../../../hooks';
import {useBoolean} from '../../../../hooks/private';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/hoc/withTableCopy/withTableCopy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as React from 'react';

import memoize from 'lodash/memoize';
import {memoize} from 'lodash-es';

import {ClipboardButton} from '../../../ClipboardButton';
import {block} from '../../../utils/cn';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

import * as React from 'react';

import difference from 'lodash/difference';
import memoize from 'lodash/memoize';
import union from 'lodash/union';
import without from 'lodash/without';
import {difference, memoize, union, without} from 'lodash-es';

import {Checkbox} from '../../../Checkbox';
import {block} from '../../../utils/cn';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

import * as React from 'react';

import get from 'lodash/get';
import memoize from 'lodash/memoize';
import {get, memoize} from 'lodash-es';

import {createOnKeyDownHandler} from '../../../../hooks/useActionHandlers/useActionHandlers';
import {block} from '../../../utils/cn';
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/utils/overrideLayoutTheme.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import merge from 'lodash/merge';
import {merge} from 'lodash-es';

import type {LayoutTheme, RecursivePartial} from '../types';

Expand Down
2 changes: 1 addition & 1 deletion src/components/legacy/Breadcrumbs/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as React from 'react';

import throttle from 'lodash/throttle';
import {throttle} from 'lodash-es';

import type {PopupPlacement} from '../../Popup';
import type {QAProps} from '../../types';
Expand Down
2 changes: 1 addition & 1 deletion src/components/useList/hooks/useListFilter.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

import debounce from 'lodash/debounce';
import {debounce} from 'lodash-es';

import type {ListItemType} from '../types';
import {defaultFilterItems} from '../utils/defaultFilterItems';
Expand Down
3 changes: 1 addition & 2 deletions src/hooks/private/useElementSize/useElementSize.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as React from 'react';

import round from 'lodash/round';
import throttle from 'lodash/throttle';
import {round, throttle} from 'lodash-es';

const RESIZE_THROTTLE = 16;
const ROUND_PRECISION = 2;
Expand Down
Loading