[WEB-5027] fix: replace lodash package with lodash-es (#7856)
* fix: replace lodash pacakge with lodash-es * fix: lint errors * fix: import fixes
This commit is contained in:
parent
c05a5eb5ee
commit
bedc1fae1f
199 changed files with 261 additions and 396 deletions
|
|
@ -26,7 +26,7 @@
|
|||
"clsx": "^2.1.1",
|
||||
"date-fns": "^4.1.0",
|
||||
"isomorphic-dompurify": "^2.16.0",
|
||||
"lodash": "catalog:",
|
||||
"lodash-es": "catalog:",
|
||||
"lucide-react": "catalog:",
|
||||
"react": "catalog:",
|
||||
"tailwind-merge": "^2.5.5",
|
||||
|
|
@ -36,7 +36,7 @@
|
|||
"devDependencies": {
|
||||
"@plane/eslint-config": "workspace:*",
|
||||
"@plane/typescript-config": "workspace:*",
|
||||
"@types/lodash": "catalog:",
|
||||
"@types/lodash-es": "catalog:",
|
||||
"@types/node": "^22.5.4",
|
||||
"@types/react": "catalog:",
|
||||
"@types/uuid": "^9.0.8",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import isEmpty from "lodash/isEmpty";
|
||||
import { isEmpty } from "lodash-es";
|
||||
import { IIssueLabel, IIssueLabelTree } from "@plane/types";
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
import { startOfToday, format } from "date-fns";
|
||||
import isEmpty from "lodash/isEmpty";
|
||||
import orderBy from "lodash/orderBy";
|
||||
import sortBy from "lodash/sortBy";
|
||||
import uniqBy from "lodash/uniqBy";
|
||||
import { isEmpty, orderBy, sortBy, uniqBy } from "lodash-es";
|
||||
// plane imports
|
||||
import { ICycle, TCycleFilters, TProgressSnapshot } from "@plane/types";
|
||||
// local imports
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { differenceInDays, format, formatDistanceToNow, isAfter, isEqual, isValid, parseISO } from "date-fns";
|
||||
import isNumber from "lodash/isNumber";
|
||||
import { isNumber } from "lodash-es";
|
||||
|
||||
// Format Date Helpers
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
"use client";
|
||||
|
||||
import { format } from "date-fns";
|
||||
import get from "lodash/get";
|
||||
import set from "lodash/set";
|
||||
import { get, set } from "lodash-es";
|
||||
// plane imports
|
||||
import { COMPLETED_STATE_GROUPS, STATE_DISTRIBUTION } from "@plane/constants";
|
||||
import { ICycle, IEstimatePoint, IModule, IState, TIssue } from "@plane/types";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import sortBy from "lodash/sortBy";
|
||||
import { sortBy } from "lodash-es";
|
||||
// plane imports
|
||||
import { IModule, TModuleDisplayFilters, TModuleFilters, TModuleOrderByOptions } from "@plane/types";
|
||||
// local imports
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import sortBy from "lodash/sortBy";
|
||||
import { sortBy } from "lodash-es";
|
||||
// plane imports
|
||||
import { TPage, TPageFilterProps, TPageFiltersSortBy, TPageFiltersSortKey, TPageNavigationTabs } from "@plane/types";
|
||||
// local imports
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import isNil from "lodash/isNil";
|
||||
import orderBy from "lodash/orderBy";
|
||||
import { isNil, orderBy } from "lodash-es";
|
||||
// plane imports
|
||||
import { SPACE_BASE_PATH, SPACE_BASE_URL } from "@plane/constants";
|
||||
import { IProjectView, TViewFilterProps, TViewFiltersSortBy, TViewFiltersSortKey } from "@plane/types";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import sortBy from "lodash/sortBy";
|
||||
import { sortBy } from "lodash-es";
|
||||
// plane imports
|
||||
import { TProject, TProjectDisplayFilters, TProjectFilters, TProjectOrderByOptions } from "@plane/types";
|
||||
// local imports
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
import compact from "lodash/compact";
|
||||
import isEqual from "lodash/isEqual";
|
||||
import sortBy from "lodash/sortBy";
|
||||
import { compact, isEqual, sortBy } from "lodash-es";
|
||||
// plane imports
|
||||
import {
|
||||
FILTER_NODE_TYPE,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import get from "lodash/get";
|
||||
import { get } from "lodash-es";
|
||||
// plane imports
|
||||
import { DATE_OPERATOR_LABELS_MAP, EMPTY_OPERATOR_LABEL, OPERATOR_LABELS_MAP } from "@plane/constants";
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import orderBy from "lodash/orderBy";
|
||||
import { orderBy } from "lodash-es";
|
||||
// plane imports
|
||||
import { EProductSubscriptionEnum, IPaymentProduct, TProductSubscriptionType, TSubscriptionPrice } from "@plane/types";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { differenceInCalendarDays } from "date-fns/differenceInCalendarDays";
|
||||
import isEmpty from "lodash/isEmpty";
|
||||
import { isEmpty } from "lodash-es";
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
// plane imports
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import set from "lodash/set";
|
||||
import { set } from "lodash-es";
|
||||
// plane imports
|
||||
import { DEFAULT_WORK_ITEM_FORM_VALUES } from "@plane/constants";
|
||||
import { IPartialProject, ISearchIssueResponse, IState, TIssue } from "@plane/types";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue